pwndbg_retaddr
Scan the stack for pointers into executable regions to identify return addresses, useful for finding ROP pivot targets.
Instructions
Print stack addresses that contain return addresses.
pwndbg command: retaddr Source: pwndbg/commands/retaddr.py Category: Stack
Scans the stack for values that look like return addresses (pointers into executable regions), useful for finding ROP pivot targets.
Args: session_id: The UUID of the session.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/retaddr/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "pwndbg_retaddr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |