OSINT tool
Install asnmap on Windows, macOS and Linux
Map an organisation, domain or IP to its ASNs and network ranges.
ot install asnmapasnmap answers the question of who owns a block of the internet. Give it an organisation, a domain, an IP address or an AS number and it returns the matching network ranges, ready to hand to a port scanner. It needs a free ProjectDiscovery Cloud API key.
How to install asnmap
ot install asnmapot downloads asnmap 1.2.0 as a prebuilt binary from github.com/projectdiscovery/asnmap and verifies its SHA-256 checksum before installing it. Nothing has to be compiled.
New to ot? It is one command to install, shown below.
How to use asnmap
Arguments after the tool's name go straight to asnmap, so its own documentation applies unchanged.
List the network ranges behind a domain.
ot run asnmap -d example.comList the ranges registered to an organisation.
ot run asnmap -org GOOGLE -silentExpand one AS number into its ranges.
ot run asnmap -a AS15169ot run asnmap --help lists every option. The project's own documentation is at github.com/projectdiscovery/asnmap.
An AI agent can run asnmap too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.
API keys for asnmap
asnmap reads these environment variables. Store one with ot keys set NAME and ot passes it to asnmap on every run.
| Variable | Purpose |
|---|---|
| PDCP_API_KEY | ProjectDiscovery Cloud Platform key |
asnmap licence, platforms and versions
| Project | https://github.com/projectdiscovery/asnmap |
| Licence | MIT |
| Runs on | Windows, macOS and Linux |
| Takes | domain, ip |
| Sends traffic to the target | No |
| Release binary | version 1.2.0 from github.com/projectdiscovery/asnmap, verified by SHA-256 |
Questions about asnmap
How do I install asnmap on Windows?
Open PowerShell and install ot with irm https://otinstaller.com/install.ps1 | iex. Then run ot install asnmap. ot fetches a pinned version of asnmap and keeps it under ~/.ot, apart from the rest of your system.
Is asnmap free?
Yes. asnmap is open source, released under the MIT licence. ot, which installs it, is free under the Apache 2.0 licence.
Do I need Go or a compiler to install asnmap?
No. ot downloads the prebuilt asnmap binary for your platform and checks its SHA-256 checksum. A mismatch installs nothing.
How do I update or remove asnmap?
ot update asnmap moves it to the version pinned in ot's registry, and ot update asnmap --latest to the newest upstream release. ot remove asnmap uninstalls it.
Install ot
curl -fsSL https://otinstaller.com/install.sh | shirm https://otinstaller.com/install.ps1 | iexRun it in PowerShell.
Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.