NAME
ronin-db-asn - Queries and updates ASNs
SYNOPSIS
ronin-db asn [options]
DESCRIPTION
Queries or updates Autonomous System Numbers (ASNs) in the database.
OPTIONS
--dbNAME- The database name to connect to. Defaults to
defaultif not given. --db-uriURI- The explicit database URI to connect to.
- sqlite3:
sqlite3:relative/path.dborsqlite3:///absolute/path.db - mysql:
mysql://user:password@host/database - postgres:
postgres://user:password@host/database
- sqlite3:
--db-filePATH- The sqlite3 database file to use.
-v,--verbose- Enables verbose output
-n,--numberINT- Searches for all ASN records with the AS number.
-C,--country-codeXX|None|Unknown- Searches for all ASN records with the country code.
-N,--nameNAME- Searches for all ASN records with the matching name.
--namedNAME- Searches for all ASN records containing the name.
-I,--ipIP- Queries the ASN record for the IP.
-4,--ipv4- Filter ASN records for only IPv4 ranges.
-6,--ipv6- Filter ASN records for only IPv6 ranges.
-u,--update- Updates the ASN records.
-U,--urlURI- Overrides the default ASN list URL.
Defaults to
https://iptoasn.com/data/ip2asn-combined.tsv.gzif not given. -f,--fileFILE- Overrides the default ASN list file.
Defaults to
~/.local/share/ronin/ronin-support/ip2asn-combined.tsv.gzif not given. -h,--help- Print help information.
ENVIRONMENT
- HOME
- Alternate location for the user’s home directory.
- XDG_CONFIG_HOME
- Alternate location for the
~/.configdirectory. - XDG_DATA_HOME
- Alternate location for the
~/.local/sharedirectory.
FILES
~/.local/share/ronin-db/database.sqlite3- The default sqlite3 database file.
~/.config/ronin-db/database.yml- Optional database configuration.
AUTHOR
Postmodern postmodern.mod3@gmail.com