pwndbg_canary
Retrieve the stack canary (stack guard) value to assess stack-smashing protection. Optionally view canaries for all threads.
Instructions
Display the stack canary value.
pwndbg command: canary Source: pwndbg/commands/canary.py Category: Stack
Shows the current stack canary (stack guard) value. The canary is used by stack-smashing protection (SSP / -fstack-protector) to detect buffer overflows.
Args: session_id: The UUID of the session. show_all: If True, show canary for all threads.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/canary/
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_canary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| show_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |