unhook_function
Remove function hooks from memory addresses to restore original code behavior during game hacking and reverse engineering processes.
Instructions
Remove a hook from an address.
Args:
address: Address to unhook
Returns:
Unhook status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |
Implementation Reference
- The handler function for the 'unhook_function' MCP tool. It removes a hook from the specified address by unloading the associated Frida script and deleting the hook entry from the session state.@mcp.tool() def unhook_function(address: str) -> Dict[str, Any]: """ Remove a hook from an address. Args: address: Address to unhook Returns: Unhook status. """ global _session if address not in _session.hooks: return {"error": f"No hook at {address}"} try: _session.hooks[address].script.unload() del _session.hooks[address] return {"success": True, "address": address, "message": f"Hook removed from {address}"} except Exception as e: return {"error": f"Failed to remove hook: {str(e)}"}