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.
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 |