[bugfix] fix for frida 12.5
This commit is contained in:
parent
e3f6245905
commit
81b42b7007
20
dump.js
20
dump.js
|
@ -129,15 +129,15 @@ function getExportFunction(type, name, ret, args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NSSearchPathForDirectoriesInDomains = getExportFunction("f", "NSSearchPathForDirectoriesInDomains", "pointer", ["int", "int", "int"]);
|
var NSSearchPathForDirectoriesInDomains = getExportFunction("f", "NSSearchPathForDirectoriesInDomains", "pointer", ["int", "int", "int"]);
|
||||||
wrapper_open = getExportFunction("f", "open", "int", ["pointer", "int", "int"]);
|
var wrapper_open = getExportFunction("f", "open", "int", ["pointer", "int", "int"]);
|
||||||
read = getExportFunction("f", "read", "int", ["int", "pointer", "int"]);
|
var read = getExportFunction("f", "read", "int", ["int", "pointer", "int"]);
|
||||||
write = getExportFunction("f", "write", "int", ["int", "pointer", "int"]);
|
var write = getExportFunction("f", "write", "int", ["int", "pointer", "int"]);
|
||||||
lseek = getExportFunction("f", "lseek", "int64", ["int", "int64", "int"]);
|
var lseek = getExportFunction("f", "lseek", "int64", ["int", "int64", "int"]);
|
||||||
close = getExportFunction("f", "close", "int", ["int"]);
|
var close = getExportFunction("f", "close", "int", ["int"]);
|
||||||
remove = getExportFunction("f", "remove", "int", ["pointer"]);
|
var remove = getExportFunction("f", "remove", "int", ["pointer"]);
|
||||||
access = getExportFunction("f", "access", "int", ["pointer", "int"]);
|
var access = getExportFunction("f", "access", "int", ["pointer", "int"]);
|
||||||
dlopen = getExportFunction("f", "dlopen", "pointer", ["pointer", "int"]);
|
var dlopen = getExportFunction("f", "dlopen", "pointer", ["pointer", "int"]);
|
||||||
|
|
||||||
function getDocumentDir() {
|
function getDocumentDir() {
|
||||||
var NSDocumentDirectory = 9;
|
var NSDocumentDirectory = 9;
|
||||||
|
@ -378,7 +378,7 @@ function handleMessage(message) {
|
||||||
modules = getAllAppModules();
|
modules = getAllAppModules();
|
||||||
for (var i = 0; i < modules.length; i++) {
|
for (var i = 0; i < modules.length; i++) {
|
||||||
console.log("start dump " + modules[i].path);
|
console.log("start dump " + modules[i].path);
|
||||||
result = dumpModule(modules[i].path);
|
var result = dumpModule(modules[i].path);
|
||||||
send({ dump: result, path: modules[i].path});
|
send({ dump: result, path: modules[i].path});
|
||||||
}
|
}
|
||||||
send({app: app_path.toString()});
|
send({app: app_path.toString()});
|
||||||
|
|
Loading…
Reference in New Issue