NetLanSys Admin

network scanners

Masscan

High-speed open-source port scanner capable of scanning large IP ranges asynchronously.

developer
Robert Graham
license
Open source · AGPLv3
overview by
Husanjon Ruzaliev

Download Official

Abstract network scanners illustration

Use with authorization only. Scan networks and hosts you own or have explicit written permission to assess. Unauthorized scanning can violate acceptable-use policies and, in some jurisdictions, the law.

Masscan is the tool you reach for when the scan you need is simply too big for anything gentler. Written by Robert Graham, it’s an open-source port scanner built around one idea: transmit probes asynchronously so the scan isn’t bottlenecked waiting for replies. The result is a scanner that can sweep enormous address ranges at a speed that genuinely surprises people the first time. That power is real, and so is the responsibility — this is a tool that can flood a network as easily as survey it, and it belongs in experienced hands.

What Masscan actually does

Masscan does one thing: it finds open ports across a range of IP addresses, fast. It sends probes out and collects responses independently rather than checking one host, waiting, and moving on. That asynchronous design is why it can cover ranges that would take a conventional scanner an impractically long time.

Its command-line syntax deliberately echoes Nmap, so if you already know Nmap the basics feel familiar — you specify ranges, ports, and rate. Crucially, you control the transmit rate, and cranking it up is what unlocks the speed. It outputs to formats you can pipe into other tools, which fits how it’s actually used: as the fast first pass that tells you where to look, before a more careful scanner tells you what’s there. It’s distributed as source you build yourself, which is normal for this kind of utility but worth knowing before you start.

Where it shines

Raw speed and scale are the entire point, and it delivers. If your job is to answer “across this very large range, which hosts have port 443 open,” Masscan will tell you far faster than the alternatives. For internet-scale research, large enterprise sweeps, or any situation where the address space is huge, nothing gentler keeps up.

It’s also lean and focused. It doesn’t try to do service detection, scripting, or reporting — it finds open ports and gets out of the way, which makes it a clean building block in a larger pipeline. The Nmap-like syntax lowers the learning curve for anyone already in that world, and being open source means you can read exactly what it does and build it for your platform.

Where it falls short

The flip side of the speed is danger. At high transmit rates Masscan can saturate links, overwhelm fragile devices, and set off every intrusion-detection alarm in the building. Used carelessly it looks exactly like an attack, because operationally it behaves like one. This is not a tool to point at a network casually or to hand to someone still learning.

It’s also narrow by design. It finds open ports and little else — no version detection, no OS fingerprinting, no scripting engine. You’ll still want Nmap or another tool for the detail. It’s Linux-oriented, typically built from source, and expects comfort with the command line and networking fundamentals; there’s no friendly GUI to cushion mistakes. And because misuse is so easy, the authorization bar is higher here than for almost any other scanner in this catalog.

Who it’s for

Security researchers, penetration testers, and network engineers who genuinely need to scan large scopes and understand exactly what a high packet rate does to a network. In experienced hands it’s superb. For a small-office admin doing routine inventory, it’s overkill and easy to misuse — a lighter, safer tool will serve you better and won’t risk knocking things over.

Licensing and cost

Masscan is open source, distributed under the GNU Affero General Public License version 3 (AGPLv3), and free to use under that license’s terms. The AGPL carries obligations if you modify it and offer it as a network service, so if you’re building on top of it, read the license before you ship.

How it compares — real alternatives

The natural companion is Nmap: Masscan finds open ports fast across a huge range, then Nmap investigates the interesting hosts in depth with service and OS detection. They’re complementary, not rivals — many workflows run both. At the other end of the spectrum, if your needs are modest, a graphical tool like Angry IP Scanner or the Windows-friendly Advanced IP Scanner will do routine discovery without the speed, the risk, or the build step. Choose Masscan only when the scale of the job actually calls for it.

Getting it safely

Masscan lives on GitHub, under Robert Graham’s account (github.com, robertdavidgraham/masscan) — we host nothing and simply point you to the project’s own repository. Getting it from the official repo, rather than a random mirror, is how you know you’re building the real thing; it’s worth understanding how to verify what you download in general. Given how readily Masscan can be mistaken for — or turned into — an attack, run it only against networks and ranges you own or have explicit, documented authorization to scan, and keep the rate sane. If there’s any doubt, start with the authorization checklist.

FAQ

Why is Masscan so much faster than a normal scanner? It sends probes asynchronously instead of waiting for each reply before moving on, and it lets you set a high transmit rate. That decoupling is what allows it to cover very large ranges quickly — and also why a careless rate can overwhelm a network.

Should I use Masscan instead of Nmap? Usually alongside it, not instead. Masscan is the fast first pass that finds open ports at scale; Nmap is the follow-up that tells you what’s actually running on them. For small networks, Nmap alone is often plenty.

Is it safe to run on my office network? Only if you own it or are authorized, and only at a rate the equipment can handle. High-rate scans can disrupt services and trigger security alerts, so treat Masscan with more caution than a lightweight discovery tool.

About the project

Masscan is developed and maintained by Robert Graham. This is an independent catalog — we don't host or distribute the software. For source code, documentation and official releases, see the project's own site.

same segment

Alternatives in Network Scanners