GDB - WolvSec/Knowledge-Base GitHub Wiki

GDB (The GNU Project Debugger) is a debugging tool that serves a dual purpose as a dynamic analysis tool. It lets you run a target process and step through its instructions one at a time.

I highly recommend using GEF or pwndbg instead of stock GDB. It displays much more information by default (registers, stack, heap, etc.). It is also very easy to install.

GEF Install

# via the install script
## using curl
$ bash -c "$(curl -fsSL https://gef.blah.cat/sh)"

## using wget
$ bash -c "$(wget https://gef.blah.cat/sh -O -)"

# or manually
$ wget -O ~/.gdbinit-gef.py -q https://gef.blah.cat/py
$ echo source ~/.gdbinit-gef.py >> ~/.gdbinit

pwngdb Install

git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh