# Masscan

> Very fast asynchronous TCP port scanner built to sweep large address ranges with nmap-like options.

Source: https://osinttools.io/tools/masscan/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** IP address
- **Category:** Infrastructure and domains
- **Pricing:** Free, open source
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** no
- **API:** no public API
- **Platforms:** C CLI (Linux, macOS, Windows)
- **Website:** https://github.com/robertdavidgraham/masscan
- **GitHub:** robertdavidgraham/masscan, 26,185 stars · C · AGPL-3.0 · last commit 2026-10-05
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

Masscan is an open-source port scanner written in C by Robert Graham. It sends SYN packets asynchronously through its own TCP/IP stack, which lets a single machine scan very large address ranges quickly. Its command-line options and output are modelled on nmap, so it is easy to pick up for anyone who knows that tool.

Researchers use it to map which hosts in a network range expose given ports before handing a short list to slower, deeper tools. Because it uses its own network stack, the README recommends setting a separate source IP or source ports and firewalling them from the host system.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. No account is needed. There is no public API.

## Features

- Asynchronous SYN scanning
- Arbitrary port and address ranges
- IPv4 and IPv6 targets
- nmap-style options and output
- Config file via --echo
- Builds on Linux, Windows and macOS

## Pros

- Extremely fast on large ranges
- Familiar syntax for nmap users
- No dependencies beyond a C compiler
- Actively maintained

## Cons

- Active scanning that targets will see and may block or report
- Built for breadth; it does not do deep service or OS detection like nmap
- Scanning networks without permission may break laws or provider terms

## When to use it

- Use it when you need to find open ports across a large range you are authorised to scan.
- Use it when you want a fast first pass before running nmap on the hosts that answered.

## Quick start

Build from source (Debian/Ubuntu):

```
sudo apt-get --assume-yes install git make gcc
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make
```

## Alternatives

- [BGP Ranking](https://osinttools.io/tools/bgp-ranking/): CIRCL service that scores autonomous systems by how much malicious activity they host relative to their size. (Free · IP address · passive)
- [BrowserLeaks](https://osinttools.io/tools/browserleaks/): Suite of tests showing what your browser leaks: IP and WebRTC leaks, canvas, WebGL, font and TLS fingerprints. (Free · IP address · passive)
- [CIDR Report](https://osinttools.io/tools/cidr-report/): Daily report on the global BGP routing table: table growth, AS summaries, possible bogons and aggregation. (Free · IP address · passive)
- [Censys extension](https://osinttools.io/tools/censys-extension/): Censys's Chrome extension for looking up an IP's ports, services, location and WHOIS, and searching highlighted text in Censys. (Freemium · IP address · passive)
- [DB-IP](https://osinttools.io/tools/db-ip/): IP geolocation and ISP database with a lookup site, an API and free monthly Lite downloads under CC BY. (Freemium · IP address · passive)
- [ExoneraTor](https://osinttools.io/tools/exonerator/): Tor Project service that tells you whether an IP address was a Tor relay on a given date. (Free · IP address · passive)

All alternatives to Masscan in one table: https://osinttools.io/tools/masscan/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
