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