Interceptor.attach(Module.findExportByName("libc.so", "open"), { // 150 行 这里报错
onEnter(args) {
console.log("open:", args[0].readCString(), "flags=" + args[1]);
}
});
[agent] [JS] call hooklibc
[JS error] InternalError: hook_attach: invalid parameter
at attach (native)
at (rustfrida.js:150:19)
是否对应内核模块mkpms也要更新
还有一个问题就是无法hook java , 仅仅开启 Java.ready(function () { 都会报错
[agent] [JS] [hook_engine] wxshadow PATCH failed (errno=14), trying PMD split + COW for addr=0x74ca661630
[agent] [JS] [hook_engine] wxshadow PATCH failed (errno=14), trying PMD split + COW for addr=0x74ca585a18
[✗] 主线程加载 Java 脚本失败: 进程异常停止: SIGABRT PC=0x77689bc1f4 LR=0x77689bc1c8 X0=0x0
[→] 正在恢复子进程 10251...
Interceptor.attach(Module.findExportByName("libc.so", "open"), { // 150 行 这里报错
onEnter(args) {
console.log("open:", args[0].readCString(), "flags=" + args[1]);
}
});
[agent] [JS] call hooklibc
[JS error] InternalError: hook_attach: invalid parameter
at attach (native)
at (rustfrida.js:150:19)
是否对应内核模块mkpms也要更新
还有一个问题就是无法hook java , 仅仅开启 Java.ready(function () { 都会报错
[agent] [JS] [hook_engine] wxshadow PATCH failed (errno=14), trying PMD split + COW for addr=0x74ca661630
[agent] [JS] [hook_engine] wxshadow PATCH failed (errno=14), trying PMD split + COW for addr=0x74ca585a18
[✗] 主线程加载 Java 脚本失败: 进程异常停止: SIGABRT PC=0x77689bc1f4 LR=0x77689bc1c8 X0=0x0
[→] 正在恢复子进程 10251...