Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) disas pop_ret
- Dump of assembler code for function pop_ret:
- => 0x0804a028 <+0>: pop ecx
- 0x0804a029 <+1>: ret
- 0x0804a02a <+2>: add BYTE PTR [eax],al
- 0x0804a02c <+4>: add BYTE PTR [eax],al
- 0x0804a02e <+6>: add BYTE PTR [eax],al
- 0x0804a030 <+8>: add BYTE PTR [eax],al
- 0x0804a032 <+10>: add BYTE PTR [eax],al
- 0x0804a034 <+12>: add BYTE PTR [eax],al
- 0x0804a036 <+14>: add BYTE PTR [eax],al
- End of assembler dump.
- (gdb) x/4wx $esp
- 0xffffd4d4: 0x0804a060 0xf7e371e0 0xdeadbeef 0x00000000
- (gdb) x/x 0x0804a060
- 0x804a060 <command>: 0x69622f2f
- (gdb) x/s 0x0804a060
- 0x804a060 <command>: "//bin/ls"
- (gdb) i r ecx
- ecx 0xf7fd8000 -134381568
- (gdb) x/x 0xf7fd8000
- 0xf7fd8000: 0x0a
- (gdb) x/s 0xf7fd8000
- 0xf7fd8000: "\nirst\n"
- (gdb) si
- Program terminated with signal SIGSEGV, Segmentation fault.
- The program no longer exists.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement