首页
社区
课程
招聘
如何通过frida 去hook ios scheme获取他的连接阿
2022-6-14 20:13 19537

如何通过frida 去hook ios scheme获取他的连接阿

2022-6-14 20:13
19537
收藏
点赞2
打赏
分享
最新回复 (2)
雪    币: 2010
活跃值: (2765)
能力值: (RANK:260 )
在线值:
发帖
回帖
粉丝
xiaohang 3 2022-6-15 10:11
2
0
也许程序本来就没有调用这个方法,一般我会拿lldb下断再确认一次
雪    币: 5995
活跃值: (3470)
能力值: ( LV6,RANK:96 )
在线值:
发帖
回帖
粉丝
Imyang 1 2022-6-21 13:57
3
1
function hook_NSURL() {
    var UIApplication = ObjC.classes.UIApplication;
    Interceptor.attach(UIApplication['- openURL:options:completionHandler:'].implementation, {
        onEnter: function (args) {
            var url = ObjC.Object(args[2]);
            console.log("openURL:", url.toString());
        },
        onLeave: function (retval) {
        },
    });
    Interceptor.attach(UIApplication['- openURL:'].implementation, {
        onEnter: function (args) {
            var url = ObjC.Object(args[2]);
            console.log("openURL:", url.toString());
        },
        onLeave: function (retval) {
        },
    });
    console.log("hook_NSURL");
}


游客
登录 | 注册 方可回帖
返回