# Netzob 协议建模与推断框架

> 对通信协议建模并从流量记录推断报文布局，通过配置主动学习来推断协议状态机。Python API 提供报文字段、符号和自动机，用于解析、流量生成及模糊测试。

- 类型：工具
- 目标：协议
- 类别：协议分析工具
- 关联：基础工具
- 来源复核于：2026-10-17
- 收录于：2026-10-17
- 原始资源：<https://github.com/netzob/netzob>
- 一手来源：<https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/README.rst>
- 目录页面：<https://awesomerea.org/zh/resources/netzob/>
- 记录 JSON：<https://awesomerea.org/resources/netzob/record.json>
- 英文版：[English](https://awesomerea.org/resources/netzob/index.md)

## 使用条件与局限

- 上游 README 要求 Python 3.8+；核查的版本元数据列出 Linux x86/x64。源码构建需要原生编译工具、Python 头文件、libpcap／libffi 开发库，以及文档指定的 Graph::Easy 依赖。
- 核查时最新 PyPI 版本为 2.0.0，上传于 2023-01-08。所审阅源码头版本标为 2.0.1.dev0，不能视为更新的稳定版。其构建固定使用 Cython 0.29.32，并依赖 NumPy 1.24.1 等较旧版本。据 2026-10-20 核查，所审阅的 2023-01-08 提交仍是 master 分支最新提交，GitHub 最新发布版本同样是 2.0.0；GitHub 记录的最后一次推送为 2024-04-18，仓库未归档，README 未标注其仍在维护、已被取代或已归档。
- 需要有代表性的原始报文／PCAP 记录，以及分析者选择的模型或符号。主动语法学习需要输入／输出符号、通信通道和目标进程控制。当前协议推断文档明确尚未完成。
- 核查的源码声明 GPL-3.0-or-later，文档采用 CC-BY-SA。推断结果及生成模型需要分析者验证。

## 一手来源

1. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/README.rst>
2. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/setup.py>
3. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/pyproject.toml>
4. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/src/netzob/release.py>
5. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/COPYING.txt>
6. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/src/netzob/Inference/Grammar/ActiveGrammarInferer.py>
7. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/src/netzob/Inference/Grammar/all.py>
8. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/doc/documentation/source/tutorials/discover_features.rst>
9. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/doc/documentation/source/index.rst>
10. <https://netzob.github.io/netzob/installation/python.html>
11. <https://pypi.org/project/Netzob/2.0.0/>
12. <https://github.com/netzob/netzob/blob/088fe769e98e0bfbd3ed99e66b3982446bf8d197/src/netzob/Inference/Grammar/GenericMAT.py>

## 相关条目

依据相同的代码仓库或论文标识关联。

- [利用语义信息实现自动化协议逆向工程](https://awesomerea.org/zh/papers/paper-netzob/index.md) · 研究论文

## 同分区更多条目：协议

- [Scapy 报文分析与构造工具](https://awesomerea.org/zh/resources/scapy/index.md) · 工具
- [Universal Radio Hacker（URH）无线协议分析工具](https://awesomerea.org/zh/resources/universal-radio-hacker/index.md) · 工具
- [SavvyCAN CAN 总线分析工具](https://awesomerea.org/zh/resources/savvycan/index.md) · 工具
- [AALpy 自动机学习库](https://awesomerea.org/zh/resources/aalpy/index.md) · 工具
- [rtl_433 ISM 频段设备无线协议解码器](https://awesomerea.org/zh/resources/rtl-433/index.md) · 工具
- [Blackbox Protobuf 无定义 Protobuf 解码与重编码工具](https://awesomerea.org/zh/resources/blackbox-protobuf/index.md) · 工具

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
