开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1879|回复: 3
收起左侧

[Android逆向] 金核 frida hook 明文包 脚本

[复制链接]
结帖率:100% (1/1)
发表于 2023-8-5 21:32:05 | 显示全部楼层 |阅读模式   湖北省武汉市
var base = Module.findBaseAddress("libUE4.so");
    //明文收包打印
Interceptor.attach(base.add(0x742392C), {
    onEnter: function(args) {
        if(this.context.lr.sub(base) != 0x7422ffc) return;
        this.is = 1;
        console.log("---------------------Recv");
        console.log("args[0]:"  + args[0] +" args[1]:"  + args[1]+" args[2]:"  + args[2]+" args[3]:"  + args[3]+" args[4]:"  + args[4]+" args[5]:"  + args[5] +" args[6]:"  + args[6] +" args[7]:"  + args[7]  );
        //console.log(Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress).join('\n') + '\n');
    },
    onLeave:function (ret) {
        if (this.is == 1){
            console.log(hexdump(ret,{length:0x100}));// 结构是 长度 +  proto 数据
        }
    }
});
    //明文发包打印
            Interceptor.attach(base.add(0x7430A18), {
    onEnter: function(args) {
        console.log("---------------------Sends");
        console.log("args[0]:"  + args[0] +" args[1]:"  + args[1]+" args[2]:"  + args[2]+" args[3]:"  + args[3]+" args[4]:"  + args[4]+" args[5]:"  + args[5] +" args[6]:"  + args[6] +" args[7]:"  + args[7]  );
        //console.log(Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress).join('\n') + '\n');
        console.log(hexdump(args[2],{length:args[3].toInt32()}));// 打印 proto 数据
    },
    onLeave:function (ret) {
    }
});


发表于 2023-8-6 01:17:44 | 显示全部楼层   湖北省武汉市
我怎么联系你,我需要写个软件~·我人在武汉这边
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)
 楼主| 发表于 2023-8-5 21:35:47 | 显示全部楼层   湖北省武汉市
文西哥 发表于 2023-8-5 21:33
大佬这么高产,分享了好几个协议了

都是 以前接单 做的好久没登录论坛 就发几个
回复 支持 反对

使用道具 举报

结帖率:100% (8/8)

签到天数: 13 天

发表于 2023-8-5 21:33:54 | 显示全部楼层   广东省东莞市
大佬这么高产,分享了好几个协议了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 诚聘英才| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 800073686,邮箱:800073686@b.qq.com
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表