From ea829f8aea72afe13c16e27f995b7ee3b0634eea Mon Sep 17 00:00:00 2001 From: Damiano Melotti Date: Wed, 8 Dec 2021 16:33:45 +0100 Subject: [PATCH] Fix #6 --- nugget_toolkit/scripts/frida/callapp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nugget_toolkit/scripts/frida/callapp.js b/nugget_toolkit/scripts/frida/callapp.js index c75fc10..3e34163 100644 --- a/nugget_toolkit/scripts/frida/callapp.js +++ b/nugget_toolkit/scripts/frida/callapp.js @@ -14,7 +14,7 @@ var app_id, param; var request, request_size; var reply, reply_size_addr, reply_size; -var libname = "parser.so"; +var libname = "libparser.so"; var libdir = "/data/local/tmp/"; var libpath = libdir + libname; @@ -25,7 +25,7 @@ log("Found sanity function at: " + sanity_func); var sanity_res = sanity_func(); log("Sanity function returned " + sanity_res); -var parser_func = new NativeFunction(Module.findExportByName(libname, "_Z6parserjjPcjS_Pj"), "void", ["int", "int", "pointer", "int", "pointer", "pointer"]); +var parser_func = new NativeFunction(Module.findExportByName(libname, "parser"), "void", ["int", "int", "pointer", "int", "pointer", "int"]); Interceptor.attach(moduleBase, { onEnter: function(args) { @@ -63,7 +63,7 @@ Interceptor.attach(moduleBase, { log("Reply has null size"); } - parser_func(app_id, param, request, request_size, reply, reply_size_addr); + parser_func(app_id, param, request, request_size, reply, reply_size); log("------------------------------------------------------------------------------------------------------"); }