# gunzip howtobasic.gz
# file howtobasic
# chmod +x howtobasic
# gdb --quiet ./howtobasic
(gdb) set disassembly-flavor intel
(gdb) info file
(gdb) run
(gdb) finish
1234567890
(gdb) finish
(gdb) finish
(gdb) finish
(gdb) finish
(gdb) finish
(gdb) finish
(gdb) finish
(gdb) b *0x080483b6
(gdb) run
1234567890
(gdb) x/2i 0x080483b6
(gdb) x/s $eax
(gdb) b *0x80483f5
(gdb) continue
(gdb) x/3i 0x080483f5
(gdb) b *0x80483fd
(gdb) continue
(gdb) x/2i 0x080483fd
(gdb) b *0x8048486
(gdb) continue
(gdb) x/4i 0x08048486
(gdb) x/xw $esp+0x14
(gdb) x/xw $esp+0x1c
(gdb) b *0x8048403
(gdb) continue
(gdb) x/20i 0x08048403
(gdb) x/5i 0x8048481
(gdb) quit
# cat canada.py
# ./canada.py
# ./howtobasic
No comments:
Post a Comment