首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Frida Java窗口

Frida Java窗口
EN

Stack Overflow用户
提问于 2018-04-12 20:12:55
回答 1查看 806关注 0票数 0

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

我已经使用它通过Javascript在Android上调试APK,但我不能在Windows上的Java应用程序中做同样的事情。

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

EN

回答 1

Stack Overflow用户

发布于 2018-06-04 19:27:57

是。

你可以通过地址+基址来钩子方法。

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

代码语言:javascript
复制
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");
                        }
                    });
                }
            }
        });
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49796220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档