scapy
网络与基础设施安全与隐私工具自动化与工作流
networknetwork-analysisnetwork-discoverynetwork-securitynetwork-visualizationpacket-analyser
12,685
Stars
2,289
Forks
219
Watchers
127
Open Issues
GPL-2.0
许可证
Python
语言
2015-10-01
创建时间
2026-11-11
最近更新
项目能做什么
基于 Python 的交互式网络数据包处理程序与开发库 Scapy。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<!-- start_ppi_description --> # <img src="https://github.com/secdev/scapy/raw/master/doc/scapy/graphics/scapy_logo.png" width="64" valign="middle" alt="Scapy" /> Scapy [](https://github.com/secdev/scapy/actions/workflows/unittests.yml?query=event%3Apush) <!-- ignore_ppi --> [](https://codecov.io/gh/secdev/scapy) <!-- ignore_ppi --> [](https://app.codacy.com/gh/secdev/scapy/dashboard) <!-- ignore_ppi --> [](https://pypi.python.org/pypi/scapy/) [](LICENSE) [](https://gitter.im/secdev/scapy) <!-- ignore_ppi --> Scapy is a powerful Python-based interactive packet manipulation program and library. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, store or read them using pcap files, match requests and replies, and much more. It is designed to allow fast packet prototyping by using default values that work. It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace `hping`, 85% of `nmap`, `arpspoof`, `arp-sk`, `arping`, `tcpdump`, `wireshark`, `p0f`, etc.). It also performs very well at a lot of other specific tasks that most other tools can't handle, like sending invalid frames, injecting your own 802.11 frames, combining techniques (VLAN hopping+ARP cache poisoning, VoIP decoding on WEP protected channel, ...), etc. Scapy supports Python 3.9+. It's intended to be cross platform, and runs on many different platforms (Linux, OSX, \*BSD, and Windows). ## Getting started Scapy is usable either as a **shell** or as a **library**. For further details, please head over to [Getting started with Scapy](https://scapy.readthedocs.io/en/latest/introduction.html), which is part of the documentation. ### Shell demo  Scapy can easily be used as an interactive shell to interact with the network. The following example shows how to send an ICMP Echo Request message to `github.com`, then display the reply source IP address: ```python sudo ./run_scapy Welcome to Scapy >>> p = IP(dst="github.com")/ICMP() >>> r = sr1(p) Begin emission: .Finished to send 1 packets. * Received 2 packets, got 1 answers, remaining 0 packets >>> r[IP].src '192.30.253.113' ``` ### Resources The [documentation](https://scapy.readthedocs.io/en/latest/) contains more advanced use cases, and examples. Other useful resources: - [Scapy in 20 minute阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 65.4 分。该项目在“个人可实施性”维度得 60 分,“付费可能性”维度得 35.0 分,差异化空间 100.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 scapy 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
封装为在线小工具或 API 服务
| 产品构想 | 把项目最常用的一个功能做成网页小工具,靠流量变现或按量计费。 |
| 目标用户 | 搜索引擎带来的长尾用户 |
| 难度/周期 | 低 · 1~3 周 |
| 收费模式 | 免费引流 + 增值功能 / API 按量计费 |
| 竞争风险 | 同质化竞争,需做好 SEO |
| 依据 | AI 推测:基于技术栈与部署特征的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| awesome-selfhosted/awesome-selfhosted | 中文介绍暂未生成 A list of Free Software network services and web application |
335,863 | - |
| sherlock-project/sherlock | 中文介绍暂未生成 Hunt down social media accounts by username across social ne |
109,167 | Python |
| pytorch/pytorch | 中文介绍暂未生成 Tensors and Dynamic neural networks in Python with strong GP |
105,334 | Python |
| bregman-arie/devops-exercises | 中文介绍暂未生成 Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansibl |
86,713 | Python |
| ansible/ansible | 中文介绍暂未生成 Ansible is a radically simple IT automation platform that ma |
71,338 | Python |
| v2ray/v2ray-core | 中文介绍暂未生成 A platform for building proxies to bypass network restrictio |
46,906 | Go |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2015-10-01,近 30 天仍在推送,发布过 17 个 Release |
| 社区活跃 | Star 12,685 / Fork 2,289 / Issue 127(数据支持,可自行核实) |
| 许可证 | GPL-2.0 商用需注意传染性条款 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/secdev/scapy.git cd scapy # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。