# 使用 Homebrew, dnf, Nix 安装 asnmap

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

## 安装

```sh
sudo av install brew:asnmap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install asnmap
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install asnmap
```

  证据: Fedora Rawhide package metadata: asnmap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#asnmap
```

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

## 软件包事实

- **软件包键:** brew:asnmap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/asnmap>
- **版本:** 1.1.1
- **来源摘要:** Quickly map organization network ranges using ASN information
- **主页:** <https://github.com/projectdiscovery/asnmap>
- **仓库:** <https://github.com/projectdiscovery/asnmap>
- **上游文档:** <https://github.com/projectdiscovery/asnmap#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/projectdiscovery/asnmap/archive/refs/tags/v1.1.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- asnmap (cli)
- asnmap (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.1.1
- 本地数据: OK
- 上游仓库: https://github.com/projectdiscovery/asnmap
- 检测到的最新版本: v1.1.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

asnmap is ProjectDiscovery's Go CLI and library for mapping autonomous system, organization, domain, and IP inputs to network ranges. It fits the ProjectDiscovery style of small composable reconnaissance tools with stdin/stdout support and automation-friendly JSON and CSV output.

### 项目历史

The official README presents asnmap as both a command-line tool and Go library built on top of the ASNMap API. It acknowledges Frank Denis for maintaining the free IPtoASN database, making the project a packaged interface around ASN/CIDR lookup data useful in security and network inventory workflows.

### 采用历史

The Homebrew input records asnmap in Homebrew, dnf, and Nix. Upstream installation also documents `go install github.com/projectdiscovery/asnmap/cmd/asnmap@latest` and precompiled binaries from the GitHub releases page, which is typical for ProjectDiscovery tools distributed both through Go and OS package managers.

### 使用方式

asnmap accepts ASN, IP, domain, organization, file, and stdin input. Common package-manager usage is simple shell composition: query an organization or AS number, emit CIDR ranges, and pipe them into other recon tools.

The README explicitly shows pipelines into ProjectDiscovery tools such as `tlsx`, `dnsx`, `naabu`, `httpx`, and `nuclei`, and it documents JSON and CSV output for post-processing.

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

For package nerds, asnmap is notable less as a standalone network database and more as a glue utility: it converts high-level organization or ASN targets into CIDR material that the rest of a CLI security toolchain can consume.

The tool's API-token support also marks a shift seen in modern recon CLIs: a packaged open-source binary can still depend on a hosted platform token for full operation.

### 时间线

- 2022: README examples show v0.0.1-era output and timestamped JSON examples for ASN/CIDR lookup.
- Current README: Installation requires Go 1.21, supports precompiled releases, and documents ProjectDiscovery Cloud API token configuration.

### Related projects

- The README documents direct workflow use with `tlsx`, `dnsx`, `naabu`, `httpx`, and `nuclei`, all in the ProjectDiscovery CLI ecosystem.
- The README acknowledges the IPtoASN database maintained by Frank Denis as related data infrastructure.

### 来源

- <https://github.com/projectdiscovery/asnmap#readme>
- input.source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** asnmap
- **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 - asnmap: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/asnmap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - asnmap - 1.1.1-9.fc44: normalized package name match | Fedora Rawhide package metadata: asnmap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Go CLI and Library for quickly mapping organization network ranges using ASN information | https://github.com/projectdiscovery/asnmap


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [asn](https://www.automicvault.com/zh-hans/pkg/brew/asn/) - Shares av.db curated category or tags: asn, cli, network, networking.
- [arping](https://www.automicvault.com/zh-hans/pkg/brew/arping/) - Shares av.db curated category or tags: cli, network, networking.
- [asroute](https://www.automicvault.com/zh-hans/pkg/brew/asroute/) - Shares av.db curated category or tags: cli, network, networking.
- [geoip2fast](https://www.automicvault.com/zh-hans/pkg/brew/geoip2fast/) - Shares av.db curated category or tags: asn, cli, networking.
- [activemq](https://www.automicvault.com/zh-hans/pkg/brew/activemq/) - Shares av.db curated category or tags: cli, networking.
- [adns](https://www.automicvault.com/zh-hans/pkg/brew/adns/) - Shares av.db curated category or tags: cli, networking.
- [aerleon](https://www.automicvault.com/zh-hans/pkg/brew/aerleon/) - Shares av.db curated category or tags: cli, networking.
- [ahcpd](https://www.automicvault.com/zh-hans/pkg/brew/ahcpd/) - Shares av.db curated category or tags: cli, networking.
- [arp-scan](https://www.automicvault.com/zh-hans/pkg/brew/arp-scan/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, network, networking, scanner.

## Combined YAML source

View the package source record on GitHub. [combined/asnmap.yml](https://github.com/automic-vault/db/blob/main/combined/asnmap.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
