#1
Macmini:f4TestDemo xin$ pip install frida-tools
Collecting frida-tools
Using cached https://files.pythonhosted.org/packages/32/34/f6ce58434dd01996f55aae1b74a9d2ff8dc8ed93e655916e19707cd627c1/frida-tools-1.2.1.tar.gz
Requirement already satisfied: colorama<1.0.0,>=0.2.7 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from frida-tools) (0.3.9)
Collecting frida<13.0.0,>=12.1.0 (from frida-tools)
Using cached https://files.pythonhosted.org/packages/71/4a/7cb3c8b1a23b950a893e7a67604f3078e606e6b150aba050767a14be868f/frida-12.1.0.tar.gz
Collecting prompt-toolkit<2.0.0,>=0.57 (from frida-tools)
Using cached https://files.pythonhosted.org/packages/d1/b0/1a6c262da35c779dd79550137aa7c298a424987240a28792ec5ccf48f848/prompt_toolkit-1.0.15-py2-none-any.whl
Collecting pygments<3.0.0,>=2.0.2 (from frida-tools)
Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=0.57->frida-tools)
Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting six>=1.9.0 (from prompt-toolkit<2.0.0,>=0.57->frida-tools)
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: frida, wcwidth, six, prompt-toolkit, pygments, frida-tools
Running setup.py install for frida ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/hn/q151l5b11pg69b7pmt79ttt40000gp/T/pip-install-PH54qp/frida/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/hn/q151l5b11pg69b7pmt79ttt40000gp/T/pip-record-zMYZgT/install-record.txt --single-version-externally-managed --compile:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-2.7
creating build/lib.macosx-10.9-x86_64-2.7/frida
copying frida/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/frida
copying frida/core.py -> build/lib.macosx-10.9-x86_64-2.7/frida
running build_ext
querying pypi for available prebuilds
network query failed
looking for prebuilt extension in home directory, i.e. /Users/xin/frida-12.1.0-py2.7-macosx-10.11-intel.egg
no prebuilt extension found in home directory
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/hn/q151l5b11pg69b7pmt79ttt40000gp/T/pip-install-PH54qp/frida/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/hn/q151l5b11pg69b7pmt79ttt40000gp/T/pip-record-zMYZgT/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hn/q151l5b11pg69b7pmt79ttt40000gp/T/pip-install-PH54qp/frida/
* 解决
cd “/Applications/Python 2.7/”
sudo “./Install Certificates.command”
* 参考: https://github.com/sensepost/objection/issues/38
#2
Macmini:frida-ios-dump xin$ pip install -r requirements.txt --upgrade
Downloading https:
100% |████████████████████████████████| 51kB 129kB/s
Requirement already up-to-date: wcwidth in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from -r requirements.txt (line 19)) (0.1.7)
frida-tools 1.2.1 has requirement prompt-toolkit<2.0.0,>=0.57, but you'll have prompt-toolkit 2.0.4 which is incompatible.
* 解决:
pip install -e git+https://github.com/jonathanslenders/python-prompt-toolkit@0.57#egg=prompt_toolkit
* 参考: https://github.com/jonathanslenders/python-prompt-toolkit/issues/589