APP隐私合规检测工具Camille环境搭建

环境准备

一台已root手机、python、frida 、Camille

一、小米手机root

https://xiaomirom.com/
注意:首先在网站下载一个开发版的线刷包,然后解锁—刷机,在手机设置中开启root权限

二、手机上运行frida-server

1.下载frida-server-15.1.24-android-arm64.xz
https://github.com/frida/frida/releases
2.解压文件
3.传入手机

adb push frida-server-15.1.24-android-arm64  /data/local/tmp/

4.启动frida-server

adb shell
su 获取root权限
cd /data/local/tmp/
ls -all 参看权限
chmod 777 frida-server-15.1.24-android-arm64
./frida-server-15.1.24-android-arm64 启动服务
三、python3安装
四、frida、frida-tools安装
pip3 install frida-tools
pip3 install frida
五、运行Camille
git clone https://github.com/zhengjim/camille.git
cd camille
pip install -r requirements.txt
python camille.py -h

命令

  • -ns:不显示日志。默认显示
  • -f: 保存app行为轨迹到到execl里。默认不保存
  • -t: hook应用自己的函数或含壳时,建议使用setTimeout并给出适当的延时(1-5s,需要根据不同app进行调整)。以免hook失败。默认不延迟
  • -u: 扫描指定模块。与命令-nu互斥。多个模块用’,'隔开。例如:phone,permission
  • -nu:跳过扫描指定模块。与命令-u互斥。多个模块用’,'隔开。例如:phone,permission
模块名备注
permission申请权限
phone电话、基站
system系统信息(AndroidId/标识/content敏感信息)
app其他app信息
location位置信息
networkgetNetwork
camera照相机
bluetooth蓝牙

1.使用

python camille.py 应用包名
python camille.py 应用包名  -f demo01.xls
python camille.py 应用包名 -t 3

使用命令
netstat -tunlp
查看端口,根据这个显示出来的PID,杀死Frida进程

frida卸载
先卸载frida和frida-tools
pip3 uninstall frida 或者 pip uninstall frida
pip3 uninstall frida-tools 或者 pip uninstall frida-tools

然后安装frida-tools
pip3 install frida-tools==9.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
此时的frida为14.2.18版本

再安装对应的适配版本 14.2.11
pip3 install frida==14.2.11 -i https://pypi.tuna.tsinghua.edu.cn/simple
然后看frida --version是否成功安装

参考资料
https://www.bilibili.com/read/cv15909164
http://t.zoukankan.com/Cqlismy-p-11779295.html
https://github.com/zhengjim/camille
https://www.jianshu.com/p/c349471bdef7
https://blog.csdn.net/qq_42229759/article/details/121996475

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
当在PyCharm控制台输入`adb`命令时,出现`'adb' 不是内部或外部命令,也不是可运行的程序 或批处理文件`的错误提示,这通常是由于以下几个原因引起的。 首先,确保你已经安装了Android Studio,并且已经将Android SDK的路径配置到系统环境变量的`PATH`中。你可以在终端中输入`adb`命令来验证是否已经正确配置了Android SDK路径。如果在终端中输入`adb`命令没有问题,但在PyCharm中输入`adb`命令出现错误,那可能是由于PyCharm没有正确识别到系统环境变量。在这种情况下,您可以尝试重新启动PyCharm来解决问题。 另外,还有一种可能是你没有在PyCharm中安装必要的插件。你可以尝试在PyCharm中安装插件`PyInstaller`。打开PyCharm后,找到"Settings"或"Preferences"选项,在搜索栏中输入"Plugins",然后点击"Browse repositories"按钮。在弹出的窗口中,搜索并安装"PyInstaller"插件。 如果上述方法仍然无法解决问题,你可以尝试在PyCharm中使用终端来运行`adb`命令。在PyCharm中打开终端(快捷键为Alt+F12),然后输入`adb`命令,查看是否能够正常运行。 总结起来,解决`'adb' 不是内部或外部命令,也不是可运行的程序 或批处理文件`的问题,可以尝试以下步骤: 1. 确保已经正确配置了Android SDK的路径到系统环境变量中。 2. 尝试重新启动PyCharm来使其重新识别环境变量。 3. 在PyCharm中安装插件`PyInstaller`。 4. 在PyCharm中使用终端来运行`adb`命令。 希望这些方法能够帮助你解决问题。如果仍然有疑问,请随时提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [pycharm控制台输入命令提示不是内部或外部命令,也不是可运行的程序,在cmd中可以正常使用](https://blog.csdn.net/Camille_fh/article/details/115199471)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Pycharm生成可执行文件.exe的实现方法](https://download.csdn.net/download/weixin_38519387/13711183)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [但是pycharm运行提示adb‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。](https://blog.csdn.net/weixin_42684559/article/details/119563068)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值