frida安装

这是手机部分的安装
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进行端口转发
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)在系统目录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

你可能感兴趣的:(frida安装)