Skip to content

5月12发布的rustfrida 用来hook 示例中的 open 函数都失败,使用 #10

Description

@yuantao1213

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions