Provided by: asn_0.75.3-1.1_all
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
-t Enable AS path trace to the TARGET (this is the default behavior) -n Disable tracing the AS path to the TARGET -d Output detailed hop info during the AS path trace to the TARGET -a Lookup AS names and numbers matching TARGET -u Inspect BGP updates and ASPATHs for the TARGET address/prefix and identify possible transit/upstream autonomous systems -c Lookup all IPv4/v6 CIDR blocks allocated to the TARGET country -g Geolocate all IPv4/v6 addresses passed as TARGET -s Query Shodan's InternetDB for CVE/CPE/Tags/Ports/Hostnames data about TARGET -o Force TARGET to be treated as an Organization Name -m Disable colored output -v Enable debug messages -j Set output to compact JSON mode (ideal for machine parsing) -J Set output to pretty-printed JSON mode -h Show this help screen -l 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