masscan
Table of Contents
Masscan
Description
Masscan is primarily a TCP port scanner that operates with an architecture distinct from traditional tools like Nmap. It is designed for asynchronous, spoofed, and massively parallel scanning, prioritizing speed over accuracy in detailed host state.
- Purpose: The primary goal of Masscan is to perform rapid asset inventory and discovery on a massive scale, often across large corporate networks or the entire IPv4 address space. It's used by security researchers and ethical hackers to quickly find the extent of publicly accessible services (e.g., finding every server with port 22 or 80 open).
- Speed and Architecture: Masscan achieves its speed by using a custom TCP/IP stack that sends packets without listening for the replies on the same kernel socket. It operates like a network driver, transmitting probes and then asynchronously collecting the resulting SYN-ACK packets (which indicate an open port) via a separate capture mechanism (like libpcap). This allows it to sustain speeds of up to 10 million packets per second.
- Ethical Considerations: Due to its immense speed and volume of packets, Masscan can be intrusive and is often rate-limited or blocked by network defenders. It should only be run against networks where explicit permission has been granted, or in a controlled environment.