pwndbg_piebase
Calculate runtime virtual address from PIE-relative offset for PIE binaries. Converts file offset to address by adding PIE base.
Instructions
Calculate the virtual address from a PIE-relative offset.
pwndbg command: piebase Source: pwndbg/commands/pie.py Category: Linux/libc/ELF
For PIE binaries, converts a file offset (RVA) to a runtime virtual address by adding the PIE base.
Args: session_id: The UUID of the session. offset: Offset from PIE base to calculate (default: 0 = show base). module: Optional module name (default: main binary).
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/pie/
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_piebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| offset | No | ||
| module | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |