Installation
There are multiple ways to install pdtm. Ensure you have Go 1.24.3 or later if building from source.
Method 1: Go Install (Recommended)
If you have Go installed and configured, you can install the latest version directly:
go install -v github.com/projectdiscovery/pdtm/cmd/pdtm@latest
Method 2: Binary Download
You can download the pre-built binaries from the Releases Page.
- Download the archive for your operating system and architecture.
- Extract the archive.
- Move the
pdtmbinary to a directory in your$PATH.
Method 3: Docker
You can run pdtm using Docker. This is useful for isolated environments.
# Build the image
docker build -t pdtm .
# Run the container
docker run --rm -it pdtm -h
Post-Installation Notes
By default, pdtm downloads tools to $HOME/.pdtm/go/bin. To make these tools accessible globally, you will need to add this path to your system's $PATH variable.
pdtm can handle this for you automatically using the -ip or -install-path flag during usage.