Skip to main content

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

ToolPricing
GDB

GNU Project source-level debugger for inspecting process memory, breakpoints, and program execution in C, C++, Rust, and Go.

Open Source
Ghidra

Software reverse engineering suite developed by the NSA, offering disassembly, decompilation, and scriptable binary analysis.

Open Source
pwntools

Python framework and exploit development library tailored for rapid prototyping, socket handling, and binary exploitation.

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.