# Install zmap on macOS and Linux

Single-packet network scanner for surveying a port across large IP ranges.

ZMap scans one port across a large address range by sending a single packet to each address, fast enough to survey the whole IPv4 internet. It answers which hosts have the port open; follow up on those with nmap. It needs root or the raw-socket capability.

> zmap sends traffic to its target. Only use it on systems you own or have written permission to test.

## How to install zmap

```
ot install zmap
```

ot uses zmap from your system's package manager. If it is not installed yet, ot shows the `winget`, `brew` or `apt` command and asks before running it.

Before first use: Needs root, or the raw-socket capability, to send packets.

If you do not have ot yet:

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.5.0 ([changelog](https://otinstaller.com/changelog/)). Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.5.0/checksums.txt) before installing.

## How to use zmap

Arguments after the tool's name go straight to zmap.

List the hosts in a range with port 443 open.

```
sudo ot run zmap -p 443 -o results.txt 192.0.2.0/24
```

Limit the scan to 10 Mbit/s of bandwidth.

```
sudo ot run zmap -p 80 -B 10M 198.51.100.0/24
```

`ot run zmap --help` lists every option.

An AI agent can run zmap too: `ot mcp` serves it over the Model Context Protocol, once the server is started with `--allow-active`. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## zmap licence, platforms and versions

- Project: https://github.com/zmap/zmap
- Licence: Apache-2.0
- Runs on: macOS and Linux
- Takes: ip
- Categories: network, ports
- Sends traffic to the target: yes
- System package: through apt, brew, dnf and pacman

## Questions about zmap

### Does zmap run on Windows?

Not natively. zmap has no Windows build, so ot installs it on macOS and Linux only. On Windows, install ot inside WSL and use zmap from there.

### Is zmap free?

Yes. zmap is open source, released under the Apache-2.0 licence. ot, which installs it, is free under the Apache 2.0 licence.

### How do I update or remove zmap?

zmap is a system package, so update and uninstall it with your package manager. `ot remove zmap` only makes ot forget it and never uninstalls a system package.

### Do I need permission to use zmap?

Yes, for any system that is not your own. zmap sends traffic to its target, so use it only on systems you own or have written permission to test. ot shows this reminder before the first run, and its MCP server refuses zmap unless started with `--allow-active`.

## Tools related to zmap

- [masscan](https://otinstaller.com/tools/masscan/): Internet-scale TCP port scanner.
- [naabu](https://otinstaller.com/tools/naabu/): Fast port scanner for finding open ports on hosts.
- [nmap](https://otinstaller.com/tools/nmap/): Network mapper for host discovery, port scanning and service detection.
- [asnmap](https://otinstaller.com/tools/asnmap/): Map an organisation, domain or IP to its ASNs and network ranges.
- [cdncheck](https://otinstaller.com/tools/cdncheck/): Identify the CDN, cloud provider or WAF in front of an IP or domain.
- [ipinfo](https://otinstaller.com/tools/ipinfo/): Look up geolocation, ASN, carrier and privacy details for IP addresses.

More: [Networks and hosts](https://otinstaller.com/osint-tools/networks/).
