# file derp
# chmod +x derp
# echo 0 > /proc/sys/kernel/randomize_va_space
# gdb --quiet ./derp
(gdb) set disassembly-flavor intel
(gdb) break main
(gdb) run
(gdb) disassemble main
(gdb) x/6i 0x080483a4
(gdb) x/xw 0x80d1088
(gdb) break *0x80483b7
(gdb) continue
(gdb) info registers eax
(gdb) x/s 0x80d5298
(gdb) break *0x804841a
(gdb) continue
(gdb) disassemble
(gdb) x/3i 0x0804849c
(gdb) break *0x0804849c
(gdb) continue
(gdb) x/xb $ebp-0x4
(gdb) x/xb $ebp+0xc
(gdb) x/64xb 0x080b2224
(gdb) x/3i 0x0804848b
(gdb) break *0x0804848b
(gdb) continue
(gdb) info registers eax
(gdb) info registers ecx
(gdb) info registers edx
(gdb) quit
# python -c 'list=[0xeb,0xe8,0xbf,0xe4,0xea,0xbe,0xba,0xe4,0xe5,0xea,0xe8,0xea,0xe8,0xee,0xe9,0xba,0xea,0xe8,0xeb,0xba,0xbf,0xba,0xeb,0xea,0xe8,0xef,0xbd,0xba,0xed,0xe9,0xba,0xee,0xe9,0xed,0xbe,0xed,0xe4,0xea,0xbe,0xba,0xe9,0xe4,0xbd,0xea,0xb8,0xe9,0xb8,0xbf,0xeb,0xb9,0xbe,0xe4,0xbe,0xba,0xe5,0xbf,0xba,0xbf,0xe5,0xb8,0xec,0xe8,0xbf,0xb8]; print "".join(chr(i^0xdc) for i in list)' | ./derp
No comments:
Post a Comment