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
k4lizen 78e3c55267
hex print (#3467)
2 days ago
.devcontainer Remove vscode personalization from devcontainer (#2602) 1 year ago
.github Refactor gitlab-ci release (#3452) 1 week ago
docs Refactor tests (#3457) 3 days ago
nix Portable release use gdb/lldb from pypi (#3425) 1 week ago
profiling Replace all occurrences of pwndbg.aglib.regs[x] with pwndbg.aglib.regs.read_read("x") for register reads. Remove __getitem__ from the regs module. (#3440) 2 weeks ago
pwndbg hex print (#3467) 2 days ago
pwndbginit Rework cancellation in pwndbg-lldb (#3387) 3 weeks ago
scripts clearer docs update for conv funcs (#3465) 4 days ago
tests Refactor tests (#3457) 3 days ago
.dockerignore Optimize and cleanup Dockerfile (#3442) 1 week ago
.envrc Add nix development shell (#2166) 1 year ago
.gitignore upd pull request template (#3414) 2 weeks ago
.pwndbg_root Use gdb/lldb from pypi (#3119) 6 months ago
CREDITS.md docs: Add note about giving credit to ported tools (#2154) 2 years ago
Dockerfile Optimize and cleanup Dockerfile (#3442) 1 week ago
Dockerfile.arch ZIGPATH cleanup (#3175) 4 months ago
LICENSE.md Update LICENSE.md, fix license year (#2660) 11 months ago
README.md Change /latest to /stable (#3374) 1 month ago
binja_script.py integration: add highlighting to ida (#3367) 1 month ago
docker-compose.yml Main Dockerfile support lldb and gdb at same time (#3307) 3 months ago
flake.lock bump flake.lock (#3293) 3 months ago
flake.nix Portable release use gdb/lldb from pypi (#3425) 1 week ago
gdbinit.py help out curious arch users (#3455) 6 days ago
ida_script.py integration: add highlighting to ida (#3367) 1 month ago
kernel-tests.sh add relative imports into tests (#3161) 5 months ago
lint.sh mypy: fix typing issues + CI + lint.sh (#3141) 5 months ago
mkdocs.yml Change /latest to /stable (#3374) 1 month ago
pyproject.toml Bump lldb20->lldb21 from pypi (#3446) 1 week ago
setup-dev.sh update links (#3373) 1 month ago
setup.sh update links (#3373) 1 month ago
tests.sh add relative imports into tests (#3161) 5 months ago
unit-tests.sh add relative imports into tests (#3161) 5 months ago
uv.lock Bump lldb20->lldb21 from pypi (#3446) 1 week ago

README.md

repository-open-graph

pwndbg

license 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 our Features page and CHEATSHEET (feel free to print it!). If you have any questions you may read the documentation or asks us in our Discord server.

Why?

Vanilla GDB and LLDB are terrible to use for reverse engineering and exploit development. Typing x/30gx $rsp 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.

Pwndbg is a Python module which can be loaded into GDB or run as a REPL interface for 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.

Installation

See installation instructions.

What about ...?

Many past (gdbinit, PEDA) and present projects (GEF, bata24/GEF) offer great features, but are hard to extend and are packaged as large single files (103KB, 195KB, 423KB, 4.12MB). Pwndbg aims to replace them with a faster, cleaner, and more robust implementation.

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

Contributing

Pull requests are welcome ❤️. Check out the Contributing Guide.

Acknowledgements

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.