PWN, Assembly, and Smashing the Stack

Useful refresher and in-depth guide on buffer overflows.

The following is a cheat sheet created by Nick Harbour (defcon speaker, flare ON challenge organizer) and various gdb commands I occasionally need for reversing challenges.
gdb Command
Meaning
x/s $ebp-9
Get the value of $ebp-9
p /x $ebp-9
Get the address of $ebp-9
Copy link
On this page
Smashing the Stack Guide
X64/Win32 Reversing