Skip to main content
Glama

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
NameRequiredDescriptionDefault
addressYes

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)}"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xhackerfren/frida-game-hacking-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server