GDB

GNU Debugger

Basic Commands
Quiet mode
gdb -q <binary>
Set a break point
b <functionName>
Run execution
r
Continue execution
c
Shows the current values of all CPU registers
info registers
Examine 20 memory addresses starting at rsp
x/20x $rsp
Disassemble the main function
disassemble main
disassemble function
disass <functionName>
Set Return Instruction Pointer
set $rip = <memoryAddress>
PEDA - Python Exploit Development Assistance

Setting Up

Download it
git clone https://github.com/longld/peda.git ~/peda
Open /Create your initialization file
nano ~/.gdbinit
Add the following line to load PEDA on every GDB start:
source ~/peda/peda.py
List the Procedure Linkage Table
plt

Last updated