⚔ 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 <ip> — most
commands default to it ($TARGET).
| Area | Reach for | Cheat |
|---|---|---|
| Lab & target | t <ip> · htb-up/down · htb-vpn · hosts-box · box <n> |
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 <url> — 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:
t 10.10.11.x— set target ·hosts-box <name>— add to /etc/hosts.rustscan/auto-enum— find open ports & services (cheat recon).- Per service:
cheat web,cheat nxc,ftp-enum/smtp-enum/snmp-enum. - Foothold →
shell-upgradeto a stable pty (cheat shells). - Domain? →
bhce-collect+cheat adfor the path to DA. - Loot hashes →
cheat cracking. Need to reach another subnet →cheat pivoting.
Habits that save time:
- Set
$TARGETonce (t <ip>) — 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