mirror of
https://github.com/frida/releng.git
synced 2026-11-07 09:36:02 -10:00
devkit-assets: Use Frida 17 GumJS API (#19)
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user