frida_cmodule_compile
JIT-compile C source inside a target process to execute high-performance hooks or callbacks in C instead of JavaScript.
Instructions
Compile inline C code and load it into a target process via CModule.
JIT-compiles C source inside the target process. Useful for writing high-performance hooks or callbacks in C instead of JS.
target: process name or pid (string).
c_code: C source code to compile.
symbols: optional dict mapping symbol names to hex addresses for
linking (e.g. {"my_func": "0x100004000"}).
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>",
"c_code": "<c_code>"
},
"name": "frida_cmodule_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| c_code | Yes | ||
| symbols | No | ||
| toolchain | No |