Skip to content

Instantly share code, notes, and snippets.

@awreece
Created May 4, 2013 22:19
Show Gist options
  • Save awreece/5518963 to your computer and use it in GitHub Desktop.
Save awreece/5518963 to your computer and use it in GitHub Desktop.
ppp@shell:~$ gdb -q a.out
Reading symbols from /home/ppp/a.out...(no debugging symbols found)...done.
(gdb) b main
Breakpoint 1 at 0x8048467
(gdb) r
Starting program: /home/ppp/a.out
Breakpoint 1, 0x08048467 in main ()
(gdb) p system
$1 = {<text variable, no debug info>} 0xf7e68250 <system>
(gdb) find 0xf7e68250, +9999999999999, "/bin/sh"
0xf7f86c4c
warning: Unable to access target memory at 0xf7fd0fd4, halting search.
1 pattern found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment