# HTB workstation workflow
## Health and VPN
```sh
pe doctor
pe vpn import ~/Downloads/lab.ovpn lab
pe vpn up lab # foreground; Ctrl-C disconnects
pe vpn status
pe vpn route "$IP"
```
## Target and workspace
```sh
newbox <name> <ip>
useip # exports IP and RHOST
htb-session # or prefix + P inside tmux
pe status
```
## Route-guarded recon
```sh
scan # -Pn -sCV, all output formats
fullscan # all TCP ports
udpquick # top 100 UDP ports (sudo)
webenum 'http://target/FUZZ' # sparse SecLists, DIRB fallback
```
## tmux
| Key | Action |
|---|---|
| `C-b` or `C-a` | prefix |
| `prefix + P` | active HTB workspace |
| `prefix + V` | VPN window |
| `prefix + |` / `-` | split pane |
| `prefix + h/j/k/l` | move between panes |
| `prefix + C-s` | toggle synchronized panes |
| copy mode `v`, `y` | select and copy via OSC52 |
Tmux persistence is intentionally disabled: resurrect-style files can retain
process command lines and secrets. Prefix sensitive shell commands with a
leading space so Zsh's history settings omit them as well.