Overview

asnmap

asnmap is a command-line tool and Go library designed for efficiently mapping the network ranges of an organization using Autonomous System Number (ASN) information. It allows you to discover the IP address blocks (CIDRs) associated with a given ASN, IP address, domain, or organization name.

This tool is invaluable for security researchers, penetration testers, and network administrators who need to understand an organization's network footprint for reconnaissance, threat hunting, or asset management.

Key Features

Based on the project's source code and documentation, here are the core features of asnmap:

  • Multi-Input Support: Query ASN data using various input types:
    • ASN: e.g., AS14421
    • IP Address: e.g., 93.184.216.34
    • Domain Name: e.g., google.com
    • Organization Name: e.g., GOOGLE
  • Flexible Input Methods: Provide targets via command-line flags, from a file, or piped directly through standard input (stdin).
  • Versatile Output Formats: Get the data you need in the format you prefer:
    • CIDR (Default): A clean list of IP address ranges.
    • JSON: Rich, structured data for easy parsing and integration with other tools.
    • CSV: Tabular data suitable for spreadsheets and data analysis.
  • IPv6 Support: Option to display IPv6 CIDR ranges alongside IPv4.
  • Library Usage: Can be directly integrated into your own Go applications as a library.
  • Proxy Support: Route requests through HTTP/S or SOCKS5 proxies.

Getting Started

Ready to map some networks? Here’s how you can get started quickly:

  1. Installation: Get asnmap installed on your system.
  2. Authentication: Configure your free ProjectDiscovery Cloud Platform (PDCP) API key.
  3. Quick Start Guide: Run your first commands and see asnmap in action.