pwndbg_emulate
Emulate instructions to predict register and memory states. View the resulting values without actual execution.
Instructions
Disassemble with instruction emulation to predict register/memory state.
pwndbg command: emulate Source: pwndbg/commands/nearpc.py Category: Disassemble
Like nearpc but with emulation enabled by default. Shows what registers and memory values would be after each instruction executes, without actually executing them.
Args: session_id: The UUID of the session. address: Address to start emulation (default: $pc). lines: Number of instructions to emulate.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/nearpc/
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_emulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| address | No | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |