frida_linux_got_hook
Overwrite a GOT entry in a Linux process to replace or log calls to a specific function in a module.
Instructions
[Linux] Overwrite a GOT/PLT entry for a function in a target module.
Finds the GOT entry for function_name in module_name. If replacement_addr is given, overwrites the slot directly. Otherwise installs a logging trampoline that logs calls and passes through.
target: process name or pid (string).
module_name: ELF module name (e.g. 'myapp', 'libssl.so').
function_name: function name whose GOT entry to patch.
replacement_addr: optional hex address (e.g. '0x7f001234').
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>",
"module_name": "<module_name>",
"function_name": "<function_name>"
},
"name": "frida_linux_got_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| module_name | Yes | ||
| function_name | Yes | ||
| replacement_addr | No |