1、問題1
Running setup.py install for frida ... error
error: subprocess-exited-with-error
× Running setup.py install for frida did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.10
creating build/lib.macosx-10.9-universal2-3.10/frida
copying frida/__init__.py -> build/lib.macosx-10.9-universal2-3.10/frida
copying frida/core.py -> build/lib.macosx-10.9-universal2-3.10/frida
running build_ext
looking for prebuilt extension in home directory, i.e. /Users/mark.wu/frida-15.1.17-py3.10-macosx-10.9-x86_64.egg
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
using default index URL: https://pypi.org/simple/
downloading package list from https://pypi.org/simple/frida/
unable to download it within 20 seconds; please download it manually to /Users/mark.wu/frida-15.1.17-py3.10-macosx-10.9-x86_64.egg
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
有一個(gè)SSL 錯(cuò)誤這個(gè)是證書問題
sudo /Applications/Python\ 3.9/Install\ Certificates.command
以上填你對用的python 版本
2、
去官網(wǎng)下載庫,安裝
https://pypi.org/simple/frida/
easy_install frida-15.1.16-py3.10-win32.egg
3、版本問題,比如我的環(huán)境是python3.9但是frida只有3.8和3.10版本時(shí),就下載3.10的,然后:
easy_install frida-15.1.16-py3.10-win32.egg
4、報(bào)No module named easy_install時(shí):
①查看有沒有安裝setuptools;
②setuptools版本>51.3.3時(shí),就沒有帶easy_install,按如下方式解決
pip uninstall setuptools
pip install -v setuptools==51.3.3
5、安裝之后frida --version使用不了的
刷新一下環(huán)境變量 或者重啟一下電腦
source ~/.bash_profile 回車
6、Failed to load script: timeout was reached
解決方法:進(jìn)入adb shell ,關(guān)閉selinux
setenforce 0
確認(rèn)是否設(shè)置成功
getenforce
**關(guān)閉selinux之后再次運(yùn)行,即可成功執(zhí)行 **