build the image
docker buildx build --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --tag nechry/pth-toolkit:latest .
push to docker hub
docker push nechry/pth-toolkit:latest
This repository contains a set of tools for performing pass-the-hash attacks using Docker.
The toolkit includes the following tools:
- pth-curl
- pth-net
- pth-rpcclient
- pth-smbclient
- pth-smbget
- pth-sqsh
- pth-winexe
- pth-wmic
- pth-wmis
To use the pth-toolkit
, you can run the following command:
pth-toolkit() { docker run --rm -it --network host nechry/pth-toolkit:latest "$@"; }
the network is configured in host mode, this option makes the Docker container use the host’s network stack directly, rather than an isolated Docker network. Useful for direct access to interfaces like tun0 for usage with a VPN.
Example usage:
pth-toolkit pth-net rpc password --help