01 · Desktop
GNOME, Alacritty and the custom Rose Pine visual layer make the active lab obvious without changing how the underlying tools work.
Rose Pine Dawn // workstation 01
A practical map of the Ubuntu pentest environment: encrypted target data, private HTB workspaces, route-aware recon, a deterministic tmux cockpit, and a curated toolchain.
GNOME, Alacritty and the custom Rose Pine visual layer make the active lab obvious without changing how the underlying tools work.
Zsh exposes Go, Cargo and user Python tools, adds route-guarded helpers, and keeps the current target in the prompt.
htb-session creates a predictable tmux layout rooted in a private per-target directory. Runtime persistence is intentionally off.
pe stores flags, credentials, hosts and notes in a SQLCipher database, with protected state and integrity-checked backups.
The installer wires the environment into Zsh. Existing shells do not inherit it, so open Alacritty or run exec zsh.
pe doctor
command -v nmap ffuf nxc
printf '%s\n' "$PE_WORKROOT" "$PE_WORDLIST_ROOT"Missing x86-64 emulation on ARM64 is optional for most labs; the doctor reports it separately.
pe initA random database key is wrapped with GPG. Choose a strong passphrase and keep the key file with your backups.
pe vpn import ~/Downloads/lab.ovpn lab
pe vpn up labThe VPN stays in the foreground. Leave that terminal or tmux window open; Ctrl+C disconnects.
newbox keeper 10.10.11.227 htb
htb-sessionnewbox registers and activates the target, creates its private work tree, then enters it. htb-session builds or reattaches its tmux workspace.
| Phase | Action | Why it matters |
|---|---|---|
| Check | pe doctor | Surfaces missing tools, permissions and tunnel state before work begins. |
| Connect | pe vpn up lab | Runs the selected private OpenVPN profile in the foreground. |
| Select | pe target use keeper | Points notes, flags, credentials, prompt and status bar at one box. |
| Verify | pe vpn route "$IP" | Shows the kernel route; HTB traffic should traverse a lab interface such as tun0. |
| Work | htb-session | Opens the same recon, shell and notes workspace every time. |
| Record | pe note, pe host, pe cred, pe flag | Keeps evidence target-scoped instead of scattered through shell history. |
| Close | pe backup, then disconnect | Creates an integrity-checked snapshot before ending the lab session. |
| Purpose | Default path | Protection |
|---|---|---|
| Environment config | ~/.config/pentest-env/ | Versioned source is installed here; personal overrides live separately. |
| HTB workspaces | ~/htb/<target>/ | Root and target directories are mode 700. |
| VPN profiles | ~/.config/htb/vpn/*.ovpn | Imported as mode 600; directory mode 700. |
| Encrypted database | ~/.local/share/pentest-env/pentest.db | SQLCipher encrypted; storage directory mode 700. |
| Backups | ~/.local/share/pentest-env/backups/ | Private, compressed, retained snapshots. |
| Wrapped DB key | ~/.local/state/pentest-env/db.key.gpg | GPG-protected; do not publish it with dotfiles. |
| Active target cache | ~/.local/state/pentest-env/active_target_display | Contains only target name and IP so prompt/tmux need not decrypt the DB. |
| Sparse wordlists | ~/voidwalker/wordlists/SecLists/ | A deliberately small task-focused subset. |
scan, fullscan, udpquick and webenum refuse to run unless the target route traverses tun, tap or wg. Use PE_ALLOW_NO_VPN=1 only for another explicitly authorized lab.
Tmux resurrect/continuum is absent because process arguments and pane scrollback may hold passwords, hashes or tokens. Detach safely, but do not expect state to survive a tmux server restart.
Zsh has hist_ignore_space. Begin a sensitive one-off command with a literal space. Prefer environment variables, protected files, or interactive prompts over secrets in arguments.
Copy mode uses tmux with external clipboard control. Anything copied remains in the desktop clipboard; clear it after handling a credential.
No section matches that filter. Press Esc to reset.