masscan 192.168.1.1 -p80Scans a single IP address for port 80.
Provides a quick check for web service availability on the target.
An asynchronous TCP port scanner built for speed — it can sweep huge address ranges in minutes using its own TCP/IP stack.
sudo apt install masscanmasscan 192.168.1.1 -p80Scans a single IP address for port 80.
Provides a quick check for web service availability on the target.
masscan 10.0.0.0/24 -p443Scans an entire CIDR subnet for port 443.
Efficiently maps SSL/TLS services across a local or remote network.
masscan 192.168.1.1 -p22,80,443Scans a target for multiple specific ports.
Simultaneously probes SSH, HTTP, and HTTPS services on a single host.
masscan 192.168.1.1 -p1-1024Scans a comprehensive range of privileged ports.
Identifies common system and server services running on the target.
masscan 10.0.0.0/8 -p0-65535Performs a full port scan on a large network range.
Discovers all active TCP services across a wide swath of IP addresses.
masscan 10.0.0.0/16 -p80 --rate 100Throttles scan speed to 100 packets per second.
Reduces network impact and helps avoid triggering basic rate-limiting alerts.
masscan 10.0.0.0/8 -p80 --rate 100000Configures a high-speed scan rate of 100k pps.
Forces rapid network discovery for large-scale infrastructure audits.
masscan 192.168.1.0/24 -p80 -oX output.xmlExports scan results to an XML file (-oX).
Generates structured data suitable for integration with reporting tools.
masscan 192.168.1.0/24 -p80 -oJ output.jsonExports scan results to a JSON file (-oJ).
Provides a modern, machine-parseable format for automation and analysis.
masscan 192.168.1.0/24 -p80 -oL output.txtSaves results in a simple grepable list (-oL).
Ideal for quick command-line filtering and extracting host lists.
masscan 192.168.1.0/24 -p80 -oB output.binSaves results in binary format for efficiency (-oB).
Ideal for high-speed scanning where minimizing disk I/O is critical.
masscan 192.168.1.100 -pU:53Performs a scan specifically for UDP port 53.
Identifies reachable DNS servers on the target IP or range.
masscan 192.168.1.100 -pU:161,162Scans for standard SNMP UDP ports 161 and 162.
Discovers network devices and services exposing management interfaces.
masscan 192.168.1.1 -p80,U:53Combines TCP and UDP ports in a single scan run.
Broadens discovery coverage across different transport layer protocols.
masscan 10.0.0.0/8 -p80 --exclude 10.0.0.1Excludes specific IP addresses from the scan task.
Ensures critical or sensitive hosts are not probed during discovery.
masscan 10.0.0.0/8 -p80 --excludefile exclude.txtExcludes a list of targets provided in a text file.
Enables systematic avoidance of restricted IP ranges and hostlists.
masscan 192.168.1.0/24 -p80 --interface eth0Forces the scan to use a specific network adapter.
Ensures traffic exits through the correct physical or logical interface.
masscan 192.168.1.0/24 -p80 --router-mac 00:11:22:33:44:55Specifies the gateway MAC address explicitly.
Bypasses local routing lookups to increase packet generation efficiency.
masscan 10.0.0.0/8 -p80 --adapter-ip 192.168.1.200Sets a custom source IP for outgoing scan packets.
Makes discovery traffic appear to originate from a different host.
masscan 10.0.0.0/8 -p80 --adapter-port 60000Sets a fixed source port for the scan session.
Useful for testing through firewalls that permit specific source ports.
masscan 10.0.0.0/8 -p80 --adapter-port 60000-60100Uses a specific range of source ports for probes.
Prevents traffic pattern signatures from being tied to a single source port.
masscan -c scan.confExecutes a scan using settings from a config file (-c).
Standardizes complex scan parameters for repeatable security audits.
masscan 10.0.0.0/24 -p80 --echo > scan.confSaves current scan parameters to a configuration file.
Enables documentation and subsequent reuse of specific scan settings.
masscan 0.0.0.0/0 -p80 --shard 1/10Participates in a distributed scan using sharding.
Divides the workload across multiple machines for massively parallel discovery.
masscan 0.0.0.0/0 -p80 --seed 123456Randomizes IP generation using a specific seed value.
Ensures reproducible scan order for verification and debugging.
masscan --resume paused.confResumes an interrupted scan from a saved state file.
Prevents data loss and redundant probing on long-running network scans.
masscan 10.0.0.0/8 -p80 --rate 500 --ttl 10Low-rate internal scan with restricted hop limits (TTL).
Safely discovery internal assets while preventing packets from exiting the network.
masscan 192.168.0.0/16 -p445 --rate 100 --wait 0Rapidly probes for SMB services without long waits.
Quickly identifies systems exposing Windows file sharing ports.
masscan 10.0.0.0/24 -p80 --open-onlyReports only open ports and suppresses all other output.
Streamlines discovery results for immediate action or pipe consumption.
masscan 10.0.0.0/24 -p80 --pcap output.pcapCaptures raw scan traffic directly to a PCAP file.
Enables detailed offline analysis of network responses and behaviors.
masscan 10.0.0.0/24 -p80 --hello-string "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n"Sends a custom payload string upon connection establishment.
Probes application-layer behavior with specific protocol-compliant strings.
masscan 10.0.0.0/24 -p80 --retries 3Retries failed packet transmissions to improve scan accuracy.
Essential for reliable results on lossy or high-congestion network links.
masscan 10.0.0.0/16 --top-ports 100 --rate 1000Scans the 100 most statistically common network ports.
Prioritizes high-value service discovery to speed up the reconnaissance phase.
masscan 192.168.1.1 -p0-65535 --rate 100000 --bannerFull range port scan with high-speed banner grabbing.
Deeply audits a single host for all services at maximum tool performance.
masscan 10.0.0.0/8 -p80 --status-seconds 10Prints scan status updates every 10 seconds in the console.
Provides visibility into progress and ETA during long-running tasks.
masscan -iL targets.txt -p80Loads target IP lists from an external text file (-iL).
Standardizes targets for large-scale security assessments across ranges.
masscan 10.0.0.0/8 192.168.0.0/16 -p80,443Scans multiple disjoint networks in a single execution.
Consolidates discovery efforts for varied infrastructure in one task.
masscan 0.0.0.0/0 -p443 --exclude 255.255.255.255Attempts a full IP space scan for port 443 availability.
An extreme internet-scale operation for world-wide service mapping.
masscan 0.0.0.0/0 -p80 --max-rate 10000000Simulates 10 million packets per second internet scan throughput.
Tests hardware and network stack limits for peak scanning performance.
masscan 10.0.0.0/24 -p443 --heartbleedAudits SSL/TLS endpoints for the Heartbleed vulnerability.
Specifically detects systems with vulnerable OpenSSL implementations on port 443.
masscan 192.168.1.0/24 -p22,80,443,3389 --rate 1000 --banners -oJ detailed.jsonComprehensive scan targeting common administrative and web ports.
Includes banner identification and structured JSON output for documentation.
masscan 10.0.0.0/16 -p80 --adapter-ip 192.168.1.10 --adapter-port 40000 --rate 500Controlled rate scan with fixed source parameters.
Mimics a specific network device while discovering web services.
masscan 192.168.1.0/24 --pingPerforms an ICMP ping scan to identify reachable hosts.
Quickly detects live systems without performing transport layer port audits.
masscan 10.0.0.0/24 -p80 --wait 5Configures a 5-second wait for probe response before timeout.
Adjusts tool sensitivity for high-latency or slow-responding networks.
masscan 192.168.1.0/24 --arpUses ARP requests for local network asset discovery.
Extremely fast and effective method for mapping the local L2 segment.
masscan 192.168.1.0/24 -p80 --adapter-mac 00:11:22:33:44:55Spoofs the source hardware MAC address for scan traffic.
Bypasses MAC-based filters or identifies as another device on the network.
masscan 10.0.0.0/16 -p443 --script safeRuns limited safe scripts against HTTPS service endpoints.
Attempts basic vulnerability detection during the scanning phase.
masscan --readscan output.bin -oX converted.xmlConverts binary scan logs into structured XML for viewing.
Enables offline processing and reporting from previously run high-speed scans.
masscan 0.0.0.0/0 -p80 --blackrock-rounds 4Increases cryptographic randomization rounds for IP sequencing.
Obfuscates the scanning pattern to avoid simple sequence-based detection.
masscan 10.0.0.0/8 -p22,3389 --rate 100 --adapter-port 53Slowly scans for administrative ports using DNS source port 53.
Optimized for evading ingress filters that trust common network protocols.
masscan 192.168.0.0/16 -p0-65535 --rate 100000 --banners -oB baseline.binRapidly baselines all TCP services across an entire network.
Generates a complete snapshot of the network state for defensive monitoring.
masscan 10.0.0.0/16 -p80,8080,8000,8888 --bannersSearches for web servers on common and alternative HTTP ports.
Identifies development and standard web interfaces across the infrastructure.
masscan 10.0.0.0/16 -p3306,5432,1433,27017Targets standard database listener ports on the network.
Identifies MySQL, MariaDB, Postgres, and SQL Server instances efficiently.
masscan 10.0.0.0/8 -p179,500,4500Identifies routing and VPN infrastructure through key ports.
Discovers BGP peering points and IPsec/VPN terminators.
masscan 10.0.0.0/16 -p80 --randomize-hostsEnforces non-sequential target IP order during the scan.
Reduces the likelihood of triggering simple range-based scanning alerts.
masscan 10.0.0.0/24 -p80 --capture htmlExtracts HTML response data from reachable web servers.
Enables light content reconnaissance and identification of page titles.
masscan 192.168.1.1 -p80 --debugDisplays low-level packets and internal tool debugging data.
Essential for troubleshooting connection issues or tool execution failures.
The standard network scanner: discovers hosts, open ports, running services and versions, operating systems, and runs NSE scripts for deeper checks.
A single-packet network scanner designed to survey the entire IPv4 address space for one port at a time, used in internet-wide research.
A fast port scanner written in Rust that finds open ports in seconds and then hands them to Nmap for detailed service detection.
An asynchronous stateless scanner for TCP and UDP that correlates responses separately from sending probes, useful for large or UDP-heavy scans.
The command line for Shodan, the search engine for internet-connected devices: search banners, look up hosts and monitor networks.