首页
课程
问答
CTF
社区
招聘
峰会
发现
排行榜
知识库
工具下载
看雪20年
看雪商城
证书查询
登录
注册
首页
社区
课程
招聘
发现
问答
CTF
排行榜
知识库
工具下载
峰会
看雪商城
证书查询
社区
Android安全
发新帖
7
2
il2cpp api偏移查找
发表于: 2024-7-31 17:39
5495
il2cpp api偏移查找
灯-等灯等灯~
2024-7-31 17:39
5495
打开 libunity.so 搜索字符串:Could not load symbol %s : %s  查找引用,进入任意一处  F5显示伪代码:  frida hook代码: ``` /* 用法: frida -U -l hook_dlopen.js -f packageName --no-pause */ var soName = "libunity.so" function myfun() { var moduleBaseAddress = Module.getBaseAddress(soName); console.log(soName + "_address:", moduleBaseAddress); var nativePointer = moduleBaseAddress.add(0x6139C0);//加上偏移地址 Interceptor.attach(nativePointer, { onEnter: function (args) { console.log("\n"); console.log("==参数0:" + this.context.x0); console.log("==参数1:" + this.context.x1.readCString()) console.log("==参数2:" + this.context.x2) }, onLeave: function (retval) { console.log("retval",retval,retval.sub(Module.getBaseAddress("libil2cpp.so"))); } } ); } function hook_dlopen() { var is_can_hook = false; Interceptor.attach(Module.findExportByName(null, "dlopen"), { onEnter: function (args) { var pathptr = args[0]; if (pathptr !== undefined && pathptr != null) { var path = ptr(pathptr).readCString(); if (path.indexOf(soName) >= 0) { this.is_can_hook = true; console.log("\n"+soName+"_path:", path); } } }, onLeave: function (retval) { if (this.is_can_hook) { myfun(); console.log("dlopen finish..."); } } } ); Interceptor.attach(Module.findExportByName(null, "android_dlopen_ext"), { onEnter: function (args) { var pathptr = args[0]; if (pathptr !== undefined && pathptr != null) { var path = ptr(pathptr).readCString(); if (path.indexOf(soName) >= 0) { this.is_can_hook = true; console.log("\n"+soName+"_path:", path); } } }, onLeave: function (retval) { if (this.is_can_hook) { myfun(); console.log("android_dlopen_ext finish..."); } } } ); } setImmediate(hook_dlopen); ``` 输出:   总结: 多找找特征,找旧版本对比 欢迎加入QQ群:812701781,542863693,欢迎分享一些骚操作(备注看的什么文章) 微信公众号:MoneyHoneyCome
传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!!
#逆向分析
#HOOK注入
#工具脚本
收藏
・
7
点赞
・
2
打赏
分享
分享到微信
分享到QQ
分享到微博
赞赏记录
参与人
雪币
留言
时间
by_Lin
谢谢你的细致分析,受益匪浅!
2024-12-20 04:22
Istaroth
感谢你的积极参与,期待更多精彩内容!
2024-8-1 14:18
查看更多
赞赏
×
1 雪花
5 雪花
10 雪花
20 雪花
50 雪花
80 雪花
100 雪花
150 雪花
200 雪花
支付方式:
微信支付
赞赏留言:
快捷留言
感谢分享~
精品文章~
原创内容~
精彩转帖~
助人为乐~
感谢分享~
最新回复
(
3
)
New对象处
雪 币:
361
活跃值:
(8070)
能力值:
( LV3,RANK:30 )
在线值:
发帖
6
回帖
182
粉丝
32
关注
私信
New对象处
2
楼
先发6,再看
2024-7-31 18:05
0
e有理
雪 币:
0
能力值:
( LV1,RANK:0 )
在线值:
发帖
0
回帖
1
粉丝
0
关注
私信
e有理
3
楼
666
2024-11-12 18:43
0
zkbutt
雪 币:
338
能力值:
( LV1,RANK:0 )
在线值:
发帖
6
回帖
59
粉丝
3
关注
私信
zkbutt
4
楼
这么好的文章没人顶?
2025-11-18 09:11
0
游客
登录
|
注册
方可回帖
回帖
表情
雪币赚取及消费
高级回复
返回
灯-等灯等灯~
10
发帖
12
回帖
40
RANK
关注
私信
他的文章
[原创]修改dex字节码
28716
[分享]frida主动调用init_array中的函数
3089
il2cpp api偏移查找
5494
[原创]一次svc简单绕过
4836
[分享]global-metadata.dat,libil2cpp.so解密修复
18586
关于我们
联系我们
企业服务
看雪公众号
专注于PC、移动、智能设备安全研究及逆向工程的开发者社区
看原图
赞赏
×
雪币:
+
留言:
快捷留言
为你点赞!
返回
顶部