macOS
brew install asnlocal Homebrew formula metadata
安装
brew install asnlocal Homebrew formula metadata
sudo apk add asnAlpine Linux edge package indexes · asn · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#asnnixpkgs package indexes · pkgs/by-name/as/asn/package.nix · 来源: api.github.com
概览
Organization lookup and server tool (ASN / IPv4 / IPv6 / Prefix / AS Path)
历史
asn is a Bash-based network lookup, recon, and traceroute server tool centered on autonomous systems, prefixes, RPKI validity, BGP statistics, geolocation, reputation, and IP/ASN investigation workflows.
The nitefood/asn repository was created in July 2020. The README describes a single command-line tool that can also run as a web traceroute server and as a JSON-producing lookup API endpoint.
The project grew beyond simple ASN lookup into a collector of network intelligence APIs and command-line workflows. Its README lists Team Cymru, Prefix Whois, PeeringDB, CAIDA ASRank, RIPEStat, RIPE IPmap, Shodan, Cloudflare Radar, GreyNoise, NVD, IPQualityScore, ipinfo.io, and other data providers as supported inputs.
asn has unusually broad packaging for a shell network tool. The README displays OS support for Debian, Ubuntu, Kali, CentOS, Red Hat, Rocky Linux, Fedora, Arch, Manjaro, Alpine, openSUSE, FreeBSD, Nix, macOS, Windows environments, and Raspberry Pi, and the input package facts list apk, Homebrew, Debian, Nix, and Ubuntu packages.
GitHub metadata shows roughly two thousand stars and active releases through 2026. Homebrew analytics show continuing installs, while the README's Repology badge points at multi-repository packaging status.
The common workflow is to run `asn` against an IP address, hostname, prefix, AS number, URL, or organization name and inspect enriched network output. The tool can do AS path tracing with mtr, RPKI checks, organization searches, Shodan recon, country CIDR mapping, bulk geolocation, and JSON output for pipelines.
Configuration is deliberately Unix-like: defaults can be overridden with `$HOME/.asnrc`, and optional API tokens are read from `$HOME/.asn/` for user mode or `/etc/asn/` for server mode. Docker and Google Cloud Shell workflows are documented for users who do not want a local install.
asn is significant because it packages a messy incident-response habit, asking several network-intelligence services about an address or ASN, into a scriptable CLI. For package maintainers, it is also an instructive case: a Bash tool with many external command and API integrations, distro packages, container usage, and optional credential files.
It occupies the same practical shelf as whois, dig, mtr, bgp.tools shortcuts, and OSINT helper scripts, but makes the package-manager version matter because release updates can add or repair upstream data-provider integrations.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.asnrcCredential-bearing paths to review before unattended agent runs.
~/.asn/ipinfo_token/etc/asn/ipinfo_token~/.asn/iqs_token/etc/asn/iqs_token~/.asn/cloudflare_token/etc/asn/cloudflare_token可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
asn | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/nitefood/asn
安装元数据
| 软件包键 | brew:asn |
|---|---|
| 版本 | 0.81.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/asn |
| 主页 | https://github.com/nitefood/asn |
| 仓库 | https://github.com/nitefood/asn |
| 上游文档 | https://github.com/nitefood/asn#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/nitefood/asn/archive/refs/tags/v0.81.0.tar.gz |
| 依赖 | aha, bash, coreutils, grepcidr, ipcalc, mtr, nmap |
| macOS 提供的库 | jq, whois |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | asn |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
asn 0.78.0-1
network OSINT CLI ASN, RPKI, BGP, Geo, Recon, Trace
https://github.com/nitefood/asn/
sudo apt install asnasn
nix profile install nixpkgs#asnasn 0.75.3-1.1
network OSINT CLI ASN, RPKI, BGP, Geo, Recon, Trace
https://github.com/nitefood/asn/
sudo apt install asnasn 0.81.0-r0
ASN Lookup Tool and Traceroute Server
https://github.com/nitefood/asn/
sudo apk add asn来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.