Reverse Engineering
GDB is the GNU Project debugger. It allows you to see what is going on inside another program while it executes or what it was doing at the moment it crashed.
sudo apt install gdb
gdb [options] <binary>
GDB is the GNU Project debugger, the standard debugger for Linux systems. It allows you to see what is happening inside a program while it executes.
GDB supports breakpoint debugging, memory inspection, stack traces, and variable examination. It works with C, C++, Rust, Go, and many other languages.
GDB is essential for reverse engineering dynamic analysis. Plugins like PEDA and GEF enhance it with exploit development features and better visualizations.
gdb ./programLoad an executable into GDB for debugginggdb --args ./program arg1 arg2Load a program together with its command-line argumentsgdb -p 1234Attach GDB to an already running process by PIDgdb ./program coreDebug a program using a saved core dump filegdb -q ./programStart GDB quietly, suppressing the banner textgdb -batch -ex run -ex bt ./programRun scripted commands non-interactively then exitrunStart execution of the loaded program (alias: r)break mainSet a breakpoint at the function main (alias: b)break file.c:42Set a breakpoint at a specific source file and linecontinueResume execution until the next breakpoint (alias: c)nextStep over the next source line without entering calls (alias: n)stepStep into the next source line, entering function calls (alias: s)stepiStep a single machine instruction (alias: si)finishRun until the current function returnsbacktracePrint the current call stack (alias: bt)Debug segmentation faults and crashes.
Analyze malware behavior at runtime.
Develop and test exploits with PEDA/GEF.
Step through compiled code to understand logic.
The console displays the live state of the program, including memory addresses, register values, and the current assembly instruction being processed.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.