登录 注册
网络与基础设施开发者工具安全与隐私工具
26,139
Stars
3,248
Forks
636
Watchers
414
Open Issues
AGPL-3.0
许可证
C
语言
2013-07-28
创建时间
2026-10-05
最近更新

项目能做什么

异步发送 SYN 数据包的高速 TCP 端口扫描器,可在 5 分钟内扫遍全网。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[![unittests](https://github.com/robertdavidgraham/masscan/actions/workflows/unittests.yml/badge.svg?branch=master)](https://github.com/robertdavidgraham/masscan/actions/workflows/unittests.yml/?branch=master)

# MASSCAN: Mass IP port scanner

This is an Internet-scale port scanner. It can scan the entire Internet
in under 5 minutes, transmitting 10 million packets per second,
from a single machine.

Its usage (parameters, output) is similar to `nmap`, the most famous port scanner.
When in doubt, try one of those features -- features that support widespread
scanning of many machines are supported, while in-depth scanning of single
machines aren't.

Internally, it uses asynchronous transmission, similar to port scanners
like  `scanrand`, `unicornscan`, and `ZMap`. It's more flexible, allowing
arbitrary port and address ranges.

NOTE: masscan uses its own **ad hoc TCP/IP stack**. Anything other than
simple port scans may cause conflict with the local TCP/IP stack. This means you 
need to use either the `--src-ip` option to run from a different IP address, or
use `--src-port` to configure which source ports masscan uses, then also
configure the internal firewall (like `pf` or `iptables`) to firewall those ports
from the rest of the operating system.

This tool is free, but consider contributing money to its development:
Bitcoin wallet address: 1MASSCANaHUiyTtR3bJ2sLGuMw5kDBaj4T


# Building

On Debian/Ubuntu, it goes something like the following. It doesn't
really have any dependencies other than a C compiler (such as `gcc`
or `clang`).

	sudo apt-get --assume-yes install git make gcc
	git clone https://github.com/robertdavidgraham/masscan
	cd masscan
	make

This puts the program in the `masscan/bin` subdirectory. 
To install it (on Linux) run:

    make install

The source consists of a lot of small files, so building goes a lot faster
by using the multi-threaded build. This requires more than 2gigs on a 
Raspberry Pi (and breaks), so you might use a smaller number, like `-j4` rather than
all possible threads.

	make -j

While Linux is the primary target platform, the code runs well on many other
systems (Windows, macOS, etc.). Here's some additional build info:

  * Windows w/ Visual Studio: use the VS10 project
  * Windows w/ MinGW: just type `make`
  * Windows w/ cygwin: won't work
  * Mac OS X /w XCode: use the XCode4 project
  * Mac OS X /w cmdline: just type `make`
  * FreeBSD: type `gmake`
  * other: try just compiling all the files together, `cc src/*.c -o bin/masscan`

On macOS, the x86 binaries seem to work just as fast under ARM emulation.

# Usage

Usage is similar to `nmap`. To scan a network segment for some ports:

	# masscan -p80,8000-8100 10.0.0.0/8 2603:3001:2d00:da00::/112

This will:
* scan the `10.x.x.x` subnet, and `2603:3001:2d00:da00::x` subnets
* scans port 80 and the range 8000 to 8100, or 102 ports total, on both subnets
* print output to `<stdout>` that can be redirected to a file

To see the complete list of options, us
阅读完整原文

商业机会分析 AI 生成

轻量级外部攻击面监控(EASM)SaaS平台

产品构想以Masscan作为底层高速探针,结合上层协议指纹识别与漏洞关联,为中小企业提供定期的公网暴露面与影子资产巡检告警服务。
核心功能公网资产范围配置、定时异步高速端口轮询、服务与协议简易识别、新增端口/敏感服务变动即时告警、资产暴露安全简报。
目标用户中小型企业IT负责人、Web3项目方、出海业务团队、安全服务提供商(MSSP)。
难度/周期中等 · 1-2个月 · 成本:极低(主要是多区域探测节点服务器及带宽成本,需配置反向DNS防投诉)。
收费模式SaaS订阅制(根据监控的公网IP段数量或资产节点数按月/年付费)。
竞争风险扫描行为可能触发目标或云厂商的Abuse(滥用)投诉导致服务器被封;未授权扫描有潜在法律合规风险;高发包率可能导致目标网络波动。
依据 已验证事实

分布式网络探测与资产发现基础设施 API

产品构想构建全球分布式的扫描探针网络,对外提供高并发、免维护基础网络探测API,免除开发者自建基础设施和处理IDC滥用投诉的麻烦。
核心功能RESTful API接入、分布式任务调度、防封禁发包速率自适应控制、结果聚合与JSON/Webhook输出、IP白名单与归属权验证系统。
目标用户安全工具开发者、漏洞赏金猎人(Bug Hunter)、威胁情报初创团队。
难度/周期高 · 2-3个月 · 成本:中等(需维护多地域VPS节点、IP池及合规通信成本)。
收费模式按使用量计费(按扫描IP次数或任务配额购买点数/月套餐)。
竞争风险下游客户滥用用于恶意攻击造成的连带法律责任;IDC服务商封禁风险。
依据 数据支持的判断

规避AGPL风险的商业化代理与私有化扫描管理节点

产品构想基于独立进程/微服务架构封装Masscan核心能力,提供解耦的控制端与商业专有协议层,使B端客户能在符合开源合规的前提下将其集成进商业扫描产品。
核心功能gRPC/REST控制隔离层、扫描速率调控界面、网卡驱动(PF_RING/DPDK)免驱优化配置文档、扫描结果结构化入库(Elasticsearch/PostgreSQL)。
目标用户网络安全硬件厂商、态势感知系统集成商、安全咨询机构。
难度/周期中等 · 3-4周 · 成本:极低(纯软件架构开发与文档编写)。
收费模式私有化软件授权费、企业技术支持与定制集成服务费。
竞争风险AGPL-3.0传染性边界判定较复杂,需严格通过网络隔离或RPC通信防范合规风险(AI推测原作者持有原代码版权,不可直接倒卖原代码的闭源许可)。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
pry0cc/axiom 中文介绍暂未生成
The dynamic infrastructure framework for everybody! Distribu
4,441 Shell
ivre/ivre 中文介绍暂未生成
Network recon framework. Build your own, self-hosted and ful
4,202 Python
hellogoldsnakeman/masnmapscan-V1.0 中文介绍暂未生成
一款用于资产探测的端口扫描工具。整合了masscan和nmap两款扫描器,masscan扫描端口,nmap扫描端口对应服
840 Python
zongdeiqianxing/Autoscanner 中文介绍暂未生成
输入域名>爆破子域名>扫描子域名端口>发现扫描web服务>集成报告的全流程全自动扫描器。集成oneforall、mass
809 Python
rackerlabs/scantron 中文介绍暂未生成
A distributed nmap / masscan scanning framework complete wit
757 Python
nullt3r/jfscan 中文介绍暂未生成
JF⚡can - Super fast port scanning & service discovery using
665 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2013-07-28,最近推送 2026-10-05,发布过 11 个 Release
社区活跃Star 26,139 / Fork 3,248 / Issue 414(数据支持,可自行核实)
许可证AGPL-3.0 商用需注意传染性条款
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/robertdavidgraham/masscan.git
cd masscan
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。