Skip to content
THREATWIRE

masscan

Asynchronous TCP port scanner for large ranges

Internet-scale port scanner that sends SYN packets asynchronously with its own TCP/IP stack, designed to scan very large address ranges quickly.

Open sourceAGPL-3.0-only
Homepage of masscan
Official repository page, captured by ThreatWire.

What masscan does

masscan uses its own user-mode TCP/IP stack and transmits packets asynchronously, which lets it scan very large IP ranges far faster than traditional scanners. Its command-line options are deliberately close to Nmap's.

It is used for attack surface measurement and research scanning. Fast scanning of networks you do not own can breach acceptable-use policies and laws; rate limits and exclusion lists should always be set.

Key features

  • Asynchronous transmission with a custom TCP/IP stack
  • Nmap-like command-line options
  • Banner grabbing for common protocols
  • Rate control and exclusion lists
  • XML, JSON, grepable and binary output

Licence

AGPL-3.0-only · GNU AGPL v3 · Open source

Checked by ThreatWire against the repository's licence file on 2026-10-20. GitHub detects: AGPL-3.0.

Security of masscan itself

No published advisory found for masscan in GitHub repository advisories. That does not mean the tool has no vulnerabilities.

Sources: GitHub repository advisories · checked 2026-10-20.

Categories and tags

Related tools

  • RustScan

    Fast port scanner that hands results to Nmap

    Port scanner written in Rust that finds open ports quickly and then pipes them into Nmap for service detection, with a scripting engine of its own.

    Stars
    21k
    Forks
    1.4k
    Last commit
    14 days ago
    GPL-3.0-onlyOpen sourceNetwork scanning and analysis
  • Nmap

    Network discovery and security auditing tool

    The Network Mapper: host discovery, port scanning, service and OS detection, and the Nmap Scripting Engine (NSE) for further checks.

    Stars
    14k
    Forks
    2.9k
    Last commit
    today
    NPSL-0.95Source-availableNetwork scanning and analysis
  • Wireshark

    Network protocol analyser

    The widely used network protocol analyser: capture live traffic or open capture files and inspect thousands of protocols with display filters.

    Stars
    10k
    Forks
    2.2k
    Last commit
    today
    GPL-2.0-onlyOpen sourceNetwork scanning and analysis
  • mitmproxy

    Interactive TLS-capable intercepting HTTP proxy

    Interactive HTTPS proxy with a terminal UI (mitmproxy), a web UI (mitmweb) and a scriptable command-line tool (mitmdump) driven by Python add-ons.

    Stars
    46k
    Forks
    4.8k
    Last commit
    today
  • SpiderFoot

    OSINT automation for footprinting

    OSINT automation tool with a web UI and more than 200 modules that gather data on IPs, domains, emails, names and more from public sources.

    Stars
    24k
    Forks
    3.8k
    Last commit
    2 years ago
    Alternative toMaltego
  • theHarvester

    Gather emails, names and subdomains from public sources

    Python OSINT tool that collects emails, names, subdomains, IPs and URLs about a domain from search engines and public data sources.

    Stars
    18k
    Forks
    2.7k
    Last commit
    1 day ago
    GPL-2.0-onlyOpen sourceOSINT and attack surface discovery
    Alternative toMaltego
Share on X@threatwire_https://www.threatwire.tech/tools/masscan