# 使用 Homebrew, apk, Nix 安装 naabu

查看 naabu 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:naabu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install naabu
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add naabu
```

  证据: Alpine Linux edge package indexes: naabu from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#naabu
```

  证据: nixpkgs package indexes: pkgs/by-name/na/naabu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:naabu
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/naabu>
- **版本:** 2.6.1
- **来源摘要:** Fast port scanner
- **主页:** <https://docs.projectdiscovery.io/tools/naabu/overview>
- **仓库:** <https://github.com/projectdiscovery/naabu>
- **上游文档:** <https://docs.projectdiscovery.io/tools/naabu/overview>
- **许可证:** MIT
- **源码归档:** <https://github.com/projectdiscovery/naabu/archive/refs/tags/v2.6.1.tar.gz>
- **最后更新:** 2026-07-26T19:43:12+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- naabu (cli)
- naabu (别名)

## 构建依赖

- go

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.6.1
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/projectdiscovery/naabu
- 检测到的最新版本: v2.6.1 (当前)
## 项目历史与用法

Naabu is ProjectDiscovery's fast Go port scanner for enumerating open ports across hosts, lists, CIDRs, and discovery pipelines. The GitHub repository was created on January 21, 2020, and the project sits in the same offensive-security and attack-surface-discovery family as subfinder, httpx, nuclei, dnsx, and other ProjectDiscovery tools.

### 项目历史

The README and ProjectDiscovery docs describe Naabu as a simple scanner that performs SYN, CONNECT, and UDP probes and returns ports that respond. Over time it gained features useful in large recon jobs: IPv4/IPv6 scanning, DNS port scans, automatic IP deduplication, host discovery, CDN/WAF exclusion, JSON/CSV output, passive port enumeration through Shodan InternetDB, native UDP service probes, and nmap integration for follow-up service discovery.

### 采用历史

Naabu is adopted mostly by bug bounty hunters, pentesters, and security engineers who already compose ProjectDiscovery tools into pipelines. On July 1, 2026 the GitHub API showed 6,029 stars and 691 forks. Homebrew reported 1,696 installs over 365 days, which is meaningful but modest beside Go install paths, container usage, and Linux package channels.

### 使用方式

The basic use is `naabu -host example.com` or feeding hosts on stdin with flags such as `-p`, `-top-ports`, `-json`, `-o`, and `-rate`. Operators use it as the port-enumeration stage between subdomain discovery and HTTP/service probing, often handing discovered ports to httpx, nuclei, or nmap. The docs call out that SYN scans need sufficient privileges, while non-root use falls back to CONNECT scans.

### 为什么软件包爱好者会关心

Naabu is not trying to replace nmap as a universal network mapper. Its niche is fast, scriptable port discovery that produces clean output for the next tool in a recon pipeline. That separation of concerns is the package-nerd angle: use Naabu for speed and breadth, then hand fewer targets to slower service/version or vulnerability scanners.

### 时间线

- 2020-01-21: GitHub repository created.
- 2026-05-05: v2.6.1 published on GitHub.
- 2026-07-01: GitHub API showed 6,029 stars and Homebrew API showed 1,696 installs over 365 days.

### Related projects

- ProjectDiscovery
- nuclei
- httpx
- subfinder
- dnsx
- nmap
- Shodan InternetDB

### 来源

- <https://api.github.com/repos/projectdiscovery/naabu>
- <https://api.github.com/repos/projectdiscovery/naabu/releases/latest>
- <https://docs.projectdiscovery.io/opensource/naabu/overview>
- <https://docs.projectdiscovery.io/opensource/naabu/running>
- <https://formulae.brew.sh/api/formula/naabu.json>
- <https://formulae.brew.sh/formula/naabu>
- <https://github.com/projectdiscovery/naabu>
- <https://pkg.go.dev/github.com/projectdiscovery/naabu>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.config/naabu/config.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** naabu
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - naabu: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/naabu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - naabu - 2.5.0-r3: normalized package name match | Alpine Linux edge package indexes: naabu from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast port scanner written in go with a focus on reliability and simplicity | https://docs.projectdiscovery.io/tools/naabu
- apk - naabu-doc - 2.5.0-r3: normalized package name match | Alpine Linux edge package indexes: naabu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast port scanner written in go with a focus on reliability and simplicity (documentation) | https://docs.projectdiscovery.io/tools/naabu


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [masscan](https://pkg.so/zh-hans/brew/masscan/) - Shares pkgdb curated category or tags: cli, network-scanning, port-scanner, security.
- [nmap](https://pkg.so/zh-hans/brew/nmap/) - Shares pkgdb curated category or tags: cli, network-scanning, port-scanner, security.
- [gau](https://pkg.so/zh-hans/brew/gau/) - Shares pkgdb curated category or tags: cli, go, reconnaissance, security.
- [favirecon](https://pkg.so/zh-hans/brew/favirecon/) - Shares pkgdb curated category or tags: cli, go, reconnaissance, security.
- [osv-scanner](https://pkg.so/zh-hans/brew/osv-scanner/) - Shares pkgdb curated category or tags: cli, go, security.
- [subfinder](https://pkg.so/zh-hans/brew/subfinder/) - Shares pkgdb curated category or tags: cli, reconnaissance, security.
- [gobuster](https://pkg.so/zh-hans/brew/gobuster/) - Shares pkgdb curated category or tags: cli, go, security.
- [amass](https://pkg.so/zh-hans/brew/amass/) - Shares pkgdb curated category or tags: cli, reconnaissance, security.
- [nuclei](https://pkg.so/zh-hans/brew/nuclei/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, scanner, scanning, security.
- [scilla](https://pkg.so/zh-hans/brew/scilla/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, go, port, port-scanner, reconnaissance.

## Combined YAML source

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


## 来源

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