要安装最小的 Cotopaxi 版本(没有机器学习和开发工具):
pip install cotopaxi
几乎完成安装(没有 DTLS 支持所需的 scapy-ssl_tls):
pip install cotopaxi[all]
[hidecontent type="logged" desc="隐藏内容:登录后可查看"]
要安装最小的 Cotopaxi 版本(没有机器学习和开发工具):
pip install cotopaxi
最小版本 + 机器学习库(numpy、pandas、sklearn、xgboost):
pip install cotopaxi[ml]
最小版本+开发工具:
pip install cotopaxi[dev]
几乎完成安装(没有 scapy-ssl_tls):
pip install cotopaxi[all]
git clone https://github.com/Samsung/cotopaxi
cd cotopaxi
python setup.py install
选修的:
(ml - 机器学习工具,dev - 开发工具,all - 以上所有)
pip install -e .[ml]
scapy-ssl_tls 的安装是可选的——只有当你想使用 DTLS 协议测试端点时才需要。
对于 Python 2.7:
(这也会在 2.4.2 中安装 scapy)
pip install git+https://github.com/tintinweb/scapy-ssl_tls@ec5714d560c63ea2e0cce713cec54edc2bfa0833
对于 Python 3.6-3.8:
git clone https://github.com/kalidasya/scapy-ssl_tls.git
cd scapy-ssl_tls
git checkout py3_update
python3 setup.py install
目前,Cotopaxi 适用于 Python 2.7.* 和 Python 3.6-3.8(某些依赖项如 tensorflow 在 3.9 上不起作用)。
安装所需的库:
对于 Python 2.7:
(这也会在 2.4.2 中安装 scapy)
pip install git+https://github.com/tintinweb/scapy-ssl_tls@ec5714d560c63ea2e0cce713cec54edc2bfa0833
常见问题:
error: [Errno 2] No such file or directory: 'LICENSE'
,请尝试重复命令 - 令人惊讶的是它有效。NameError: name 'os' is not defined
- 将 missing 添加import os
到scapy/layers/ssl_tls.py
.对于 Python 2.7:
sudo python2.7 -m pip install -r requirements_python2.txt
对于 Python 3.6-3.8:
(用于安装 device_identification 和 traffic_analyzer 所需的最小库集,不包括大型机器学习库(pandas、sklearn、tensorflow、xgboost))
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install -r requirements_minimal.txt
(用于安装 device_identification 和 traffic_analyzer 所需的全套库,包括大型机器学习库(pandas、sklearn、tensorflow、xgboost))
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install -r requirements.txt
可以使用 requirements_devel.txt 文件安装 Cotopaxi 开发所需的所有包(包括单元测试库):
pip install -r cotopaxi/requirements_devel.txt
pre-commit install
有关安装的更多详细文档,请参阅:安装指南
如果您想使用 Metasploit 的 Cotopaxi 工具,请参阅:Metasploit 集成
[/hidecontent]