Information Gathering
Masscan is an internet-scale port scanner. It can scan the entire Internet in under 6 minutes, transmitting up to 10 million packets per second utilizing asynchronous transmit setups.
sudo apt install masscan
masscan [options] <target>
Masscan is the fastest internet-scale port scanner available, capable of transmitting up to 10 million packets per second. It uses asynchronous transmission to scan massive IP ranges without the overhead of maintaining TCP connection state.
Created by Robert David Graham in 2013, Masscan was designed to scan the entire IPv4 address space in under 6 minutes. It achieves this by operating at the raw packet level, sending SYN packets and analyzing responses without completing TCP handshakes.
While Masscan excels at speed, it trades off detailed analysis capabilities. It identifies open ports but does not perform service detection or OS fingerprinting. For comprehensive scanning, Masscan is typically used as a first pass to identify live hosts, followed by Nmap for deeper analysis.
| Command | Purpose |
|---|---|
masscan --help | Display primary interface guidance without transmitting packets. |
masscan 192.0.2.0/24 -p80 --rate 100 --echo | Print the resolved configuration without scanning. |
masscan 192.0.2.0/24 -p80 --rate 100 --offline | Exercise packet generation without transmission. |
masscan 192.0.2.0/24 -p22,80,443 --rate 100 | Run a rate-limited TEST-NET-1 example. |
masscan -p80,443 192.168.1.0/24 --rate 1000Network subnet scan - Quickly sweep an active internal scope target range for web operational setupsmasscan 192.168.1.0/24 -p80,443Scan common web portsmasscan 10.0.0.0/8 -p0-65535 --rate 10000Full port scanmasscan 192.168.1.0/24 --top-ports 100Top 100 portsmasscan 192.168.1.0/24 -p22,3389 -oL output.txtSave resultsmasscan 192.168.1.0/24 -p 80,443Scan for web portsmasscan 192.168.1.0/24 -p0-65535 --rate 1000Full port scan at 1000 ppsmasscan 192.168.1.0/24 -p 22 --bannersSSH banner grabbingmasscan 192.168.1.0/24 -p 80 --open-onlyShow only open portsmasscan 192.168.1.0/24 -p 80 -oL live.txtList output formatmasscan 192.168.1.0/24 -p 80 -oJ results.jsonJSON outputmasscan 192.168.1.0/24 -p 80 -oX results.xmlXML outputmasscan 192.168.1.0/24 -p 80 -oG grep.txtGrepable outputmasscan 192.168.1.0/24 -p 80 --adapter eth0Specific interfacemasscan 192.168.1.0/24 -p 80 --source-port 61000Custom source portmasscan 192.168.1.0/24 -p 80 --max-rate 500Rate limit 500 ppsmasscan 192.168.1.0/24 -p 80 --retries 33 retries per probemasscan 192.168.1.0/24 -p 80 --wait 3Wait 3 seconds for responsesmasscan 192.168.1.0/24 -p 80 --excludefile exclude.txtExclude hosts from fileScan the entire IPv4 address space to discover hosts and open services globally.
Quickly map large enterprise networks with thousands of IP addresses.
Discover all open ports across entire IP ranges for asset documentation.
Monitor for new open ports appearing on your network over time.
Find unauthorized services and devices on corporate networks.
Information Gathering
Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.
Information Gathering
RustScan is a modern, high-speed port scanner built in Rust that can find all open ports within seconds and automatically pipes them directly into Nmap for deeper script processing.
Information Gathering
Netdiscover is an active/passive ARP reconnaissance tool for discovering live hosts on a network. It sends ARP requests and listens for responses to identify devices, IP addresses, MAC addresses, and vendor information without performing port scans.
Information Gathering
Learn how to use Enum4linux to enumerate Windows and Samba systems over SMB: install it on Kali Linux, run your first scan, read the users, shares, groups and password policy it returns, and switch to enum4linux-ng for modern hosts that block null sessions.
Information Gathering
NBTScan is a program for scanning IP networks for NetBIOS name information. It sends a NetBIOS status query to each address in the supplied range and lists received information in human-readable form.
Information Gathering
SMBMap allows users to flash out Samba share drives across entire domains, mapping access rights, folder structural read/write lists, file downloads, and upload tests.
Learn Masscan for high-speed network scanning with millions of packets per second, covering options, output formats, and practical scanning examples.
Tools · BeginnerA beginner-friendly guide to network scanning with Nmap covering host discovery, port scanning techniques, service detection, and practical scanning examples.
Networking · BeginnerLearn about network ports, their numbering system, common protocols at each layer, how services use ports, and security implications.
OSINT · IntermediateLearn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.
Masscan output shows discovered open ports on target systems. Results include IP address, port number, protocol, and service version when detected. Open ports indicate potential attack surfaces.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.