首页
社区
课程
招聘
[原创]经典 Frida 检测 libmsaoaidsec.so 绕过
发表于: 2025-12-8 16:59 41787

[原创]经典 Frida 检测 libmsaoaidsec.so 绕过

2025-12-8 16:59
41787
收藏
免费 151
支持
分享
最新回复 (153)
雪    币: 32
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
126
66666
2026-1-18 06:41
0
雪    币: 774
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
127
666
2026-1-18 15:29
0
雪    币: 3479
活跃值: (8423)
能力值: ( LV7,RANK:102 )
在线值:
发帖
回帖
粉丝
128
必须的
2026-1-20 13:36
0
雪    币: 200
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
129
66666666666
2026-1-21 04:44
0
雪    币: 4
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
130
666
2026-1-21 06:23
0
雪    币: 463
活跃值: (1144)
能力值: ( LV2,RANK:15 )
在线值:
发帖
回帖
粉丝
131
tql
2026-1-21 10:00
0
雪    币: 19
活跃值: (60)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
132
66666666666666
2026-1-21 19:53
0
雪    币: 236
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
133
天水姜伯约 hook so入口点可以用一套模板代码 get_so_name = (const char *(*)(void *soinfo)) (linker64_base ...
大牛,你的代码后面有一部分缺失了
2026-1-22 07:44
0
雪    币: 433
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
134
看看
2026-1-22 08:53
0
雪    币: 5783
活跃值: (9907)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
135
大佬非你莫属
2026-1-22 09:17
0
雪    币: 206
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
136
666
2026-1-22 09:19
0
雪    币: 3487
活跃值: (8018)
能力值: ( LV9,RANK:235 )
在线值:
发帖
回帖
粉丝
137
Bileton 大牛,你的代码后面有一部分缺失了
function hook_linker_constructors() {
    // 1. 获取 linker64 的基地址或直接查找符号
    // 在 Android 10+ 中,linker 位于 /apex/com.android.runtime/bin/linker64
    const linkerName = "linker64";
    
    // 2. 查找符号地址 (对应 C++ 代码中的 get_sym_addr)
    // __dl__ZN6soinfo17call_constructorsEv -> soinfo::call_constructors()
    // __dl__ZNK6soinfo10get_sonameEv        -> soinfo::get_soname()
    const call_constructors_addr = Module.findExportByName(linkerName, "__dl__ZN6soinfo17call_constructorsEv");
    const get_soname_addr = Module.findExportByName(linkerName, "__dl__ZNK6soinfo10get_sonameEv");

    if (!call_constructors_addr || !get_soname_addr) {
        console.log("[-] 找不到符号,请确认 Android 版本或符号名是否正确");
        return;
    }

    // 3. 定义 get_soname 函数拨号 (NativeFunction)
    const get_so_name = new NativeFunction(get_soname_addr, 'pointer', ['pointer']);

    console.log("[+] Found call_constructors at: " + call_constructors_addr);
    console.log("[+] Found get_soname at: " + get_soname_addr);

    // 4. 使用 Interceptor.attach 替代 DobbyInstrument
    Interceptor.attach(call_constructors_addr, {
        onEnter: function (args) {
            // 在 C++ 中,成员函数的第一个参数 (x0) 是 'this' 指针,即 soinfo 实例
            const soinfo_ptr = args[0];
            
            // 调用 get_soname 获取库名
            const soname_ptr = get_so_name(soinfo_ptr);
            
            if (!soname_ptr.isNull()) {
                const soname = soname_ptr.readCString();
                
                // 5. 逻辑判断:匹配 libmetasec_ml.so
                if (soname.indexOf("libmetasec_ml.so") !== -1) {
                    console.log("[*] Detected loading: " + soname);
                    
                    // 此时 .init_array 尚未执行,你可以在这里进行进一步的 Hook
                    // 例如:hook 该 so 内部的函数
                }
            }
        }
    });
}

// 执行 Hook
hook_linker_constructors();

那个是dobby的代码,用ai翻译成了frida js,可以看一下

2026-1-22 10:29
0
雪    币:
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
138
666
2026-1-25 15:54
0
雪    币: 0
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
139
6666
2026-1-27 01:09
0
雪    币: 220
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
140
学习学习
2026-1-27 10:34
0
雪    币: 200
活跃值: (401)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
141
6666
2026-1-29 11:22
0
雪    币: 7
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
142
6666
2026-1-29 17:29
0
雪    币: 200
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
143
666
2026-2-1 05:19
0
雪    币: 27
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
144
666
2026-2-1 08:06
0
雪    币: 158
活跃值: (2191)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
145
666
6天前
0
雪    币: 1047
活跃值: (1375)
能力值: ( LV9,RANK:190 )
在线值:
发帖
回帖
粉丝
146
学习一下
6天前
0
雪    币: 1736
活跃值: (1755)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
147
666666
5天前
0
雪    币: 0
活跃值: (290)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
148
111
3天前
0
雪    币:
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
149
学习一下
3天前
0
雪    币:
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
150
如果侦测脚本出来的so这是这样的,该怎么找对应位置呢?[09:37:33 PM] Thread:19209 Loading => libSignatureKiller.so  没有绝对路径
3天前
0
游客
登录 | 注册 方可回帖
返回