frida_memory_patch_code
Patch executable code at a specific address with hex bytes, using Memory.patchCode for safe code modification. Handles ARM instruction cache flushing.
Instructions
Patch executable code at an address using Memory.patchCode.
Handles instruction cache flushing (ARM). Safer than raw write_memory for code regions.
target: process name or pid (string).
address: hex address to patch (e.g. '0x100004000').
hex_bytes: hex-encoded bytes (e.g. 'c3', '90909090').
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": {
"target": "<target>",
"address": "<address>",
"hex_bytes": "<hex_bytes>"
},
"name": "frida_memory_patch_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| address | Yes | ||
| hex_bytes | Yes |