pwndbg — Extension GDB pour le pwn
★★★★★
Installation
git clone https://github.com/pwndbg/pwndbg
cd pwndbg && ./setup.sh
gdb ./binary Commandes essentielles
# Navigation
r # run
c # continue
n / ni # next (step over)
s / si # step (step into)
finish # exécuter jusqu au return
# Inspection
x/10gx $rsp # 10 qwords depuis rsp
x/20i $rip # 20 instructions
p $rax # valeur du registre rax
info registers # tous les registres
# Commandes pwndbg spécifiques
stack 20 # afficher la stack
heap # état du tas
checksec # protections du binaire
tele $rsp # telescope (suit les pointeurs)
retaddr # adresse de retour actuelle
bins # tcache, fastbins, unsorted bins
# Breakpoints
b main
b *0x401234
watch *0x804a020 # breakpoint sur écriture mémoire