Installation
asnmap can be installed in several ways, depending on your preference and environment. A successful installation requires Go version 1.21 or later if building from source.
From Binary
The recommended way to install asnmap is to download the pre-compiled binary for your operating system and architecture. These are available on the GitHub Releases page.
- Navigate to the latest release.
- Download the archive corresponding to your system (e.g.,
asnmap_1.1.1_linux_amd64.zip). - Unzip the archive.
- Move the
asnmapbinary to a directory in your system'sPATH, such as/usr/local/bin/.
# Example for Linux AMD64
mv asnmap /usr/local/bin/
From Source
If you have Go installed, you can build and install asnmap directly from the source code.
go install -v github.com/projectdiscovery/asnmap/cmd/asnmap@latest
The binary will be placed in your $GOPATH/bin directory. Ensure this directory is in your system's PATH.
Using Docker
For a containerized environment, you can use the official asnmap Docker image available on Docker Hub. This method isolates the tool and its dependencies.
-
Pull the latest image:
docker pull projectdiscovery/asnmap:latest -
Run
asnmapvia Docker:docker run projectdiscovery/asnmap -h
For more details on using the Docker image, see the Deployment with Docker page.
Verifying the Installation
After installation, you can verify that asnmap is working correctly by checking its version:
asnmap -version
This command should display the current version of the tool.
Next, you should configure your API key. See the Authentication guide for details.