You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
William Tan e02396a1c9
use nixfmt-tree instead of calling the nixfmt-rfc-style directly (#2928)
8 months ago
.devcontainer Remove vscode personalization from devcontainer (#2602) 1 year ago
.github add auto trigger homebrew release (#2907) 8 months ago
caps Improve TUI handling and documentation (#2446) 1 year ago
docs Improve convenience function helps and autogenerate documentation (#2900) 8 months ago
nix Add editable pwndbg into the nix devshell (#2925) 8 months ago
profiling cleanup: fix command names '_' with '-' (#2878) 8 months ago
pwndbg Do not halt emulator on branches in MIPS (#2921) 8 months ago
scripts Don't auto-delete hand-written files (#2917) 8 months ago
tests Do not halt emulator on branches in MIPS (#2921) 8 months ago
.dockerignore Bringt back Archlinux CI. Fixes #1772, closes #1783 (#1800) 2 years ago
.envrc Add nix development shell (#2166) 1 year ago
.gitignore Add check for extraneous doc files, and small doc fixes (#2852) 8 months ago
.readthedocs.yaml Remove poetry and add uv packet manager (#2726) 10 months ago
CREDITS.md docs: Add note about giving credit to ported tools (#2154) 2 years ago
DEVELOPING.md Cleanup installation instructions (#2909) 8 months ago
Dockerfile Simplify local testing inside Docker environment (#2777) 9 months ago
Dockerfile.arch Remove poetry and add uv packet manager (#2726) 10 months ago
Dockerfile.lldb Remove poetry and add uv packet manager (#2726) 10 months ago
FEATURES.md Update FEATURES.md (#2681) 11 months ago
LICENSE.md Update LICENSE.md, fix license year (#2660) 11 months ago
README.md Fix readme + ci failure after merge (#2915) 8 months ago
binja_script.py Configure IDA/Binary Ninja integration server endpoint through environment (#2746) 10 months ago
docker-compose.yml Simplify local testing inside Docker environment (#2777) 9 months ago
flake.lock Bump flake.lock + cleanup nfpm.yml (#2817) 8 months ago
flake.nix use nixfmt-tree instead of calling the nixfmt-rfc-style directly (#2928) 8 months ago
gdbinit.py Improve convenience function helps and autogenerate documentation (#2900) 8 months ago
ida_script.py Configure IDA/Binary Ninja integration server endpoint through environment (#2746) 10 months ago
lint.sh Cleanup parameters and autogenerate doc pages for them (#2875) 8 months ago
lldbinit.py gdbinit, lldbinit: detect and prevent double-loading of pwndbg (#2912) 8 months ago
mkdocs.yml Improve convenience function helps and autogenerate documentation (#2900) 8 months ago
pwndbg-lldb.py Add programatic controls to the LLDB Pwndbg CLI (#2785) 9 months ago
pyproject.toml bump 2025.04.18, fix `vis` command and aliases (#2897) 8 months ago
qemu-tests.sh Qemu user test structure (#2275) 1 year ago
setup-dev.sh Update zig 0.10.1->0.13.0 (#2914) 8 months ago
setup.sh Remove poetry and add uv packet manager (#2726) 10 months ago
tests.sh tests.sh: print glibc version via ldd (#2719) 10 months ago
unit-tests.sh Qemu user test structure (#2275) 1 year ago
uv.lock bump 2025.04.18, fix `vis` command and aliases (#2897) 8 months ago

README.md

repository-open-graph

pwndbg

license Unit tests codecov.io Discord

pwndbg (/paʊnˈdiˌbʌɡ/) is a GDB and LLDB plug-in that makes debugging suck less, with a focus on features needed by low-level software developers, hardware hackers, reverse-engineers and exploit developers.

It has a boatload of features, see FEATURES.md and CHEATSHEET (feel free to print it!).

Why?

Vanilla GDB and LLDB are terrible to use for reverse engineering and exploit development. Typing x/g30x $esp or navigating cumbersome LLDB commands is not fun and often provides minimal information. The year is 2025, and core debuggers still lack many user-friendly features such as a robust hexdump command. Windbg users are completely lost when they occasionally need to bump into GDB or LLDB.

What?

Pwndbg is a Python module which is loaded directly into GDB or LLDB*. It provides a suite of utilities and enhancements that fill the gaps left by these debuggers, smoothing out rough edges and making them more user-friendly.

Many other projects from the past (e.g., gdbinit, PEDA) and present (e.g. GEF) exist to fill some these gaps. Each provides an excellent experience and great features -- but they're difficult to extend (some are unmaintained, and all are a single 100KB, 200KB, or 363KB file (respectively)).

Pwndbg exists not only to replace all of its predecessors, but also to have a clean implementation that runs quickly and is resilient against all the weird corner cases that come up. It also comes batteries-included, so all of its features are available if you run setup.sh.

When to Use GDB or LLDB?

Pwndbg supports both GDB and LLDB, and each debugger has its own strengths. Here's a quick guide to help you decide which one to use:

Use Case Supported Debugger
Debugging Linux binaries or ELF files GDB, LLDB
Debugging Mach-O binaries on macOS LLDB
Linux kernel debugging (qemu-system) GDB, LLDB
Linux user-space emulation (qemu-user) GDB
Embedded debugging (ARM Cortex M* or RISC-V/32) GDB, LLDB

Pwndbg ensures a consistent experience across both, so switching between them is seamless.

The LLDB implementation in Pwndbg is still in early-stage and may contain bugs or limitations.
Known issues are tracked in GitHub Issues.

If you encounter any problems, feel free to report them or discuss on our Discord server.

Compatibility Table

Feature Supported Version Notes
pwndbg-gdb - Python 3.10+
- GDB 12.1+
Battle-tested on Ubuntu 22.04/24.04
pwndbg-lldb - Python 3.12+
- LLDB 19+
Experimental/early-stage support
qemu-user QEMU 8.1+ vFile API is needed for vmmap
qemu-system QEMU 6.2+ Supported version since ubuntu 22.04

How?

See installation instructions.

What can I do with that?

For further info about features/functionalities, see FEATURES.

Who?

Pwndbg is an open-source project, maintained by many contributors!

Pwndbg was originally created by Zach Riggle, who is no longer with us. We want to thank Zach for all of his contributions to Pwndbg and the wider security community.

Want to help with development? Read CONTRIBUTING or join our Discord server!

How to develop?

To run tests locally you can do this in docker image, after cloning repo run simply

docker compose run main ./tests.sh

Disclaimer - this won't work on apple silicon macs.

Contact

If you have any questions not worthy of a bug report, feel free to ping anybody on Discord and ask away.