renef_hook_generate
Generate a Renef Lua hook template for a library offset or symbol using the server's hookgen command. Specify a library and offset/symbol, or search symbols across loaded libraries.
Instructions
Generate a Renef Lua hook template using the server's hookgen command.
Examples:
renef_hook_generate("libnative.so", "0x1234")— template for offsetrenef_hook_generate("libc.so", "malloc")— template for symbol in libraryrenef_hook_generate("malloc")— search symbol across loaded libraries
Args:
lib_name: Library name, or symbol name if offset_or_symbol is omitted
offset_or_symbol: Optional hex offset or symbol name inside lib_name
Returns: Generated Lua hook template
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "renef_hook_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib_name | No | ||
| offset_or_symbol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |