自测工具是https://github.com/zhengjim/camille,可以检测敏感信息调用堆栈,需要root手机,我这里用的mumu模拟器。
1.下载camille及frida工具
我用的python3
pip3 install frida
git clone https://github.com/zhengjim/camille
cd camille
pip3 install -r requirements.txt
2.下载frida-server安卓版
下载链接:https://github.com/frida/frida/releases
我用的mumu模拟器,下载的是这个版本frida-server-15.2.2-android-x86_64.xz
mumu模拟器设置开启root权限
image.png
3.adb链接模拟器
附上adb链接mumu模拟器的攻略:
https://mumu.163.com/help/20220721/35047_730476.html
链接成功后把第2部下载的frida-server文件传到模拟器/data/local/tmp/路径中
adb -s emulator-5554 push frida-server /data/local/tmp/
然后后台运行frida-server
/data/local/tmp/frida-server &
4.开始自测
把待检测的apk安装到mumu模拟器中,运行camille.py工具
python3 camille.py com.datou.test
然后模拟器会启动apk,终端会打印调用堆栈,如下:
image.png