# masscan を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman でインストール

masscan のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:masscan
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install masscan
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install masscan
```

  証拠: MacPorts ports tree: net/masscan/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add masscan
```

  証拠: Alpine Linux edge package indexes: masscan from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install masscan
```

  証拠: Debian stable package indexes: masscan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install masscan
```

  証拠: Fedora Rawhide package metadata: masscan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#masscan
```

  証拠: nixpkgs package indexes: pkgs/by-name/ma/masscan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S masscan
```

  証拠: Arch Linux sync databases: masscan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:masscan
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.3.2
- **ソース概要:** TCP port scanner, scans entire Internet in under 5 minutes
- **ホームページ:** <https://github.com/robertdavidgraham/masscan/>
- **リポジトリ:** <https://github.com/robertdavidgraham/masscan>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- masscan (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.3.2
## プロジェクトの歴史と使われ方

MASSCAN is an Internet-scale TCP port scanner designed to transmit probes asynchronously at very high packet rates. It is packaged as a security and networking CLI because it gives users an `nmap`-like command surface for wide-range scanning rather than deep per-host enumeration.

### プロジェクトの歴史

The public GitHub repository was created in July 2013, and early releases appeared in September and October 2013. The README describes the tool as able to scan the entire Internet in under five minutes from a single machine at up to 10 million packets per second, using its own TCP/IP stack and asynchronous transmit and receive threads.

MASSCAN's 1.0 release arrived in October 2013, and a Kali-tagged prerelease was already published in September 2013. Later releases added practical improvements such as dynamic libpcap loading, memcached support, and IPv6 support in the 1.3.0 line, followed by fixes for the IPv6 transition.

The design section of the README explicitly positions MASSCAN relative to earlier high-speed scanners such as scanrand, unicornscan, and ZMap, while making the command-line and output style familiar to `nmap` users.

### 採用の歴史

MASSCAN is widely adopted for a command-line security tool: the repository has tens of thousands of GitHub stars and thousands of forks, and the supplied package metadata lists packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, and Nix.

Its package-manager footprint reflects its role in security labs, reconnaissance workflows, and network inventory jobs where users want a readily installable binary rather than building research code by hand.

### 使われ方

Users provide ports and target ranges, for example `masscan -p80,8000-8100 10.0.0.0/8`, and can emit or reuse configuration with `--echo` and `-c`. The README documents XML, binary, grepable, JSON, and list output formats.

MASSCAN is tuned for breadth. The README contrasts it with `nmap`: it uses randomized host order, raw packet sending, no default ports, no DNS resolution, and an asynchronous model suited to large address ranges. It also warns that banner grabbing and other TCP interactions can conflict with the host network stack unless source IPs, source ports, and firewall rules are configured carefully.

The default configuration file is `/etc/masscan/masscan.conf`, and command-line settings override that default. The README recommends using exclude files for Internet-scale scans and includes prominent cautions about scanning responsibly.

### パッケージ好きにとっての重要性

MASSCAN is package-nerd significant because it is one of the canonical examples of a single-purpose C security tool that package managers make safe to acquire, update, and remove across many Unix-like systems.

It also shows why packaging security tools matters: users get reproducible builds and OS integration for software that otherwise encourages copying binaries or building from source before running high-impact network scans.

### タイムライン

- 2013: GitHub repository created.
- 2013: Early v1 and Kali prereleases published.
- 2013: 1.0 release published.
- 2020: 1.3.0 release adds IPv6 support.
- 2026: Repository remains active with recent commits.

### Related projects

- MASSCAN is related to `nmap`, but optimized for broad asynchronous scanning rather than detailed host inspection.
- The README also compares its asynchronous approach with scanrand, unicornscan, and ZMap.

### ソース

- <https://api.github.com/repos/robertdavidgraham/masscan>
- <https://github.com/robertdavidgraham/masscan>
- <https://github.com/robertdavidgraham/masscan/releases>
- source_facts.package-manager-url


## セキュリティノート

large-scale network scanning tool.

- **Geiger リスク:** red / 高
- large-scale network scanning tool


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/masscan/masscan.conf
## 他のパッケージマネージャ記録

- Debian apt - masscan - 2:1.3.2+ds1-2: normalized package name match | Debian stable package indexes: masscan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TCP port scanner | https://github.com/robertdavidgraham/masscan
- Nix - masscan: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/masscan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - masscan - 2:1.3.2+ds1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: masscan from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TCP port scanner | https://github.com/robertdavidgraham/masscan
- apk - masscan - 1.3.2-r2: normalized package name match | Alpine Linux edge package indexes: masscan from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes | https://github.com/robertdavidgraham/masscan
- apk - masscan-doc - 1.3.2-r2: normalized package name match | Alpine Linux edge package indexes: masscan-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes (documentation) | https://github.com/robertdavidgraham/masscan
- dnf - masscan - 1.3.2-16.fc45: normalized package name match | Fedora Rawhide package metadata: masscan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | This is an Internet-scale port scanner | https://github.com/robertdavidgraham/masscan
- pacman - masscan - 1.3.2-2: normalized package name match | Arch Linux sync databases: masscan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes | https://github.com/robertdavidgraham/masscan
- MacPorts - masscan: normalized package name match | MacPorts ports tree: net/masscan/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/masscan.yml](https://github.com/mxcl/pkgdb/blob/main/combined/masscan.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
