renef_exec
Execute Lua 5.4 code inside a target Android process to run hooks, memory reads, and instrumentation. Returns printed output plus exact compile or runtime errors.
Instructions
Execute single-line or multi-line Lua 5.4 code in the target process.
Uses Renef v0.4.0's framed protocol and safe quoting (no 64 KB limit, no temp files,
safe with newlines, quotes, //, and ~). Returns printed output and exact Lua
compile/runtime error messages.
IMPORTANT: Use Renef Lua API (hook, Interceptor, NativeFunction, Memory,
Module, Process, Thread, Java, Jni, Syscall, OS, File, KCov, send),
NOT Frida JS syntax. See renef://api-reference.
Args: lua_code: Lua code to execute in the target process timeout: Silence timeout in seconds (default: 30.0)
Returns:
JSON object with ok, output, error, and any queued event hint
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": {
"lua_code": "<lua_code>"
},
"name": "renef_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| lua_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |