pwndbg
GDB and LLDB plugin that improves debugging for exploit development and reverse engineering with low-level inspection helpers.
What Is pwndbg?
pwndbg is an open-source Python plugin for GDB and LLDB that adds memory, stack, heap, and instruction inspection helpers for low-level debugging. It focuses on features needed by low-level software developers, hardware hackers, reverse engineers, and exploit developers.
Use Cases
Debugging complex binaries and inspecting heap, stack, and memory state.
Strengths and Limitations
Strengths
- +Provides commands for stack, heap, register, and memory inspection.
- +Works with both GDB (battle-tested) and LLDB (experimental).
- +Includes exploit development helpers such as ROP gadget search, leak finding, and GOT tracking.
Limitations
- -LLDB support is early-stage and may contain bugs or limitations.
- -Advanced use requires strong knowledge of low-level debugging and assembly.
Defensive Use
Verifying binary security settings and investigating binary behavior during reverse engineering.
pwndbg Alternatives
| Tool | License | Platforms | Pricing |
|---|---|---|---|
| GDB GNU Project source-level debugger for inspecting process memory, breakpoints, and program execution in C, C++, Rust, and Go. | GPL-3.0-or-later | Linux, macOS, Windows | Open Source |
| Ghidra Software reverse engineering suite developed by the NSA, offering disassembly, decompilation, and scriptable binary analysis. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| pwntools Python framework and exploit development library tailored for rapid prototyping, socket handling, and binary exploitation. | MIT AND BSD-2-Clause AND GPL-2.0-or-later | Linux, macOS, FreeBSD, Windows | Open Source |
Frequently Asked Questions
What is pwndbg?→
pwndbg is an open-source Python plugin for GDB and LLDB that adds memory, stack, heap, and instruction inspection helpers for low-level debugging. It focuses on features needed by low-level software developers, hardware hackers, reverse engineers, and exploit developers.
What is pwndbg used for?→
Debugging complex binaries and inspecting heap, stack, and memory state.
What are the strengths of pwndbg?→
- +Provides commands for stack, heap, register, and memory inspection.
- +Works with both GDB (battle-tested) and LLDB (experimental).
- +Includes exploit development helpers such as ROP gadget search, leak finding, and GOT tracking.
What are the limitations of pwndbg?→
- +LLDB support is early-stage and may contain bugs or limitations.
- +Advanced use requires strong knowledge of low-level debugging and assembly.
How is pwndbg used defensively?→
Verifying binary security settings and investigating binary behavior during reverse engineering.