以下操作是已安裝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-arm
真機安裝
C:\Users\gqv20>adb push C:\Users\gqv20\Desktop\frida-server-12.9.8-android-arm /data/local/tmp/
指定模擬器 安裝
frida-server-12.9.8-android-x86
adb -s emulator-5554 push C:\Users\gqv20\Desktop\frida-server-12.9.8-android-x86 /data/local/tmp
三、啟動frida-server
1.查看有幾個服務
C:\Users\gqv20>adb devices
List of devices attached
ZX1G222CLR device
2.給root權限
C:\Users\gqv20>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