How-To: GDB
gdb
is the most commonly used debugger. The base installation is super user-friendly and offers a rich feature set. It is also very easy to extend with plugins.
Nearly every challenge dissected in this guide used gdb
, with a few exceptions.
gdb
has a LOT of features. This guide covers the ones that are most commonly used in everyday settings. If you want to read more, check out this summary guide.
Installation
Installation of gdb
is extremely simple:
To extend its feature set, we will also install the gdb-gef
extension. More information can be found here. GEF allows live previews of the instruction set, the registers, and the stack. This allows us to easily do a dynamic analysis of the binary.
To install GEF, use the following command:
Usage
We run gdb
on the binary that we want to analyze. The plugin will automatically run when we run the binary.
Last updated