GDB Cheat Sheet
GDB Cheat Sheet from Rendition Infosec
Inspect the stack, displaying 20 double words at the ESP register
x/20xw $esp
Inspect the stack, displaying 32 bytes at the ESP register
x/32b $esp
Display a string at a given address
x/s 0x41414141
Set a breakpoint at a given address
break *0x41414141
List breakpoints
info break
Delete a breakpoint
del BREAKPOINT_NUMBER
Disassemble a function
disass FUNCTION
Display register contents
info reg
Run with input from Python
run > >(python -c 'print "A" * 16')
Print a register
print $esp
Examines instruction at address and prints
x/i ADDRESS