Closed 350030173 closed 3 years ago
不知道你说的是哪一款哈,刚才去 https://apkpure.com/cn/last-day-on-earth/zombie.survival.craft.z 下载的这款是没问题的 方法数量太多不建议全部 hook,B("filter"),p("filter")筛选一下来hook 吧 一般情况下不建议使用 Spawned 附加(u3d的导出函数需要在u3d初始化完成之后才能调用,然而这里只是判断了加载il2cpp的时机,这个时机去做u3d的事情未必能成功,而且涉及到这种三万个方法的查找也很慢),如果你想在早期 hook ,可以正常进去附加并使用 a() 添加后在使用 p('filter')进行筛选,最后拿到这些地址使用 bpoint.js 进行启动时附加 (启动时hook太多函数有概率崩掉,特别是掉java有报错的函数,可能java try catch 处理了,但是你这么附加到这种报错的函数依旧会崩掉),所以有筛选了hook 别一股脑全部 hook (下下策。。。。) 最后一点,a() 倒是带个参数呀。。。 之所以a() 添加了默认参数是希望直接用 B() 方便点
function a(imgOrCls){
if (imgOrCls == undefined) {
for (var i = 0 ;i< arr_img_names.length;i++){
if ( arr_img_names[i] == 'Assembly-CSharp'){
imgOrCls = arr_img_addr[i]
break
}
}
}
addBreakPoints(imgOrCls)
}
要么就是你这里的初始化有问题,只有arr_img_names空的时候a()才是空,你既然能i(),那就顺带传参
attach的时候,i()方法显示not a function
λ frida -U -l C:\Users\Administrator\Desktop\工具\Il2CppDumperTool-master\U3DHook\Ufun.js -F
| (_| |
spwan启动的时候,i()方法正常,a()方法失效
λ frida -U -l C:\Users\Administrator\Desktop\工具\Il2CppDumperTool-master\U3DHook\Ufun.js -f zombie.survival.craft.z --no-pause
| (_| |