Skip to content

Instantly share code, notes, and snippets.

@fgsahoward
Created June 11, 2018 17:26
Show Gist options
  • Save fgsahoward/142a93cd88cb0fd4686daa3123e42d7b to your computer and use it in GitHub Desktop.
Save fgsahoward/142a93cd88cb0fd4686daa3123e42d7b to your computer and use it in GitHub Desktop.
[howard@sterling bof]$ gdb -q ./med32
Reading symbols from ./med32...(no debugging symbols found)...done.
(gdb) b *main
Breakpoint 1 at 0x8048504
(gdb) r
Starting program: /home/howard/repos/bof/med32
Breakpoint 1, 0x08048504 in main ()
(gdb) x/i 0xf7eac7c0
0xf7eac7c0 <execve>: push %ebx
(gdb)
0xf7eac7c1 <execve+1>: mov 0x10(%esp),%edx
(gdb)
0xf7eac7c5 <execve+5>: mov 0xc(%esp),%ecx
(gdb)
0xf7eac7c9 <execve+9>: mov 0x8(%esp),%ebx
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment