Hacking, Binary Exploitation, C, Programming, Vulnerability.
between buffer1 and BP, we will use a GDB — GNU Debugger. This is not a tutorial on GDB so I will just list the commands you can run to get the memory location of both and calculate the offset. gcc binexploit1.c -g -o binexploit -fno-stack-protector # compile gdb binexploit # open GDB shell (gdb)