# gdb cheatsheet

gdb (The GNU Debugger) allows you to debug your program, it can be very usefull to check if your exploit is working as expected.

I recommend you to use one of the following gdb plugins, it will simplify your debugging process by adding new functions and readability to gdb.

## Cheatsheets

### Stdin

gef➤  r <<< \$(python2 -c "print '\xb2\x91\x04\x08'")

or



### heap

gef➤  heap
[!] Syntax
heap (chunk|chunks|bins|arenas)
gef➤  heap chunks
[0x00000000006036b0     e0 36 60 00 00 00 00 00 00 00 00 00 00 00 00 00    .6.............]
`