killchain-compendium/Exploits/Binaries/gdb CheatSheet.md

282 B

GDB CheatSheet

Cast a register value

  • Cast the content of a register to char
p *(char **)$rax

Show Instructions

Show the next 70 instructions under the current position

x/70i $pc

Set Breakpoint

Set breakpoint to address

b *0xdeadbeef