# ASN Lookup Tool and Traceroute Server

> Bash tool for AS, prefix, BGP, RPKI, geolocation and IP reputation lookups, with Shodan recon and a web traceroute server.

Source: https://osinttools.io/tools/asn/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** IP address, Domain, URL
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source (MIT).)
- **Footprint:** depends on the modules you run
- **Account required:** no
- **API:** yes
- **Platforms:** Bash CLI · Docker · Web server
- **Website:** https://github.com/nitefood/asn
- **GitHub:** nitefood/asn, 1,955 stars · Shell · MIT · last commit 2026-10-02
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

asn is a Bash script that looks up autonomous system details for an AS number, IP, prefix, hostname or URL: organisation, peers, announced prefixes, BGP incidents, RPKI validity, abuse contacts, geolocation and reputation. It can also trace the AS path to a host with mtr.

Incident responders and network investigators use it for quick context on unfamiliar IPs, bulk geolocation and organisation searches. Its Shodan mode summarises open ports and known vulnerabilities without sending packets to the target, and it can run as a self-hosted web or JSON lookup server.

Footprint is depends: whether the target is contacted depends on which modules or transforms you run. No account is needed. There is an API.

## Features

- AS, prefix and organisation lookups
- RPKI validity and BGP hijack checks
- AS path traceroute
- Shodan-based recon mode
- Bulk geolocation
- JSON output and lookup API server

## Pros

- Rich network context in one command
- Runs on many Linux distributions, macOS and in Docker
- Optional tokens improve results but are not required
- Can be shared as a browser-accessible server

## Cons

- Traceroute mode sends traffic toward the target; lookup and Shodan modes do not
- Several features depend on third-party APIs and their rate limits

## When to use it

- Use it when you need to know who runs an IP range and how it is routed.
- Use it when triaging many IPs in an incident and you want geolocation and reputation in bulk.

## Quick start

Terminal · Bash 4.2+:

```
curl "https://raw.githubusercontent.com/nitefood/asn/master/asn" > /usr/bin/asn && chmod 0755 /usr/bin/asn
asn 1.1.1.1
```

## Alternatives

- [Argus](https://osinttools.io/tools/argus/): Interactive Python console with over a hundred recon modules for domains, networks and web applications. (Open source · Domain, IP address, URL · depends · 4,363 GitHub stars)
- [URLScan.io](https://osinttools.io/tools/urlscan/): Sandbox that loads a URL in a browser and records requests, IPs, domains, screenshots and page content. (Freemium · URL, Domain, IP address · depends)
- [httpx](https://osinttools.io/tools/httpx/): Go command-line HTTP toolkit from ProjectDiscovery that probes hosts for status, titles, TLS details and technologies. (Open source · Domain, IP address, URL · active · 10,653 GitHub stars)
- [Shodan](https://osinttools.io/tools/shodan/): Search engine for internet-connected hosts, indexing open ports, service banners and TLS certificates by IP. (Freemium · IP address, Domain · passive)
- [BuiltWith](https://osinttools.io/tools/builtwith/): Website technology profiler showing the frameworks, analytics, ad and hosting services a site uses, with history. (Freemium · Domain, URL · passive)
- [Censys](https://osinttools.io/tools/censys/): Internet-wide scan data for hosts, services and certificates, searchable through the Censys Platform. (Freemium · IP address, Domain · passive)

All alternatives to ASN Lookup Tool and Traceroute Server in one table: https://osinttools.io/tools/asn/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
