這是手機部分的安裝
1.下載adb,并解壓安裝
2.進入adb目錄查看手機cpu版本
cmd命令行輸入: adb shell getprop ro.product.cpu.abi
顯示 arm64-v8a
3.打開https://github.com/frida/frida/releases 安裝對應cpu的軟件
我這次安裝的是 frida-server-15.1.14-android-arm64.xz
4將下載下來的frida-server解壓到adb的目錄下,并重命名為frida-server64
5cmd命令行輸入: adb push frida-server64 /data/local/tmp(這行命令是將frida-server放入手機的/data/local/tmp)
6運行frida-server
adb shell
su
cd /data/local/tmp
ls -all
chmod 777 frida-server64
./frida-server64
7進行端口轉發(fā)
adb forward tcp:27043 tcp:27043
adb forward tcp:27042 tcp:27042
8查看是否安裝成功
frida-ps -U
9查看對應的app是否能成功使用frida(排查錯誤用)
frida -U -f com.xxx.app --no-pause
電腦部分的安裝
pip install frida-tools
報錯
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)': /simple/frida-tools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)': /simple/frida-tools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)': /simple/frida-tools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)': /simple/frida-tools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)': /simple/frida-tools/
Could not fetch URL https://pypi.org/simple/frida-tools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/frida-tools/ (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)) - skipping
ERROR: Could not find a version that satisfies the requirement frida-tools
ERROR: No matching distribution found for frida-tools
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:833)'),)) - skipping
明顯是證書錯誤
解決方法
(1)在系統(tǒng)目錄C:\Users\用戶\AppData\Roaming新建pip文件夾;
(2)在pip文件夾下新建pip.ini文件,并寫入如下配置:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
如何解決手機和電腦端版本不一致
我第一次安裝的是官方版本的frida,第二次為了過檢測安裝了葫蘆娃的frida,造成手機端的frida和電腦端frida不一致
先卸載電腦端frida:pip uninstall frida frida_tools objection
手機端的frida 版本號為 14.2.17
pip frida==14.2.17 frida_tools==9.2.0 objection==1.9.4