otinstaller · Networks and hosts
Install asnmap on Windows, macOS, or Linux in one command
asnmap turns an organisation, a domain, an IP address, or an AS number into the network ranges registered to it, ready to hand to a port scanner. It needs a free ProjectDiscovery Cloud API key.
asnmap in three lines
curl -fsSL https://otinstaller.com/install.sh | sh
ot install asnmap
ot run asnmap -d example.comOn Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.
Runs projectdiscovery/asnmap (MIT, ★ 1.2k, otinstaller 0.3.0). otinstaller installs it as a release binary, pinned to version 1.2.0; it does not change or audit the tool itself.
What asnmap is for
- Listing the address ranges behind a company before a scan you are authorised to run.
- Expanding one AS number into its ranges.
- Checking which network an address belongs to.
Run asnmap with ot
ot run asnmap passes everything after the tool's name to asnmap unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.
- List the network ranges behind a domain.
ot run asnmap -d example.com- List the ranges registered to an organisation.
ot run asnmap -org GOOGLE -silent- Expand one AS number into its ranges.
ot run asnmap -a AS15169
Keys it reads: PDCP_API_KEY. Store each with ot keys set NAME.
Where the results go
ot run saves nothing itself: asnmap's output goes to your terminal, a pipe, or wherever its own output option writes it. Results can hold personal data, so store and share them accordingly.
Before you run it
- Returns nothing without PDCP_API_KEY. Store it once with ot keys set PDCP_API_KEY.
Update, remove, inspect
ot info asnmap # details, and how it installs on this system
ot update asnmap # move to the version the registry pins
ot update asnmap --latest # take the newest upstream release instead
ot remove asnmap # remove itFull reference: the otinstaller docs, asnmap on otinstaller.com, and the tool's own project page.
Pairs with
FAQ
asnmap with otinstaller, answered
How do I install asnmap on Windows, macOS, or Linux?
Install ot once with the one-line script on the otinstaller page, then run ot install asnmap. Ot downloads the project's release binary for your system and checks its SHA-256 hash before it installs anything, at version 1.2.0. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.
How do I run asnmap through ot?
With ot run asnmap followed by asnmap's own arguments, for example: ot run asnmap -d example.com. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.
Is asnmap part of ot scan?
No. ot scan takes a username, an email address, a domain, or a phone number and runs the tools the registry assigns to that kind of target. Run asnmap on its own with ot run asnmap.
Does asnmap need an API key or a login?
It reads PDCP_API_KEY. Store each one with ot keys set NAME, which asks for the value without showing it; ot passes a key only to the tools that declare it. Returns nothing without PDCP_API_KEY. Store it once with ot keys set PDCP_API_KEY.
Does asnmap send traffic to the target?
The registry lists asnmap as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".