美文网首页
隐私合规检测工具Camille使用

隐私合规检测工具Camille使用

作者: Edward_yfbx | 来源:发表于2023-01-13 09:22 被阅读0次

前置条件

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

一、环境配置

  1. 安装 frida
pip install frida-tools
pip install frida
  1. 安装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
  1. 安装 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
  1. 进入camille目录,运行camille工具
//简单使用
python3 camille.py <package name>

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

注意

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

相关文章

网友评论

      本文标题:隐私合规检测工具Camille使用

      本文链接:https://www.haomeiwen.com/subject/qgoicdtx.html