GDB

Pwntools

gdb.attach(p, '''
set follow-fork-mode child
continue
''')

Quick Commands

  • disassemble: disas <addr>

  • continue: c

  • step: s

  • step over: n

  • finish function: fin

  • dump memory: x/20x <addr>

  • dump registers: info registers

  • dump call stack: bt

  • list breakpoints: info break

  • memory mapping: vmmap

  • heap infos: heap chunks,print main_arena

  • show GOT: print $_got()

  • pattern: pattern create <n>, pattern search <offset>

  • shellcode: shellcode search <arch>, shellcode get <num>

Last updated