macOS
brew install asnlocal Homebrew formula metadata
brew
Organization lookup and server tool (ASN / IPv4 / IPv6 / Prefix / AS Path). Version 0.81.0 via Homebrew; verified from local package data.
install
brew install asnlocal Homebrew formula metadata
sudo apk add asnAlpine Linux edge package indexes · asn · source: dl-cdn.alpinelinux.org
sudo apt install asnDebian stable package indexes · asn · source: deb.debian.org
nix profile install nixpkgs#asnnixpkgs package indexes · pkgs/by-name/as/asn/package.nix · source: api.github.com
overview
Organization lookup and server tool (ASN / IPv4 / IPv6 / Prefix / AS Path)
history
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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_tokenexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
asn | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/nitefood/asn
install metadata
| Package key | brew:asn |
|---|---|
| Version | 0.81.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/asn |
| Homepage | https://github.com/nitefood/asn |
| Repository | https://github.com/nitefood/asn |
| Upstream docs | https://github.com/nitefood/asn#readme |
| License | MIT |
| Source archive | https://github.com/nitefood/asn/archive/refs/tags/v0.81.0.tar.gz |
| Dependencies | aha, bash, coreutils, grepcidr, ipcalc, mtr, nmap |
| Uses from macOS | jq, whois |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 asnsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.