1.安装python
下载地址:Download Python | Python.org
具体安装流程可自行百度
![](https://img-blog.csdnimg.cn/img_convert/6df3bc3f81a55ba6fea06f535d5adc27.webp?x-oss-process=image/format,png)
查看python是否安装成功,执行python命令
![](https://img-blog.csdnimg.cn/img_convert/7b8c08949bcf99f82f09394c9955c786.webp?x-oss-process=image/format,png)
2.安装pip
下载地址:pip · PyPI
![](https://img-blog.csdnimg.cn/img_convert/eb0c6d08a966496267b986d3a63fa55c.webp?x-oss-process=image/format,png)
压缩文件解压到某个目录,进入解压目录,执行python setup.py install
![](https://img-blog.csdnimg.cn/img_convert/0466b510866f529b8293fb9cd4be1a31.webp?x-oss-process=image/format,png)
执行pip命令看pip是否安装成功
![](https://img-blog.csdnimg.cn/img_convert/3564386a9a459a405739d3333e310e5a.webp?x-oss-process=image/format,png)
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
![](https://img-blog.csdnimg.cn/img_convert/ead62086e8c56e435913bfe9a2b8a1d0.webp?x-oss-process=image/format,png)
3)查看版本 frida --version
![](https://img-blog.csdnimg.cn/img_convert/0193d1c0a11b5bd761859c4bce10e0c5.webp?x-oss-process=image/format,png)
4)下载对应版本号的 frida-server,并在手机上运行
电脑连接手机或者模拟器,执行以下命令获取cpu版本
adb shell
getprop ro.product.cpu.abi
![](https://img-blog.csdnimg.cn/img_convert/ef96578dc6fcd7d4dd8ce1e3ceecb562.webp?x-oss-process=image/format,png)
下载地址:Releases · frida/frida (github.com)下载自己所需要对应的frida版本号一致,cpu型号一致的server包,并解压到本地
![](https://img-blog.csdnimg.cn/img_convert/468cf79ea3645cb663a78162e32b3ca3.webp?x-oss-process=image/format,png)
![](https://img-blog.csdnimg.cn/img_convert/dd749c4c0072ebb3d297863daf43bd10.webp?x-oss-process=image/format,png)
模拟器或者手机需要root
进入该文件夹,将解压后的文件传到模拟器或者手机
adb push frida-server-16.0.8-android-x86_64 /data/local/tmp
![](https://img-blog.csdnimg.cn/img_convert/547ceb7ea270a7efd6f6cca810a5b841.webp?x-oss-process=image/format,png)
执行以下命令,在手机上运行(手机或者模拟器必须root)
adb shell
su
cd /data/local/tmp&&ls
![](https://img-blog.csdnimg.cn/img_convert/a81aa24b8d4842c50cd90e71246b6695.webp?x-oss-process=image/format,png)
给frida-server文件复制权限
chmod 755 frida-server-16.0.8-android-x86_64
运行frida-server文件
./frida-server-16.0.8-android-x86_64
![](https://img-blog.csdnimg.cn/img_convert/93fe8a37e1c4dd3e4cd21e64987d26ab.webp?x-oss-process=image/format,png)
4. 下载安装camile,启动监测
另外打开个cmd窗口执行命令,启动frida-server的(github下载可能需要科学上网)
git clone https://github.com/zhengjim/camille
cd camille
pip install -r requirements.txt
python camille.py -h
![](https://img-blog.csdnimg.cn/img_convert/7c2197dfb9fd8961735b6f2846ad5298.webp?x-oss-process=image/format,png)
执行命令python camille.py com.taobao.taobao -t 3(黑体替换为需要监测的包名)
![](https://img-blog.csdnimg.cn/img_convert/e9914b2034dc9c9f5810d5458ec22ada.webp?x-oss-process=image/format,png)
运行的包名可以使用命令行frida-ps -Ua查看包名
![](https://img-blog.csdnimg.cn/img_convert/69d9e2d050fc981d6bacefdce164fb15.webp?x-oss-process=image/format,png)
通过点击页面,可以看到使用的权限,以及调用的类
![](https://img-blog.csdnimg.cn/img_convert/cc306f29714e43da270926a9a6d46ee4.webp?x-oss-process=image/format,png)