# Pentesting Toolkit The toolkit (`config/pentest-tools.zsh`, ~3.4k lines) is **lazy-loaded**: boot stays ~185ms; the first time you run any toolkit command it loads transparently (thin wrappers in `config/pentesting.zsh` dispatch on first call). `pentest` or `htb` force-load and print status. Regenerate the recognized command set after editing the toolkit: `scripts/gen-pentest-cmds.sh`. > Engagement data (creds/flags/findings/notes) is tracked in the SQLite DB — see > [DATABASE.md](DATABASE.md). The old file-based `creds`/`flag`/`note` were > removed in favor of it. ## Target & recon | Command | Purpose | |---|---| | `t ` | set `$LHOST`/target for scan helpers | | `myip` | your IP (VPN tun first, then LAN) | | `qscan ` | quick TCP service scan (nmap) | | `fscan ` | full port sweep then detailed scan | | `vscan ` / `uscan ` | vuln scan / UDP top-20 | | `pingsweep ` · `knock ` | host discovery / port knock | ### RustScan family (`rs*`, via Docker) `rsquick` `rs100` `rs1000` `rsall` (port breadth) · `rsstealth` `rssyn` `rsudp*` · service profiles `rsweb` `rssmb` `rswin` `rsdb` · `rsctf*` `rsrecon` `rssave*` · `rshelp` for the full list (73 wrappers). ## Web enumeration `webenum ` (whatweb/headers/nikto/gobuster chain) · `fuzz` `subfuzz` `vhost-fuzz` (calibrated `ffufx`) · `ferox ` (recursive) · `enum-web `. `ffufx` provides named `--vhost`, `--directory-scan`, `--parameter-scan`, `--custom-scan`, and `--request-scan` modes. It measures soft-404/vhost baseline sizes and prints the exact raw `curl` and `ffuf` commands. Run `ffufx-cheat` for recipes. ## Attacking Enterprise Networks wrappers `aenx` is the transparent suite entry point; category commands are `reconx`, `webx`, `servicex`, `pivotx`, `smbx`, `adx`, `payloadx`, and `winx`. Every executable action prints a shell-escaped `[raw]` command immediately before it runs. Add `--dry-run` to print without executing, use `aenx tools` for the local tool inventory, and run `aenx-cheat` for the recipe card. Each category has a focused card: `reconx-cheat`, `webx-cheat`, `servicex-cheat`, `pivotx-cheat`, `smbx-cheat`, `adx-cheat`, `payloadx-cheat`, and `winx-cheat`. ## Master wrapper cheat sheet `pentest-cheat` displays every transparent wrapper action beside its underlying tool and purpose. Use `pentest-cheat overview` for the compact map, select a wrapper such as `pentest-cheat webx` or `pentest-cheat adx`, or use `pentest-cheat --search TERM` to locate an action. ## AD / Windows `nxc-smb|ldap|winrm|mssql` (NetExec) · `impacket-{psexec,smbexec,wmiexec,secrets,getnp,getspn,gettgt,getst,lookup}` · `bh-collect` / `bhce-collect` (BloodHound) · `e4l` (enum4linux-ng) · `smb-shares` `kb-users` `adcs-find` (certipy) · `asrep` `kerberoast` `dcsync` `pth` `ptt`. ## Cracking `hc-rock` (hashcat + rockyou) · `hc-show` · `brute-ssh` `brute-web` (hydra) · `hcrack` / `hc` · `john`. ## Listeners, shells, transfer `listen ` (nc) · `revshell ` (prints all one-liners) · `serve [port] [dir]` (HTTP file server) · `upload-cmd ` (wget/curl/certutil lines) · `shell-upgrade` `shell-stable` (TTY upgrade) · `payload-linux` `payload-win` `msfvenom-rev`. ## C2 & pivoting `sliver-*` (install/server/client/beacon/session/pivot/post) · `havoc-*` (server/profile/payload/post) · `pivot-chisel` `pivot-ssh` `ligolo-setup` `socks-setup` `pc`. ## HTB box / lab / Docker (macOS) `htb-box ` `box ` `lab ` (dir mgmt) · `htb-up` / `htb-down` (Docker-Kali env) · `htb-vpn` / `htb-vpn-status` / `htb-proxy` (VPN through container; SOCKS5 on `127.0.0.1:1080`) · `pentest-status` · `pentest-help` · `enum-checklist` · `auto-enum` · `htb-wordlists`. macOS Docker-Kali helpers live in `config/pentest-mac.zsh` (`htb-setup-mac`, `check-tools-mac`, `htb-start`, `htb-bloodhound`, `htb-mitmproxy`). ## tmux `tmux-htb [box]` or `prefix P` builds the 5-window pentest session — see [TMUX.md](TMUX.md).