Member-only story
Buffer Overflows Tryhackme Writeup
Room link: https://tryhackme.com/room/bof1
Note: This room is for Premium Members Only. who purchased THM premium membership.
Task 1. Introduction
In this room, we aim to explore simple stack buffer overflows(without any mitigation’s) on x86–64 linux programs. We will use radare2 (r2) to examine the memory layout. You are expected to be familiar with x86 and r2 for this room. Check the intro to x86–64 room for any pre-requisite knowledge.
We have included a virtual machine with all the resources to ensure you have the correct environment and tools to follow along. To access the machine via SSH, use the following credentials:
Username: user1
Password: user1password
Task 2. Process Layout
When a program runs on a machine, the computer runs the program as a process. Current computer architecture allows multiple processes to be run concurrently(at the same time by a computer). While these processes may appear to run at the same time, the computer actually switches between the processes very quickly and makes it look like they are running at the same time. Switching between processes is called a context switch. Since each process may need different information to run(e.g. The current…