Web Pentest Environment Setup & Verification
Use this skill when the user asks to setup, audit, or prepare their environment for web penetration testing ("setupsec", "setup web pentest", "prep environment", "check tools").
Phase 1: Environment & PATH Verification
Before checking tools, ensure PATH includes user-installed binary directories in WSL/Linux:
ash export PATH=$PATH:$HOME/go/bin:$HOME/.local/bin:/usr/local/bin:/usr/bin
- WSL Environment Check:
- On Windows, check if WSL is enabled and list installed distros:
wsl -l -v - Detect default distro (e.g.
kali-linux). - User context: Check user home directory (/home/youruser/go/bin).
- On Windows, check if WSL is enabled and list installed distros:
Phase 2: Tool Inventory & Setup State Check
Perform check with PATH updated to include $HOME/go/bin.
Early Completion Guard (Do Not Re-setup):
- If ALL required tools are verified as present:
- Immediately report: [✓] All required web security tools are already installed and configured. Setup is complete! No further installation required.
- DO NOT execute any install/apt/go commands.
- End the setup process directly.
Phase 3: Tool Verification Matrix
| Tool | Binary Name | Verified Location | Skip Condition |
|---|---|---|---|
| Nmap | |||
| map | /usr/bin/nmap | Skipped if | |
| map found | |||
| Sqlmap | sqlmap | /usr/bin/sqlmap | Skipped if sqlmap found |
| FFUF | fuf | ~/go/bin/ffuf | Skipped if fuf found |
| Nuclei | |||
| uclei | ~/go/bin/nuclei | Skipped if | |
| uclei found | |||
| HTTPX | httpx | ~/go/bin/httpx | Skipped if httpx found |
| Subfinder | subfinder | ~/go/bin/subfinder | Skipped if subfinder found |
| Katana | katana | ~/go/bin/katana | Skipped if katana found |
| Waybackurls | waybackurls | ~/go/bin/waybackurls | Skipped if waybackurls found |
| GAU | gau | ~/go/bin/gau | Skipped if gau found |
| Anew | new | ~/go/bin/anew | Skipped if new found |
| GF | gf | ~/go/bin/gf | Skipped if gf found |
| Qsreplace | qsreplace | ~/go/bin/qsreplace | Skipped if qsreplace found |
| Unfurl | unfurl | ~/go/bin/unfurl | Skipped if unfurl found |
| Chisel | chisel | ~/go/bin/chisel | Skipped if chisel found |
| Kerbrute | kerbrute | ~/go/bin/kerbrute | Skipped if kerbrute found |
Phase 4: Setup Workflow Execution Rules
-
Idempotency Guard:
- Add $HOME/go/bin and $HOME/.local/bin to PATH before testing.
- NEVER reinstall a tool that is already installed.
- If ALL tools pass verification, state that setup is complete and stop.
-
Nuclei Templates Check:
- If uclei is installed, run uclei -update-templates only if templates haven't been updated recently.
-
Completion Summary:
- Output the status matrix showing all tools are up-to-date and ready for pentesting.


