隐私合规检测工具camille使用

Posted by Edward on August 29, 2022

前置条件

  1. 需要root手机(替代方案,使用模拟器)
  2. 需要安装python

一、环境配置

  1. 安装 frida
    pip install frida-tools
    pip install frida
    
  2. 安装frida-server 根据frida和手机cpu版本,下载对应的frida-server ``` //查看 frida 版本 frida –version

//查看手机CPU架构 adb shell getprop ro.product.cpu.abi

//将frida-server push到手机 adb push ./frida-server /data/local/tmp/

//切换root用户,更改frida-server权限 adb shell su cd /data/local/tmp/ chmod 777 frida-server


3. 安装 [`Camille`](https://github.com/zhengjim/camille)

git clone https://github.com/zhengjim/camille.git cd camille pip install -r requirements.txt //检查是否安装成功 python camille.py -h


## 二、使用步骤

1. 手机端以`root`身份开启`frida-server`

adb shell su cd /data/local/tmp/ ./frida-server

2. 进入camille目录,运行camille工具

//简单使用 python3 camille.py

//将APP行为轨迹保存到EXCEL python3 camille.py -ns -f demo.xls ```

注意

  1. camille工具需要进入camille目录运行,里面的scritp.js脚本是相对路径引用
  2. 如果报找不到文件scritp.js,尝试给一下权限sudo chmod +x ./script.js
  3. 手机端开启frida-server需要root权限