开源
cotopaxi:物联网设备安全测试的工具
来源:元经纪     阅读:1267
网站管理员
发布于 2023-04-01 08:01
查看主页

概述

使用特定网络物联网协议对物联网设备进行安全测试的一套工具。

安装

要安装最小的 Cotopaxi 版本(没有机器学习和开发工具):

pip install cotopaxi

几乎完成安装(没有 DTLS 支持所需的 scapy-ssl_tls):

pip install cotopaxi[all]

[hidecontent type="logged" desc="隐藏内容:登录后可查看"]

安装指南

使用 pip 安装:

要安装最小的 Cotopaxi 版本(没有机器学习和开发工具):

pip install cotopaxi

最小版本 + 机器学习库(numpy、pandas、sklearn、xgboost):

pip install cotopaxi[ml]

最小版本+开发工具:

pip install cotopaxi[dev]

几乎完成安装(没有 scapy-ssl_tls):

pip install cotopaxi[all]

从源安装:

  1. 从 git 克隆代码:
git clone https://github.com/Samsung/cotopaxi 
  1. 进入cotopaxi目录
cd cotopaxi 
  1. 运行安装程序:
python setup.py install

选修的:

  1. 安装附加功能

(ml - 机器学习工具,dev - 开发工具,all - 以上所有)

pip install -e .[ml]
  1. 安装 scapy-ssl_tls(如果 scapy 和 scapy-ssl_tls 有任何问题,请参阅下面的部分)

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 上不起作用)。

安装所需的库:

scapy-ssl_tls

对于 Python 2.7:

(这也会在 2.4.2 中安装 scapy)

    pip install git+https://github.com/tintinweb/scapy-ssl_tls@ec5714d560c63ea2e0cce713cec54edc2bfa0833

常见问题:

  • 如果您遇到 error: error: [Errno 2] No such file or directory: 'LICENSE',请尝试重复命令 - 令人惊讶的是它有效。
  • 如果遇到错误:NameError: name 'os' is not defined- 将 missing 添加import osscapy/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 集成

如果您想使用 Metasploit 的 Cotopaxi 工具,请参阅:Metasploit 集成

[/hidecontent]

 
免责声明:本文为用户发表,不代表网站立场,仅供参考,不构成引导等用途。 开源
上海首个WEB3.0行业报告发布
把俩孩子塞进后备箱上高速 交警批评家长不以为意:一个劲儿嗑瓜子
人民日报头版聚焦视涯科技 | 找准产业方向 聚焦创新发展
福建省两项研究成果入选2023年度中国科学十大进展
小米新一代影像旗舰——小米14ultra带您领略极致体验

首页

分类

定制方案

消息

我的