frida 配置

1,793 阅读1分钟

[TOC]

frida 配置

frida安装命令:

  • pip install --default-timeout=100000 frida

frida-tools安装命令:

  • pip install --default-timeout=100000 frida-tools

adb配置

添加系统环境变量

frida-server配置

查看frida-server下载对应版本

adb shell getprop ro.product.cpu.abi

查到我手机内核是arm64,下载frida-server的时候内核版本要对应,如果是x86就要下载x86的版本

下载frida-server

frida-server传到虚拟机,然后设置权限并启动

adb devices												 # 查看当前运行的Android设备,以及设备IP
adb connect 192.168.1.xxx
adb push .\frida-server-12.8.10-android-x86 /data/local/tmp		  # 把下载的frida-server传到Android
adb shell												  # 远程连接到Android后台
su 
cd /data/local/tmp
chmod 777 frida-server-12.8.10-android-x86					 # 设置frida-server权限 
./frida-server-12.8.10-android-x86 &						 # 后台启动frida-server

转发android TCP端口到本地

转发android TCP端口到本地,PC打开cmd命令行输入
adb devices
adb connect 192.168.1.xxx
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043

现在在命令行输入frida-ps -R,就可以看到android机器的进程列表了,至此,运行环境就搭建好了。

安装后运行frida --version 查看版本