inject_hook_preset
Inject pre-built hook templates to intercept XHR, fetch, WebSocket, crypto operations, and bypass anti-debugging traps for reverse engineering.
Instructions
Inject a pre-built hook template for common reverse engineering tasks.
Available presets: - "xhr": Hook XMLHttpRequest to log all XHR requests. - "fetch": Hook window.fetch to log all fetch requests. - "crypto": Hook btoa/atob/JSON.stringify to capture encryption I/O. - "websocket": Hook WebSocket to log all WS messages. - "debugger_bypass": Bypass anti-debugging traps. - "cookie": Hook document.cookie writes. - "runtime_probe": Full runtime probe.
Args: preset: One of the above preset names. persistent: If True (default), survives page navigation.
Returns: dict with status and the preset name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | ||
| persistent | No |