Masscan

Internet-scale TCP port scanner capable of transmitting 10 million packets per second, scanning the entire IPv4 address space in under five minutes.

Developer

Robert David Graham

verified_user
Visit Official Site open_in_new

description Technical Dossier

Masscan is an Internet-scale port scanner that takes a fundamentally different architectural approach from tools like Nmap. Rather than managing a pool of synchronous connections, Masscan implements its own lightweight TCP/IP stack entirely in user-space and fires raw SYN packets asynchronously — never waiting for a response before sending the next probe. A separate receive thread collects replies independently. This decoupled send/receive design, combined with support for kernel-bypass drivers like PF_RING DNA, allows a single machine to sustain transmission rates of up to 10 million packets per second, sufficient to sweep all 3.7 billion routable IPv4 addresses on a single port in roughly five minutes.

Beyond raw SYN scanning, Masscan can complete the TCP three-way handshake and exchange application-layer data to retrieve service banners. It supports banner grabbing for a wide range of protocols including HTTP, HTTPS, SSH, FTP, SMTP, RDP, and VNC. Targets are randomised during scanning using an encryption-based shuffle that ensures even distribution across address space, which avoids hammering any single network segment. Distributed scanning across multiple machines is supported natively via a shards mechanism that divides the target space.

Masscan’s prominence in the security community stems from a specific niche: it excels at the initial discovery phase of large-scale assessments where speed matters far more than depth. It is standard equipment for Internet-wide security research, external attack surface management, and large enterprise network audits. Its output formats are compatible with Nmap’s grepable format, making it easy to feed results into downstream tools for deeper per-host analysis. With 25,000+ GitHub stars and inclusion in Kali Linux, it remains the go-to tool when raw scanning speed is the priority.

bolt Asynchronous SYN Scanning

Transmits raw SYN packets without waiting for replies, achieving up to 10 million packets per second — fast enough to scan the full IPv4 internet in under 5 minutes.

memory Custom TCP/IP Stack

Bypasses the OS network stack entirely, eliminating kernel overhead and enabling extreme throughput with optional PF_RING DNA kernel-bypass support.

shuffle Encryption-Based Randomisation

Uses a built-in encryption primitive to pseudorandomly shuffle scan order across the target IP/port space, distributing traffic evenly across network segments.

description Banner Grabbing

Completes TCP handshakes selectively to retrieve service banners for HTTP, SSH, SSL, FTP, SMTP, RDP, VNC, and other protocols.

Distribution Model

Open Source

Free community edition available.
Enterprise support on request.

trending_up Popularity

Low 75 / 100 High

settings_suggest Deployment Complexity

Low 15 / 100 High

engineering Technical Difficulty

Low 40 / 100 High
Masscan visualization
radar

Max Rate

10M PPS

Language

C

TCP Stack

CUSTOM USER-SPACE

License

AGPL V3