Adding detailed info to message shown on protection key violation (#3531)
Reading vmmap data from /proc/$TID/smaps(fall back to /proc/$TID/smaps if not available)
Fix smaps parsing for archs other than intel
Adding additional info for PKU errors
Fixing linter errors
Fixing linter errors
Implementing siginfo(), making code in save_signal and signal.py debugger agnostic
Handling pc being None + fixing linter errors
Correcting types
Adding test for PKU
Correcting types
Handling case where gdb can’t read siginfo
Adding comments to PKU test file
Skipping test if PKU is not supported on host kernel/cpu
Fixing style issues
Improve handling of None values in signal retrieval functions
Co-authored-by: Ac3 balikwojciech1@gmail.com
pwndbg
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 $rspor 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:
Pwndbg ensures a consistent experience across both, so switching between them is seamless.
Compatibility Table
- GDB 12.1+
- LLDB 19+
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.