知识点APP攻防-资产收集-FridaHook技术APP攻防-资产收集-综合信息提取一、演示案例-APP攻防-资产收集-FirdaHOOK技术一款易用的跨平台Hook工具Java层到Native层的Hook无所不能是一种动态的插桩工具可以插入代码到原生App的内存空间中动态的去监视和修改行为原生平台包括Win、Mac、Linux、Android、iOS全平台。Hook是干嘛的就是假如一个APP打开需要执行123但是可以利用hook技术让这个APP打开的时候只执行3让12停止。1、本地PC安装Fridapipinstallfrida pipinstallfrida-tools2、模拟器安装Frida注意模拟器Frida版本要与本地PCFrida版本一致。Frida下载https://github.com/frida/frida/releases真机ARM版本及位数 模拟器无ARM的位数模拟器版本查看getprop ro.product.cpu.abiadb push frida-server /data/localadb.exe shellcd/data/localchmod-xfrida-server ./frida-server3、本地PC转发并启动Fridaadb forward tcp:27042 tcp:27042连接判断frida-ps -U、frida-ps -R(需要先转发才行)4、测试APP证书绕过绕过脚本https://github.com/apkunpacker/FridaScripts靶场绕过证书获取包名AppMessenger或Apk资源提取器https://github.com/sulab999/AppMessenger本地PC执行frida -U -f 包名 -l hookjs文件frida-U-fddns.android.vuls-lSSLUnpinning.js某社交APP绕过证书frida-U-fcom.p1.mobile.putong-lSSLUnpinning.js某者营地绕过证书二、演示案例-APP攻防-资产收集-综合信息提取1、apkleaks项目地址https://github.com/dwisiswant0/apkleaks通过反编译APK后在利用正则匹配提取相关信息2、APKDeepLens项目地址https://github.com/d78ui98/APKDeepLensAPKDeepLens收集APP的权限、组件信息、IP、Secret。3、AppInfoScanner项目地址https://github.com/kelvinBen/AppInfoScanner对Android、iOS、WEB多场景应用进行信息扫描收集IP、URL、Server、CDN等信息。4、MobSF项目地址https://github.com/MobSF/Mobile-Security-Framework-MobSFMobSF是一种自动化的移动应用Android/iOS/Windows静态和动态分析的测试恶意软件分析和安全评估框架。