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

Function targetModuleName

scripts/function-stalker.js:137–146  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

135
136// module name of a target string, for the exclude step
137function targetModuleName(s) {
138 s = String(s).trim();
139 if (s.includes("@")) return s.split("@")[1].trim();
140 if (s.includes("+")) return s.split("+")[0].trim();
141 // absolute / symbol: resolve then look up
142 const a = resolveTarget(s);
143 if (!a) return null;
144 let m = null; try { m = Process.findModuleByAddress(a); } catch (e) {}
145 return m ? m.name : null;
146}
147
148// --- Stalker.exclude: confine instrumentation -------------------------------
149let excludedOnce = false;

Callers 1

installFunction · 0.85

Calls 1

resolveTargetFunction · 0.85

Tested by

no test coverage detected