asnmap is a command line tool and Go library designed to quickly map network ranges belonging to organizations using Autonomous System Number (ASN) data. It allows users to convert different types of inputs (such as ASN numbers, IP addresses, domain names, or organization names) into their associated CIDR ranges. This capability makes it particularly useful for security researchers, penetration testers, and reconnaissance workflows that require identifying network infrastructure owned by a target organization. asnmap retrieves ASN-related data and returns structured results that can be easily integrated into automated pipelines. Output can be generated in multiple formats including plain text, JSON, and CSV, enabling flexible data processing and analysis. asnmap also supports reading input from standard input and piping its results directly into other command line tools for chained workflows.
Features
- Converts ASN numbers to CIDR network ranges
- Resolves organization names to associated IP ranges
- Supports domain, IP, ASN, or organization inputs
- Outputs results in JSON, CSV, or plain text formats
- Supports STDIN and command pipeline workflows
- Can be used as both a CLI tool and Go library