python -V
Python 3.7.0
运行.py文件报错
ModuleNotFoundError: No module named 'Crypto'
这个时候,你去安装crypto,还是pycrypto都是解决不了这个问题的,我找到了一个可行的办法:
安装pycryptodome: pip install pycryptodome
Collecting pycryptodome
Using cached pycryptodome-3.15.0-cp35-abi3-win_amd64.whl (1.9 MB)
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.15.0
//安装 frida12.8.0
pip install frida==12.8.0 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting frida==12.8.0
Downloading http://mirrors.aliyun.com/pypi/packages/38/1b/8a462787cedda36c57227ed0babbd80c4c4cc5bc9c1f9b5aa285ed6aebba/frida-12.8.0.tar.gz (6.9 kB)
Preparing metadata (setup.py) ... done
Installing collected packages: frida
DEPRECATION: frida is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for frida ... done
Successfully installed frida-12.8.0
//安装frida-tools5.3.0
pip install frida-tools==5.3.0
Collecting frida-tools==5.3.0
Downloading frida-tools-5.3.0.tar.gz (27 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: colorama<1.0.0,>=0.2.7 in d:\python37\lib\site-packages (from frida-tools==5.3.0) (0.4.5)
Requirement already satisfied: frida<13.0.0,>=12.7.3 in d:\python37\lib\site-packages (from frida-tools==5.3.0) (12.8.0)
Collecting prompt-toolkit<3.0.0,>=2.0.0
Downloading prompt_toolkit-2.0.10-py3-none-any.whl (340 kB)
---------------------------------------- 340.0/340.0 kB 251.4 kB/s eta 0:00:00
Collecting pygments<3.0.0,>=2.0.2
Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting wcwidth
Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting six>=1.9.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: wcwidth, six, pygments, prompt-toolkit, frida-tools
DEPRECATION: frida-tools is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for frida-tools ... done
Successfully installed frida-tools-5.3.0 prompt-toolkit-2.0.10 pygments-2.13.0 six-1.16.0 wcwidth-0.2.5
frida --version
12.8.0
node -v
v16.17.0
npm -v
8.15.0
cd C:\Users\Administrator\Desktop\github\frida-agent-example
npm install
> frida-agent-example@1.0.0 prepare
> npm run build
> frida-agent-example@1.0.0 build
> frida-compile agent/index.ts -o _agent.js -c
changed 5 packages, and audited 57 packages in 2m
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
frida-agent-example
https://github.com/oleavr/frida-agent-example