Rose Pine Dawn // workstation 01

Your lab, wired.

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.

offlineARM64-awaresecret-consciousHTB workflow
Authorized targets only. Use these commands only against Hack The Box labs, CTFs, systems you own, or systems for which you have explicit written permission. Confirm the target and route before sending traffic.

One workstation, four layers

01 · Desktop

GNOME, Alacritty and the custom Rose Pine visual layer make the active lab obvious without changing how the underlying tools work.

02 · Shell

Zsh exposes Go, Cargo and user Python tools, adds route-guarded helpers, and keeps the current target in the prompt.

03 · Session

htb-session creates a predictable tmux layout rooted in a private per-target directory. Runtime persistence is intentionally off.

04 · Data

pe stores flags, credentials, hosts and notes in a SQLCipher database, with protected state and integrity-checked backups.

First signal

  1. Open a fresh terminal

    The installer wires the environment into Zsh. Existing shells do not inherit it, so open Alacritty or run exec zsh.

  2. Inspect the workstation

    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.

  3. Initialize encrypted storage once

    pe init

    A random database key is wrapped with GPG. Choose a strong passphrase and keep the key file with your backups.

  4. Import and connect an HTB pack

    pe vpn import ~/Downloads/lab.ovpn lab
    pe vpn up lab

    The VPN stays in the foreground. Leave that terminal or tmux window open; Ctrl+C disconnects.

  5. Create the box and cockpit

    newbox keeper 10.10.11.227 htb
    htb-session

    newbox registers and activates the target, creates its private work tree, then enters it. htb-session builds or reattaches its tmux workspace.

The daily loop

PhaseActionWhy it matters
Checkpe doctorSurfaces missing tools, permissions and tunnel state before work begins.
Connectpe vpn up labRuns the selected private OpenVPN profile in the foreground.
Selectpe target use keeperPoints notes, flags, credentials, prompt and status bar at one box.
Verifype vpn route "$IP"Shows the kernel route; HTB traffic should traverse a lab interface such as tun0.
Workhtb-sessionOpens the same recon, shell and notes workspace every time.
Recordpe note, pe host, pe cred, pe flagKeeps evidence target-scoped instead of scattered through shell history.
Closepe backup, then disconnectCreates an integrity-checked snapshot before ending the lab session.

Where the signals land

PurposeDefault pathProtection
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/*.ovpnImported as mode 600; directory mode 700.
Encrypted database~/.local/share/pentest-env/pentest.dbSQLCipher encrypted; storage directory mode 700.
Backups~/.local/share/pentest-env/backups/Private, compressed, retained snapshots.
Wrapped DB key~/.local/state/pentest-env/db.key.gpgGPG-protected; do not publish it with dotfiles.
Active target cache~/.local/state/pentest-env/active_target_displayContains only target name and IP so prompt/tmux need not decrypt the DB.
Sparse wordlists~/voidwalker/wordlists/SecLists/A deliberately small task-focused subset.

Safety rails

Route guard

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.

No pane resurrection

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.

History hygiene

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.

Clipboard boundaries

Copy mode uses tmux with external clipboard control. Anything copied remains in the desktop clipboard; clear it after handling a credential.

Before every active command: verify the target name, target IP, authorization boundary and route. A convenience alias never replaces scope control.

Open a module