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/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| offset | No | ||
| module | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |