# ⚔ Pentest Environment — Overview Your Kali attack stack, driven from macOS. Native tools where they run (nxc, impacket, dalfox…); the **kali-htb Docker container** for the Linux-only bits (`htb-exec` drops you inside). Set a target once with **`t `** — most commands default to it (`$TARGET`). | Area | Reach for | Cheat | |------|-----------|-------| | Lab & target | `t ` · `htb-up/down` · `htb-vpn` · `hosts-box` · `box ` | `cheat htb` | | Recon | `rustscan`/`rs*` · `nmap` · `auto-enum` · `*-enum` | `cheat recon` | | Web | `enum-web` · `fuzz`/`ferox` · `sqli-test` · `lfi-test` | `cheat web` | | XSS | `xss-scan ` — harvest→gf→Gxss→dalfox | `cheat xss-scan` | | SMB/AD sweep | `nxc` · `nxc-smb/ldap/winrm` · `e4l` · `smb-shares` | `cheat nxc` | | Impacket | `impacket-secrets` · `-wmiexec` · `-getspn` … | `cheat impacket` | | AD attacks | `kerberoast` · `asrep` · `dcsync` · `adcs-find` · `pth`/`ptt` | `cheat ad` | | BloodHound | `bhce-collect` · CE GUI · starter Cypher | `cheat bloodhound` | | Cracking | `hc`/`hc-rock` · `hcrack` · `john` · `brute-ssh` | `cheat cracking` | | Pivoting | `ligolo-setup` · `pivot-chisel` · `pc` (proxychains) | `cheat pivoting` | | Shells | `listen` · `revshell` · `serve` · `shell-upgrade` · `gtfo` | `cheat shells` | | C2 | `sliver-*` · `havoc-*` | `cheat c2` | **The core loop:** 1. **`t 10.10.11.x`** — set target · **`hosts-box `** — add to /etc/hosts. 2. **`rustscan`** / **`auto-enum`** — find open ports & services (`cheat recon`). 3. Per service: `cheat web`, `cheat nxc`, `ftp-enum`/`smtp-enum`/`snmp-enum`. 4. Foothold → **`shell-upgrade`** to a stable pty (`cheat shells`). 5. Domain? → **`bhce-collect`** + **`cheat ad`** for the path to DA. 6. Loot hashes → **`cheat cracking`**. Need to reach another subnet → **`cheat pivoting`**. **Habits that save time:** - Set `$TARGET` once (`t `) — stop pasting the IP into every command. - `pentest-help` — the full command reference · `pentest-status` — env/target state. - Everything writes under `$HTB_BOXES/scans/` — greppable notes per box. Browse all guides: `cheat menu` · Full command list: `pentest-help`