Difficulty: Beginner
Estimated Time: 10 minutes

Assembly Language and System Internals

Just playing around with some ideas. A lot of the ideas here are coming from a book I'm currently reading and which I would highly recommend:

Hacking: The Art of Exploitation, 2nd Edition by Jon Erickson


Assembly Language and System Internals (Work-In-Progress)

Step 1 of 6


To start working with GDB let's setup the environment using a DOCKER image:

docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $(pwd):/workspace -it daa82/gdb-katacoda /bin/bash

Let's compile the code:

gcc -g -m32 -o hello_world hello_world.c gcc -g -m32 -o mem_segments mem_segments.c

Let's start the debugger:

gdb -q hello_world