以下操作是已安装python3环境为前提
一、安装Frida
frida-server 下载地址:https://github.com/frida/frida/releases
安装在windows 下载地址https://pypi.org/project/frida/12.9.8/#files
windows 安装版本 pip3 install frida==12.9.8 -i https://pypi.tuna.tsinghua.edu.cn/simple/
下载安装frida server 版本和类型对应,框架和设备对应
pip3 install frida-tools
# 或使用国内源
pip3 install frida-tools -i https://pypi.tuna.tsinghua.edu.cn/simple/
二、在已root的手机上安装frida-server
安装时与电脑版本对应
frida-server-12.9.8-android-x86
真机安装
C:Usersgqv20>adb push C:Usersgqv20Desktopfrida-server-12.9.8-android-arm /data/local/tmp/
2135 KB/s (17678608 bytes in 8.083s)
指定模拟器 安装
adb -s emulator-5554 push C:Usersgqv20Desktopfrida-server-12.9.8-android-x86 /data/local/tmp
三、启动frida-server
1.查看有几个服务
C:Usersgqv20>adb devices
List of devices attached
ZX1G222CLR device
2.给root权限
C:Usersgqv20>adb shell
shell@shamu:/ $ su
su
3.进入到tmp目录下
root@shamu:/ # cd /data/local/tmp/
cd /data/local/tmp/
4.给执行权限
root@shamu:/data/local/tmp # chmod 777 /data/local/tmp/frida-server-12.9.8-android-arm
chmod 777 /data/local/tmp/frida-server-12.9.8-android-arm
5.查看ls
root@shamu:/data/local/tmp # ls
ls
busybox
frida-server-12.9.8-android-arm
frida-server-12.9.8-android-arm
frida-server-12.9.8-android-x86
krperm.txt
minicap
minicap.so
re.frida.server
6.正式启动frida-server
root@shamu:/data/local/tmp # ./frida-server-12.9.8-android-arm
./frida-server-12.9.8-android-arm
四、端口转发
新开一个cmd: 转发android tcp端口到本地
adb forward tcp:27042 tcp:27042