pwndbg_spray
Sprays memory with cyclic patterns to identify which byte offset overwrites a target address during buffer overflow analysis.
Instructions
Spray memory with cyclic pattern values.
pwndbg command: spray Source: pwndbg/commands/spray.py Category: Misc
Writes cyclic() generated values to memory, useful for identifying which offset in a buffer overwrites a target.
Args: session_id: The UUID of the session. addr: Address to start spraying. length: Number of bytes to spray (0 = auto).
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/spray/
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>",
"addr": "<addr>"
},
"name": "pwndbg_spray"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | Yes | ||
| length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |