Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Masscan

github.com

  • Free plan
  • Open source
  • Windows
  • macOS
  • Linux
  • Self-hosted
7.9 Club score Visit github.com

What Masscan is

Masscan is a command-line TCP port scanner designed to scan many machines across wide address ranges. The project says it can transmit 10 million packets per second from one machine. It supports asynchronous transmission and user-selected port and address ranges, and can scan IPv4 and IPv6 together. Banner checks cover services including FTP, HTTP, SSH, SMTP, RDP, and VNC, among others. Results can be written as XML, binary, grepable, JSON, or list output. Its usage and output are designed to feel familiar to Nmap users, with some compatible options. Masscan is free software under the GNU Affero General Public License version 3; the license notice states there is no warranty. It runs on Linux, macOS, and Windows. Users must specify ports, and targets must be IP addresses or simple ranges rather than DNS names. The README also warns that its custom TCP/IP stack can conflict with the local network stack, and describes using a separate source IP or firewalling the source port to address that operational issue.

Who it suits

Masscan suits users scanning many machines across wide ranges rather than focusing on intensive scans of a single machine or small range. Users need to be comfortable specifying ports and IP-address targets.

Good to know, and what to watch

  • Designed for wide-range scanning of many machines.
  • Supports IPv4 and IPv6 in the same scan.
  • Offers multiple output formats, including JSON.
  • Banner checks cover a range of common services.
  • Targets must be IP addresses or simple ranges, not DNS names.
  • Users must specify ports.
  • Custom TCP/IP stack can conflict with the local stack.
  • License notice states the software has no warranty.

Free

Free

Masscan

Free

Free plan

The verdict

Masscan is built for broad, high-speed TCP port scanning and offers several output formats. Its targeting requirements and potential interaction with the local TCP/IP stack call for operational care.

What the maker publishes

Address and port ranges
Masscan accepts arbitrary IP address ranges and port ranges, including IPv4 and IPv6 examples. source
Asynchronous scanning
It sends SYN packets asynchronously and uses a design comparable to scanrand, Unicornscan and ZMap. source
Banner checks
Banner checking is supported for FTP, HTTP, IMAP4, memcached, POP3, SMTP, SSH, SSL, SMBv1, SMBv2, Telnet, RDP, and VNC. source
Banner-grab hazard
The host stack can send reset packets after SYN-ACK responses, terminating connections before Masscan captures banners. source
Banner protocols
Banner checking is documented for FTP, HTTP, IMAP4, memcached, POP3, SMTP, SSH, SSL, SMBv1, SMBv2, Telnet, RDP and VNC. source
Build requirements
The basic Linux build requires Git, Make and a C compiler such as GCC or Clang, with no other major dependencies described. source
Compatibility
Masscan's usage and output are designed to be familiar to Nmap users, with some Nmap-compatible options. source
Configuration export
The --echo option prints the current configuration so it can be saved and reused as an input configuration file. source
Copyright date
The licence notice identifies copyright as 2013 Robert David Graham. source
Custom TCP/IP stack
Masscan includes its own ad hoc TCP/IP stack, which can conflict with the host operating system stack. source
Distributed scans
The Debian manual documents --shard for dividing a scan across machines and resume indexes for assigning chunks to workers such as Amazon EC2 instances. source
High-speed integration
PF_RING ZC can be used beyond about two million packets per second with a compatible Intel 10-gigabit adapter and drivers. source
Integrations
The project describes PF_RING DNA support for high-speed packet transmission and says Masscan can use PF_RING ZC when the adapter name indicates it. source
Intended users
The README describes Masscan as tuned for scanning many machines across wide ranges, while Nmap is described as designed for intensive scanning of a single machine or small range. source
IPv6
IPv4 and IPv6 can be scanned together, without a separate IPv6 mode. source
Kali package
Kali lists Masscan as a TCP port scanner installable with sudo apt install masscan, with an installed size of about 516 KB and libc6 and libpcap dependencies. source
Licence
Masscan is released under the GNU Affero General Public License version 3. source
License
Masscan is free software under the GNU Affero General Public License version 3, with no warranty stated in the license notice. source
Limit: command-line interface
The same review lists the lack of a graphical interface and the need for command-line operation as disadvantages. source
Limit: documentation depth
A university evaluation found Masscan's documentation mainly consisted of its README and C source, with less documentation than ZMap. source
Limit: host inspection
The same evaluation records that Masscan does not provide operating-system detection and offers a smaller capability set than Nmap. source
Limit: network overload
A Masscan usage review warns that setting the transmission rate too high can overload networks or cause IP blocking. source
Limit: shallow vulnerability coverage
A 2025 IoT-security paper describes Masscan and similar scanners as broad discovery tools that do not detect deeper firmware or device-specific vulnerabilities. source
Limit: virtual networking
A BSides security-crawler presentation reports that Masscan performed poorly with some virtual network configurations, leading the team to build a custom asynchronous TCP scanner. source

Checked against the maker's pages on 15 Oct 2026.