devkit-assets: Use Frida 17 GumJS API (#19)

This commit is contained in:
Hex authored and GitHub committed 2025-10-15 00:49:58 +02:00
1 parent c24becede0
commit 800f2385c3
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -21,12 +21,12 @@ main (int argc,
backend = gum_script_backend_obtain_qjs ();
script = gum_script_backend_create_sync (backend, "example",
"Interceptor.attach(Module.getExportByName(null, 'open'), {\n"
"Interceptor.attach(Module.getGlobalExportByName('open'), {\n"
" onEnter(args) {\n"
" console.log(`[*] open(\"${args[0].readUtf8String()}\")`);\n"
" }\n"
"});\n"
"Interceptor.attach(Module.getExportByName(null, 'close'), {\n"
"Interceptor.attach(Module.getGlobalExportByName('close'), {\n"
" onEnter(args) {\n"
" console.log(`[*] close(${args[0].toInt32()})`);\n"
" }\n"
+2 -2
View File
@@ -28,12 +28,12 @@ main (int argc,
backend = gum_script_backend_obtain_qjs ();
script = gum_script_backend_create_sync (backend, "example",
"Interceptor.attach(Module.getExportByName('user32.dll', 'MessageBeep'), {\n"
"Interceptor.attach(Process.getModuleByName('user32.dll').getExportByName('MessageBeep'), {\n"
" onEnter(args) {\n"
" console.log(`[*] MessageBeep(${args[0].toInt32()})`);\n"
" }\n"
"});\n"
"Interceptor.attach(Module.getExportByName('kernel32.dll', 'Sleep'), {\n"
"Interceptor.attach(Process.getModuleByName('kernel32.dll').getExportByName('Sleep'), {\n"
" onEnter(args) {\n"
" console.log(`[*] Sleep(${args[0].toInt32()})`);\n"
" }\n"