write_bytes
Patch specific addresses in a binary by writing raw hex bytes or assembling assembly instructions to alter program behavior.
Instructions
Patch bytes at a specific address in the binary using hex bytes or assembly instructions.
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": {
"binary_path": "<binary_path>",
"address": "<address>"
},
"name": "write_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Hex address to write at (e.g. "0x08048000") | |
| assembly | No | Assembly instruction to assemble and write (e.g. "nop" or "jmp 0x08048100") | |
| hex_bytes | No | Hex bytes to write (e.g. "9090" for two NOPs) | |
| binary_path | Yes | Absolute path to the binary file |