CLI Flag Reference
This page provides a comprehensive reference for all command-line flags available in asnmap. The flags are grouped by their function: Input, Configurations, Update, and Output.
Usage:
./asnmap [flags]
INPUT
These flags are used to specify the targets for the ASN lookup.
| Flag | Alias | Description | Example |
|---|---|---|---|
--asn |
-a |
Target ASN to look up. Can be a single value, comma-separated, or a file path. | -a AS5650 |
--ip |
-i |
Target IP address to look up. Supports IPv4 and IPv6. | -i 100.19.12.21,2a10:ad40:: |
--domain |
-d |
Target domain to look up. | -d google.com,facebook.com |
--org |
Target organization to look up. | -org GOOGLE |
|
--file |
-f |
Path to a file containing targets to look up (one per line). | -f targets.txt |
CONFIGURATIONS
These flags allow you to configure the behavior of asnmap.
| Flag | Alias | Description | Example |
|---|---|---|---|
--auth |
Configure ProjectDiscovery Cloud Platform (PDCP) API key. Can be interactive (-auth), or direct key (-auth KEY). |
-auth or -auth YOUR_KEY_HERE |
|
--config |
Path to the asnmap configuration file. |
-config /path/to/config.yaml |
|
--resolvers |
-r |
List of DNS resolvers to use for domain lookups. | -r 8.8.8.8,1.1.1.1 |
--proxy |
-p |
List of proxies to use (HTTP/S, SOCKS5). | -p http://127.0.0.1:8080 |
UPDATE
These flags are related to keeping asnmap up-to-date.
| Flag | Alias | Description |
|---|---|---|
--update |
-up |
Update asnmap to the latest version. |
--disable-update-check |
-duc |
Disable the automatic update check on startup. |
OUTPUT
These flags control the format and destination of the output.
| Flag | Alias | Description | Example |
|---|---|---|---|
--output |
-o |
File to write the output to. | -o results.txt |
--json |
-j |
Display output in JSON format. | -j |
--csv |
-c |
Display output in CSV format (pipe-delimited). | -c |
--v6 |
Display IPv6 CIDR ranges in the default CLI output. | -v6 |
|
--verbose |
-v |
Display verbose output with more details. | -v |
--silent |
Display silent output (only results, no banner or info). | -silent |
|
--version |
Show the current version of the project. | -version |