patch_binary_executable
Modify executable bytes on disk using RVA-to-raw conversion and PE/ELF section mapping, with automatic backups and PE checksum recalculation for reverse-engineering patches.
Instructions
Active reverse engineering intervention. Surgical disk binary patcher with RVA-to-Raw conversion, PE/ELF section mapping, arbitrary hex byte modification, automatic backup creation, and PE checksum recalculation.
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>",
"patches": "<patches>"
},
"name": "patch_binary_executable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patches | Yes | List of byte patches | |
| binary_path | Yes | Absolute path to target binary (PE, ELF, RAW) | |
| output_path | No | Optional destination output path | |
| create_backup | No | Create .bak backup when modifying in-place | |
| recalculate_pe_checksum | No | Recalculate PE optional header checksum |