renef_hook_generate
Generate a ready-to-run Lua hook template for a library and symbol or offset, resolving symbol offsets through an active session so you can hook native methods without writing boilerplate.
Instructions
Generate a ready-to-run Lua hook template (upstream hookgen command).
With a symbol it resolves the offset first (needs a session):
renef_hook_generate("libc.so", "fopen") or renef_hook_generate("libc.so", "0x1a2b3").
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": {
"lib": "<lib>"
},
"name": "renef_hook_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib | Yes | ||
| symbol_or_offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |