mirror of
https://github.com/toneillcodes/dll-research
synced 2026-08-09 13:13:50 +00:00
Adding ordinal tracking to the api-monitor.py Frida script
This commit is contained in:
@@ -18,15 +18,18 @@ def get_javascript_payload(module_name):
|
||||
|
||||
exports.forEach(exp => {{
|
||||
try {{
|
||||
// --- CHANGED: Fallback to ordinal if string name is missing ---
|
||||
const resolvedName = exp.name ? exp.name : `ordinal_${{exp.ordinal}}`;
|
||||
|
||||
Interceptor.attach(exp.address, {{
|
||||
onEnter(args) {{
|
||||
if (!seenFunctions.has(exp.name)) {{
|
||||
seenFunctions.add(exp.name);
|
||||
if (!seenFunctions.has(resolvedName)) {{
|
||||
seenFunctions.add(resolvedName);
|
||||
send({{
|
||||
type: 'activity',
|
||||
process_id: Process.id,
|
||||
module_name: moduleName,
|
||||
function_name: exp.name
|
||||
function_name: resolvedName // Sends 'ordinal_5' instead of failing
|
||||
}});
|
||||
}}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user