hook_method
Hooks a module's exported symbol to capture function arguments and return values, enabling dynamic analysis of obfuscated routines or anti-debug callbacks.
Instructions
Install a tracing hook on module:symbol.
The hook captures both arguments (on-enter) and the return value (on-leave) and posts messages back to the Python side for the analyst to consume. Useful for tracing the dispatcher of an encrypted-VM bytecode interpreter, the handler of an MBA-obfuscated arithmetic routine, or the userland callback of an anti-debug check.
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": {
"session": "<session>",
"module": "<module>",
"symbol": "<symbol>"
},
"name": "hook_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| module | Yes | ||
| symbol | Yes |