有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Frida Java windows的逆向工程

是否可以在Windows上使用Frida来跟踪Java应用程序中的方法

我已经在使用Javascript在Android上调试APK了,但在Java应用程序的Windows上我不能这样做

更具体的问题是:我需要钩住一些模糊的函数,并获取这些函数的参数值和返回值


共 (1) 个答案

  1. # 1 楼答案

    您可以通过地址+基钩住方法

    https://www.frida.re/docs/examples/windows/

    Interceptor.attach(Module.findExportByName(null, "dlopen"), {
                onEnter: function(args) {
                    this.lib = Memory.readUtf8String(args[0]);
                    console.log("[*] dlopen called with: " + this.lib);
                },
                onLeave: function(retval) {
                    if (this.lib.endsWith(moduleName)) {
                        Interceptor.attach(Module.findBaseAddress(moduleName).add(nativeFuncAddr_AKA_offset), {
                            onEnter: function(args) {
                                console.log("[*] hook invoked");
                            }
                        });
                    }
                }
            });