Sha256: 249ed2c82f64d53f62c3e5aee9be21c2c0488fcdd8f8662b7898a68b4a4622ab

Contents?: true

Size: 1.98 KB

Versions: 4

Compression:

Stored size: 1.98 KB

Contents

# ronin-asn 1 "May 2022" Ronin "User Manuals"

## SYNOPSIS

`ronin asn` [*options*] [`-v` \| `--enum-ips`] {`-n`,`--number` *NUMBER* \| `-c`,`--country` *COUNTRY* \| `-N`,`--name` *NAME* \| `-I`,`--ip` *IP*}

## DESCRIPTION

Queries ASN information for the given *IP* or searches for the ASN records for
the given *NUMBER*, *NAME*, or *COUNTRY* code.

## OPTIONS

`-v`, `--verbose`
  Prints multi-line human readable output.

`-U`, `--ur`l *URI*
  Overrides the default ASN list URL. Defaults to
  `https://iptoasn.com/data/ip2asn-combined.tsv.gz`.

`-f`, `--file` *FILE*
  Overrides the default ASN list file. Defaults to
  `~/.cache/ronin/ronin-support/ip2asn-combined.tsv.gz`.

`-u`, `--update`
  Updates the ASN list file.

`-n`, `--number` *NUM*\|AS*NUM*
  Searches for all ASN records with the AS number.

`-C`, `--country-code` *XX*|`None`|`Uknown`
  Searches for all ASN records with the country code.

`-N`, `--name` *NAME*
  Searches for all ASN records with the matching name.

`-I`, `--ip` *IP*
  Queries the ASN record for the IP.

`-4`, `--ipv4`
  Filters ASN records for only IPv4 ranges.

`-6`, `--ipv6`
  Filter ASN records for only IPv6 ranges.

`-E`, `--enum-ips`
  Enumerate over the IPs within the ASN ranges.

`-h`, `--help`
  Print help information

## EXAMPLES

Print verbose output for all ASN records for `AS15133`:

        ronin asn -v -n 15133

Print verbose output for the ASN record for the IP address `93.184.216.34`:

        ronin asn -v -I 93.184.216.34

Prints all ASN records for the given country code:

        ronin asn -C US

Prints all ASN records for the given ISP:

        ronin asn -N EDGECAST

Enumerate over the IP addresses in the IP range for `AS15133`:

        ronin asn --enum-ips -n 15133

Enumerate over all IP addresses for all ASN records belonging to the given ISP:

        ronin asn --enum-ips -N EDGECAST

## FILES

`~/.cache/ronin/ronin-support/ip2asn-combined.tsv.gz`
  The location of the downloaded ASN list.

## AUTHOR

Postmodern <postmodern.mod3@gmail.com>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ronin-2.0.0.beta4 man/ronin-asn.1.md
ronin-2.0.0.beta3 man/ronin-asn.1.md
ronin-2.0.0.beta2 man/ronin-asn.1.md
ronin-2.0.0.beta1 man/ronin-asn.1.md