Updated Jul 14, 2026

Network

Turn an org, ASN, or IP into owned CIDR ranges

Map an organization's network ranges from ASN data.

Agent

overview

What asnmap does

asnmap opens infrastructure mapping: resolve a company, ASN, domain, or IP to the CIDR blocks that autonomous system owns before any host expansion.

Use it when DNS alone understates scope and you need the address space behind a name or a single observed IP.

Trickest provides asnmap as a managed Network node. Feed -org, -asn, -domain, -ip, or -file; take FILE and FOLDER ranges into mapcidr, then a port scanner.

source github.com/projectdiscovery/asnmap

use cases

Where asnmap fits

Scope an organization's address space

Look up a company by name or ASN to get every CIDR it owns, then treat those ranges as the in-scope boundary for the rest of the engagement.

Pivot from a domain to its network

Resolve a domain to its ASN and ranges to find broader infrastructure behind a single site, including siblings that share the same address space.

Feed a CIDR-to-host scanning pipeline

Emit -json ranges and hand them to mapcidr and a port scanner so probing runs against owned IP space, not only published hostnames.

Resolve targets in bulk

Pass -file with organizations, ASNs, or domains to map many footprints in one run and write the combined ranges for downstream nodes.

reference

asnmap inputs and flags

15 inputs
NameTypeFlagDescription
orgSTRING-orgTarget organization to look up (e.g. EXAMPLE).
asnSTRING-asnTarget ASN to look up (e.g. AS64500).
domainSTRING-domainTarget domain to look up (e.g. example.com).
ipSTRING-ipTarget IP to look up (e.g. 198.51.100.10).
fileFILE-fileFile of targets to look up in bulk.
jsonBOOLEAN-jsonDisplay output in JSON format.
csvBOOLEAN-csvDisplay output in CSV format.
v6BOOLEAN-v6Include IPv6 CIDR ranges in the output.

Showing key inputs. asnmap exposes 15 inputs in total.

Full flag reference (15 inputs)
NameTypeFlagDescription
orgSTRING-orgtarget organization to look up (e.g. EXAMPLE)
asnSTRING-asntarget ASN to look up (e.g. AS64500)
domainSTRING-domaintarget domain to look up (e.g. example.com)
ipSTRING-iptarget IP to look up (e.g. 198.51.100.10)
fileFILE-filefile of targets to look up in bulk
jsonBOOLEAN-jsondisplay output in JSON format
csvBOOLEAN-csvdisplay output in CSV format
v6BOOLEAN-v6display IPv6 CIDR ranges in the output
silentBOOLEAN-silentdisplay silent output, ranges only with no banner
verboseBOOLEAN-verbosedisplay verbose output
proxySTRING-proxylist of proxies to use (comma separated)
proxy-fileFILE-proxyfile containing a list of proxies to use
resolversFILE-resolversfile with a list of resolvers to use
configFILE-configasnmap configuration file
disable-update-checkBOOLEAN-disable-update-checkdisable the automatic asnmap update check

example

Run asnmap

asnmap · command
# map every CIDR range an organization ownsasnmap -org EXAMPLE -silent
sample output
192.0.2.0/25192.0.2.128/25198.51.100.0/25198.51.100.128/25203.0.113.0/25203.0.113.128/26203.0.113.192/26

guidance

Choosing asnmap

Use asnmap when you need owned CIDR ranges from a company, ASN, domain, or IP before scanning. It maps address space only; follow with mapcidr and a port scanner. Prefer get-asn-prefixes when you already hold the AS number.

mapcidr

Expands and slices CIDR ranges. Run after asnmap to turn ranges into host lists.

amass-intel

Broader org intelligence including ASNs from passive OSINT. asnmap stays a focused ASN-to-CIDR lookup.

get-asn-prefixes

Pulls prefixes for an ASN. Prefer this lighter sibling when you already have the AS number.

faq

asnmap questions

An organization name (-org), an ASN (-asn), a domain (-domain), or a single IP (-ip). Each resolves to the autonomous system and its CIDR ranges. Pass -file to run a list of targets in one pass.

Run asnmap yourself

An organization name feeds asnmap, which maps its CIDR ranges and passes them to mapcidr, expanding them into a host-range output for scanning.

Facts on this page come from the live Trickest tool library.