This PowerShell script automates the installation and setup of a comprehensive penetration testing environment on Windows, tailored for internal assessments, O365/Azure AD testing, post-exploitation, and more.
- Installs popular tools via Chocolatey
- Downloads latest GitHub releases for offensive and recon tooling
- Extracts tools to a centralized folder:
~/PentestTools/bin - Automatically adds each tool’s path to the user’s
PATHenvironment variable - Skips tools that are already installed or downloaded
- Windows 10 or higher
- Administrator privileges
- Chocolatey (auto-installs if missing)
- PowerShell 5+ or PowerShell Core
~/PentestTools/
├── bin/ → Extracted tools, each in its own folder
├── zips/ → Downloaded GitHub release archives
└── Install-PentestToolkit.ps1
All folders inside bin/ are automatically added to your user PATH.
- Run PowerShell as Administrator
- Execute the script:
Set-ExecutionPolicy Bypass -Scope Process -Force
.\Install-PentestToolkit.ps1💡 On first use, the script will install Chocolatey if not already installed.
- Restart your PowerShell window to use CLI tools globally.
- Add or remove tools from the
$chocoPackagesor$githubToolsarrays in the script. - You can also add support for Git-based clones (e.g., PowerView) or precompiled binaries.
This toolkit includes dual-use security tools intended for authorized, ethical penetration testing and security research. Do not use without explicit permission.
MIT License — use at your own risk.
Need help adding more tools or modifying the script for your organization? Open an issue or request a feature.