MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / detachAll

Function detachAll

scripts/function-stalker.js:342–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340
341// --- REPL helpers -----------------------------------------------------------
342function detachAll() {
343 hooks.forEach((h) => { try { h.detach(); } catch (e) {} });
344 hooks.length = 0;
345 for (const tid of [...stateByTid.keys()]) { try { Stalker.unfollow(tid); } catch (e) {} }
346 try { Stalker.flush(); } catch (e) {}
347 depthByTid.clear(); stateByTid.clear();
348 console.log(`${C.dim}[*] detached all hooks & unfollowed${C.reset}`);
349}
350function clear() { console.log("\x1b[3J\x1b[H\x1b[2J"); }
351function help() {
352 const b = (s) => `${C.green}${s}${C.reset}`, d = (s) => `${C.dim}${s}${C.reset}`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected