Scroll to navigation

asn(1) ASN manual page asn(1)

NAME

asn - ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / ASPath / Organization / IP reputation lookup tool

SYNOPSIS

asn [OPTIONS] [TARGET]
asn [-v] -l [SERVER OPTIONS]

DESCRIPTION

asn is a tool for performing various network-related lookups including ASN, RPKI validity, BGP stats, IPv4v6, prefix, ASPath, organization, and IP reputation lookups.

OPTIONS

Enable AS path trace to the TARGET (this is the default behavior)
Disable tracing the AS path to the TARGET
Output detailed hop info during the AS path trace to the TARGET
Lookup AS names and numbers matching TARGET
Inspect BGP updates and ASPATHs for the TARGET address/prefix and identify possible transit/upstream autonomous systems
Lookup all IPv4/v6 CIDR blocks allocated to the TARGET country
Geolocate all IPv4/v6 addresses passed as TARGET
Query Shodan's InternetDB for CVE/CPE/Tags/Ports/Hostnames data about TARGET
Force TARGET to be treated as an Organization Name
Disable colored output
Enable debug messages
Set output to compact JSON mode (ideal for machine parsing)
Set output to pretty-printed JSON mode
Show this help screen
Launch the script in server mode. See SERVER OPTIONS below

TARGET

<AS Number> Lookup matching ASN and BGP announcements/neighbours data. <IPv4/IPv6> Lookup matching route(4/6), IP reputation and ASN data. <Prefix> Lookup matching ASN data. <host.name.tld> Lookup matching IP, route and ASN data. Supports multiple IPs - e.g. DNS RR. <URL> Extract hostname/IP from the URL and lookup relative data. Supports any protocol prefix, non-standard ports and prepended credentials. <Organization Name> Search by company name and lookup network ranges exported by (or related to) the company.

SERVER OPTIONS

BIND_ADDRESS IP address (v4/v6) to bind the listening server to (e.g. 'asn -l 0.0.0.0').
Default value: 127.0.0.1 (IPv4) or ::1 (IPv6). BIND_PORT TCP Port to bind the listening server to (e.g. 'asn -l 12345').
Default value: 49200.

EXAMPLES

asn -l (starts server on default IP(v4/v6):PORT)

AUTHOR

Marcos Rodrigues de Carvalho (aka oday) <marcosrcarvalho42@gmail.com>

SEE ALSO

The asn project homepage: https://github.com/nitefood/asn

February 2024 Version 0.75.3