pwndbg_heap
Walk the heap and print chunk metadata: size, flags, fd/bk pointers. Defaults to the current thread's active heap.
Instructions
Iteratively print chunks on a heap.
pwndbg command: heap Source: pwndbg/commands/ptmalloc2.py Category: GLibc ptmalloc2 Heap
Walks the heap and prints each chunk's metadata (size, flags, fd/bk pointers for freed chunks). Defaults to the current thread's active heap.
Args: session_id: The UUID of the session. addr: Optional arena or heap address. verbose: If True, show extended chunk details.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/ptmalloc2/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | No | ||
| verbose | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |