Gdb pwndbg

From yv1ing/Z3r0 · View interactive version

Gdb pwndbg is an AI agent skill from the GitHub repository yv1ing/Z3r0. Use gdb and pwndbg for authorized binary debugging, crash triage, exploit development, and runtime inspection.

How to use this skill

Skill file

gdb-pwndbg

Use system gdb for stock debugging. Pwndbg is installed through uv against /usr/bin/python3, and /root/.gdbinit sources the installed Pwndbg gdbinit.py so the normal gdb entrypoint has Pwndbg available without bundling another debugger.

Help first

Before constructing commands, confirm the debugger entrypoints and Pwndbg integration:

gdb --help
command -v pwndbg
gdb -batch -ex 'python import pwndbg'

Usage rules

Common workflows

Open an interactive Pwndbg-enhanced GDB session:

gdb -q ./binary

Run a bounded crash triage in batch mode:

gdb -q ./binary -ex 'set pagination off' -ex 'run' -ex 'bt' -ex 'info registers' -batch

Use a command file for repeatable sessions:

gdb -q ./binary -x gdb-commands.txt

Attach only to authorized local processes:

gdb -q -p 1234

Pair debugger observations with checksec --file=./binary, controlled inputs, and saved crash artifacts.

Output

Report the debugger used, command file or command line, binary path, key observations, crash state, registers/backtrace when relevant, and output paths.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.