1.安装python
查看python是否安装成功,执行python命令
2.安装pip
压缩文件解压到某个目录,whl文件放在C盘当前用户目录下,进入解压目录,执行python setup.py install
执行pip命令看pip是否安装成功
3.安装frida,frida-tool,下载frida-server
建议使用镜像下载frida
镜像地址:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
1)命令行执行pip install frida -i https://pypi.tuna.tsinghua.edu.cn/simple
2)命令行执行pip install frida-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
3)查看版本frida --version
4)下载对应版本号的frida-server,并在手机上运行
电脑连接手机或者模拟器,执行以下命令获取cpu版本
adb shell
getprop ro.product.cpu.abi
下载自己所需要对应的frida版本号一致,cpu型号一致的server包,并解压到本地
模拟器或者手机需要root
进入该文件夹,将解压后的文件传到模拟器或者手机
adb push frida-server-16.0.8-android-x86_64 /data/local/tmp
执行以下命令,在手机上运行(手机或者模拟器必须root)
adb shell
su
cd /data/local/tmp&&ls
给frida-server文件复制权限
chmod 755 frida-server-16.0.8-android-x86_64
运行frida-server文件
./frida-server-16.0.8-android-x86_64
4. 下载安装camile,启动监测
另外打开个cmd窗口执行命令,启动frida-server的
git clone https://github.com/zhengjim/camille
cd camille
pip install -r requirements.txt
python camille.py -h
执行命令python camille.py com.taobao.taobao -t 3(黑体替换为需要监测的包名)
运行的包名可以使用命令行frida-ps -Ua查看包名
通过点击页面,可以看到使用的权限,以及调用的类