Frida环境配置

安装Linux客户端

github地址:https://github.com/frida/frida

pip install frida-tools # CLI tools
pip install frida       # Python bindings
npm install frida       # Node.js bindings

查看安装版本

pip list|grep frida
frida                        14.2.18
frida-tools                  9.2.5

再次执行pip pip install frida 可显示安装路径

 /.local/lib/python3.9/site-packages$ ls
frida  frida-14.2.18.dist-info  _frida.cpython-39-x86_64-linux-gnu.so  frida_tools  frida_tools-9.2.5.dist-info

配置Android服务端

服务端下载地址https://github.com/frida/frida/releases

需要找到对应CPU型号的frida-server,安卓系统执行 adb shell getprop ro.product.cpu.abi 命令可查看cpu型号。

aria2c https://github.com/frida/frida/releases/download/14.2.18/frida-server-14.2.18-android-arm.xzc
unar frida-server-14.2.18-android-arm.xz
adb push frida-server-14.2.18-android-arm /data/local/tmp
adb shell su
cd /data/local/tmp
chmod 777 frida-server-14.2.18-android-arm

测试运行效果

#手机端
./frida-server-14.2.18-android-arm
#PC端
frida-ps -U
  PID  Name
-----  -----------------------------------------
  215  adbd
12681  android.process.acore
12156  app_d
  202  bridgemgrd
12555  com.android.cellbroadcastreceiver
11124  com.android.nfc
11111  com.android.phone
11696  com.android.providers.calendar
......

官方手册

https://frida.re/docs/android/

posted @ 2021-06-23 14:57  M4K0  阅读(286)  评论(0编辑  收藏  举报