asn-infrastructure-mapping

Map organization IP infrastructure via ASN lookup, CIDR expansion, and reverse DNS.

6|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Wyl-cmd/kxns-cli --skill asn-infrastructure-mapping-wyl-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asn-infrastructure-mapping
Source: https://github.com/Wyl-cmd/kxns-cli/tree/main/src/kxns_cli/skills/asn-infrastructure-mapping
Command: npx skills add https://github.com/Wyl-cmd/kxns-cli --skill asn-infrastructure-mapping-wyl-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Passive subdomain enumeration often reveals only a fraction of an organization's attack surface. This Skill pivots from a single domain to the organization's ASN, expands it into full CIDR ranges, and discovers every hostname and service across all owned IP blocks, including sibling TLDs and subsidiary infrastructure. ## Core Features & Use Cases - ASN to CIDR Expansion: Convert domains and ASNs into complete CIDR ranges using asnmap, whois, RADB, and metabigor. - Reverse DNS and Service Discovery: Resolve PTR records across IP blocks with dnsx and probe live web services on non-standard ports with httpx and naabu. - TLD and Subsidiary Expansion: Discover sibling domains on other top-level domains and enumerate sub-organizations from whois data. - Use Case: During an authorized penetration test, you find only three subdomains for a target. Use this Skill to expand the target's ASN into CIDR ranges, reverse-resolve hostnames, and uncover staging servers and forgotten services on non-standard ports. ## Quick Start Map the full IP infrastructure of target.com by resolving its ASN, expanding CIDR ranges, and running reverse DNS across all discovered IP blocks.

Frequently Asked Questions about asn-infrastructure-mapping

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all IP ranges owned by an organization?

Resolve the target domain to an IP, look up its ASN via whois or asnmap, then query RADB whois with the ASN to extract all announced CIDR ranges. Cross-reference results with bgp.he.net or metabigor for accuracy.

How to expand an ASN into CIDR ranges with asnmap?

Run asnmap with the -a flag followed by the ASN number, such as asnmap -a AS33905 -silent, to output all CIDR ranges announced by that autonomous system. Alternatively, query whois.radb.net with the origin ASN.

What tools are required for ASN infrastructure mapping?

The workflow requires whois, dnsx, mapcidr, httpx, and asnmap on a Linux system. Optional tools include metabigor, hakrevdns, naabu, tldbrute, and a Shodan API key for deeper OSINT.

Does reverse DNS work on large CIDR ranges?

Yes, dnsx with the -ptr flag resolves PTR records across entire CIDR blocks, and hakrevdns handles reverse DNS at scale. Filter results for target-related hostnames to reduce noise.

What are the limitations of ASN-based reconnaissance?

RADB whois data can be stale, so cross-reference multiple sources. Large cloud provider CIDRs like AWS must not be scanned wholesale, and subsidiary discovery may lead to out-of-scope targets requiring verification.