pwndbg — Extension GDB pour le pwn/CTF
★★★★★
Installation
git clone https://github.com/pwndbg/pwndbg
cd pwndbg && ./setup.sh
# ajoute 'source .../pwndbg/gdbinit.py' à ~/.gdbinit Commandes clés
context # vue regs + disasm + stack en un coup
vmmap # cartographie mémoire (ASLR/PIE)
telescope $rsp # dump pile avec déréférencement
heap / bins # état du tas glibc
cyclic 200 # motif de De Bruijn
cyclic -l 0x6161616c # retrouver l offset d un crash
checksec # protections du binaire Workflow d'exploitation
# 1. trouver l offset d overflow
b *vuln ; run < <(cyclic 200) ; cyclic -l $rsp
# 2. examiner protections, GOT/PLT
got ; plt
# 3. breakpoint conditionnel
b *0x4011ab if $rdi == 0