patch_code
Patch and analyze code by dispatching module actions: create or verify PE signatures, emulate functions, dump IL2CPP metadata, and generate Frida scripts for dynamic instrumentation.
Instructions
Code patching helpers. Dispatches by module+action.
Modules/actions: pe: make_signature (path, address, length, wildcard_offsets), verify_signature (path, signature), emulate_function (code_hex, entry_offset, arch, args) apk: il2cpp_dump dynamic: frida_script
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": {
"module": "<module>",
"action": "<action>"
},
"name": "patch_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| module | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |