<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light">
<meta name="theme-color" content="#faf4ed">
<meta name="description" content="Offline field guide for the Voidwalker Hack The Box workstation.">
<title>Voidwalker Field Manual // Setup</title>
<link rel="stylesheet" href="assets/style.css?v=2">
<script src="assets/app.js?v=2" defer></script>
</head>
<body>
<a class="skip-link" href="#content">Skip to content</a>
<header class="site-header">
<div class="header-inner">
<a class="brand" href="index.html"><span class="brand-mark" aria-hidden="true">V</span><span>Voidwalker<small>offline field manual</small></span></a>
<button class="nav-toggle" type="button" aria-expanded="false" aria-controls="site-nav">menu</button>
<nav class="site-nav" id="site-nav" aria-label="Handbook">
<a href="index.html">Setup</a><a href="tmux.html">tmux</a><a href="pe.html">pe</a><a href="htb-workflow.html">HTB</a><a href="zsh-terminal.html">Shell</a><a href="recon.html">Recon</a><a href="web.html">Web</a><a href="ad-windows.html">AD</a><a href="privesc.html">PrivEsc</a><a href="transfer.html">Transfer</a><a href="toolbox.html">Tools</a>
</nav>
</div>
</header>
<div class="page-shell">
<main id="content">
<section class="hero">
<p class="eyebrow">Rose Pine Dawn // workstation 01</p>
<h1>Your lab, <span class="accent">wired.</span></h1>
<p class="lede">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.</p>
<div class="hero-meta"><span class="tag">offline</span><span class="tag">ARM64-aware</span><span class="tag">secret-conscious</span><span class="tag">HTB workflow</span></div>
</section>
<div class="notice">
<div><strong>Authorized targets only.</strong> 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.</div>
</div>
<div class="search-box">
<label for="page-search">Filter this guide</label>
<input id="page-search" data-page-search type="search" placeholder="Try: VPN, first run, paths, safety…" autocomplete="off">
<span class="search-hint"><kbd>/</kbd> focus · <kbd>Esc</kbd> clear</span>
</div>
<p class="filter-summary" data-filter-summary aria-live="polite"></p>
<section id="orientation" data-search-item data-search="architecture mental model pe tmux target workspace">
<h2>One workstation, four layers</h2>
<div class="grid">
<article class="panel"><h3>01 · Desktop</h3><p>GNOME, Alacritty and the custom Rose Pine visual layer make the active lab obvious without changing how the underlying tools work.</p></article>
<article class="panel"><h3>02 · Shell</h3><p>Zsh exposes Go, Cargo and user Python tools, adds route-guarded helpers, and keeps the current target in the prompt.</p></article>
<article class="panel"><h3>03 · Session</h3><p><code>htb-session</code> creates a predictable tmux layout rooted in a private per-target directory. Runtime persistence is intentionally off.</p></article>
<article class="panel"><h3>04 · Data</h3><p><code>pe</code> stores flags, credentials, hosts and notes in a SQLCipher database, with protected state and integrity-checked backups.</p></article>
</div>
</section>
<section id="first-run" data-search-item data-search="first run initialize doctor vpn import target newbox session start">
<h2>First signal</h2>
<ol class="step-list">
<li><div><h3>Open a fresh terminal</h3><p>The installer wires the environment into Zsh. Existing shells do not inherit it, so open Alacritty or run <code>exec zsh</code>.</p></div></li>
<li><div><h3>Inspect the workstation</h3><pre><code>pe doctor
command -v nmap ffuf nxc
printf '%s\n' "$PE_WORKROOT" "$PE_WORDLIST_ROOT"</code></pre><p>Missing x86-64 emulation on ARM64 is optional for most labs; the doctor reports it separately.</p></div></li>
<li><div><h3>Initialize encrypted storage once</h3><pre><code>pe init</code></pre><p>A random database key is wrapped with GPG. Choose a strong passphrase and keep the key file with your backups.</p></div></li>
<li><div><h3>Import and connect an HTB pack</h3><pre><code>pe vpn import ~/Downloads/lab.ovpn lab
pe vpn up lab</code></pre><p>The VPN stays in the foreground. Leave that terminal or tmux window open; <kbd>Ctrl</kbd>+<kbd>C</kbd> disconnects.</p></div></li>
<li><div><h3>Create the box and cockpit</h3><pre><code>newbox keeper 10.10.11.227 htb
htb-session</code></pre><p><code>newbox</code> registers and activates the target, creates its private work tree, then enters it. <code>htb-session</code> builds or reattaches its tmux workspace.</p></div></li>
</ol>
</section>
<section id="daily-loop" data-search-item data-search="daily workflow connect target scan enumerate record backup disconnect">
<h2>The daily loop</h2>
<div class="table-wrap">
<table>
<thead><tr><th>Phase</th><th>Action</th><th>Why it matters</th></tr></thead>
<tbody>
<tr><td>Check</td><td><code>pe doctor</code></td><td>Surfaces missing tools, permissions and tunnel state before work begins.</td></tr>
<tr><td>Connect</td><td><code>pe vpn up lab</code></td><td>Runs the selected private OpenVPN profile in the foreground.</td></tr>
<tr><td>Select</td><td><code>pe target use keeper</code></td><td>Points notes, flags, credentials, prompt and status bar at one box.</td></tr>
<tr><td>Verify</td><td><code>pe vpn route "$IP"</code></td><td>Shows the kernel route; HTB traffic should traverse a lab interface such as <code>tun0</code>.</td></tr>
<tr><td>Work</td><td><code>htb-session</code></td><td>Opens the same recon, shell and notes workspace every time.</td></tr>
<tr><td>Record</td><td><code>pe note</code>, <code>pe host</code>, <code>pe cred</code>, <code>pe flag</code></td><td>Keeps evidence target-scoped instead of scattered through shell history.</td></tr>
<tr><td>Close</td><td><code>pe backup</code>, then disconnect</td><td>Creates an integrity-checked snapshot before ending the lab session.</td></tr>
</tbody>
</table>
</div>
</section>
<section id="paths" data-search-item data-search="locations paths xdg database backup key vpn workroot wordlists config">
<h2>Where the signals land</h2>
<div class="table-wrap">
<table>
<thead><tr><th>Purpose</th><th>Default path</th><th>Protection</th></tr></thead>
<tbody>
<tr><td>Environment config</td><td><code>~/.config/pentest-env/</code></td><td>Versioned source is installed here; personal overrides live separately.</td></tr>
<tr><td>HTB workspaces</td><td><code>~/htb/<target>/</code></td><td>Root and target directories are mode <code>700</code>.</td></tr>
<tr><td>VPN profiles</td><td><code>~/.config/htb/vpn/*.ovpn</code></td><td>Imported as mode <code>600</code>; directory mode <code>700</code>.</td></tr>
<tr><td>Encrypted database</td><td><code>~/.local/share/pentest-env/pentest.db</code></td><td>SQLCipher encrypted; storage directory mode <code>700</code>.</td></tr>
<tr><td>Backups</td><td><code>~/.local/share/pentest-env/backups/</code></td><td>Private, compressed, retained snapshots.</td></tr>
<tr><td>Wrapped DB key</td><td><code>~/.local/state/pentest-env/db.key.gpg</code></td><td>GPG-protected; do not publish it with dotfiles.</td></tr>
<tr><td>Active target cache</td><td><code>~/.local/state/pentest-env/active_target_display</code></td><td>Contains only target name and IP so prompt/tmux need not decrypt the DB.</td></tr>
<tr><td>Sparse wordlists</td><td><code>~/voidwalker/wordlists/SecLists/</code></td><td>A deliberately small task-focused subset.</td></tr>
</tbody>
</table>
</div>
</section>
<section id="safety" data-search-item data-search="security secrets safe history tmux persistence clipboard database route authorization permissions">
<h2>Safety rails</h2>
<div class="grid">
<article class="panel"><h3>Route guard</h3><p><code>scan</code>, <code>fullscan</code>, <code>udpquick</code> and <code>webenum</code> refuse to run unless the target route traverses <code>tun</code>, <code>tap</code> or <code>wg</code>. Use <code>PE_ALLOW_NO_VPN=1</code> only for another explicitly authorized lab.</p></article>
<article class="panel"><h3>No pane resurrection</h3><p>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.</p></article>
<article class="panel"><h3>History hygiene</h3><p>Zsh has <code>hist_ignore_space</code>. Begin a sensitive one-off command with a literal space. Prefer environment variables, protected files, or interactive prompts over secrets in arguments.</p></article>
<article class="panel"><h3>Clipboard boundaries</h3><p>Copy mode uses tmux with external clipboard control. Anything copied remains in the desktop clipboard; clear it after handling a credential.</p></article>
</div>
<div class="notice safe"><div><strong>Before every active command:</strong> verify the target name, target IP, authorization boundary and route. A convenience alias never replaces scope control.</div></div>
</section>
<section id="manual" data-search-item data-search="manual pages cheat sheets categories navigation docs">
<h2>Open a module</h2>
<div class="grid three">
<a class="link-card" href="tmux.html"><strong>tmux cockpit</strong><span>Sessions, panes, copy mode and every custom binding.</span></a>
<a class="link-card" href="pe.html"><strong>pe command center</strong><span>Targets, findings, encrypted data, VPN and recovery.</span></a>
<a class="link-card" href="htb-workflow.html"><strong>HTB runbook</strong><span>A clean connect-to-cleanup lab sequence.</span></a>
<a class="link-card" href="zsh-terminal.html"><strong>Zsh + terminal</strong><span>Aliases, widgets, prompt, PATH and overrides.</span></a>
<a class="link-card" href="recon.html"><strong>Recon</strong><span>Route-aware discovery and service triage.</span></a>
<a class="link-card" href="web.html"><strong>Web testing</strong><span>Content discovery, probing and evidence flow.</span></a>
<a class="link-card" href="ad-windows.html"><strong>AD + Windows</strong><span>SMB, LDAP, Kerberos, NetExec and Certipy.</span></a>
<a class="link-card" href="privesc.html"><strong>Privilege escalation</strong><span>Linux and Windows local enumeration checklists.</span></a>
<a class="link-card" href="transfer.html"><strong>File transfer</strong><span>HTTP, SCP, SMB and integrity verification.</span></a>
<a class="link-card" href="toolbox.html"><strong>Toolbox index</strong><span>What each installed app is for and how to find it.</span></a>
</div>
</section>
<p class="empty-state" data-empty-state hidden>No section matches that filter. Press <kbd>Esc</kbd> to reset.</p>
<nav class="page-nav" aria-label="Next page"><a href="toolbox.html">← Toolbox index</a><a href="tmux.html">tmux cockpit →</a></nav>
</main>
<aside class="toc" aria-label="On this page">
<strong>On this page</strong>
<ul><li><a href="#orientation">Architecture</a></li><li><a href="#first-run">First run</a></li><li><a href="#daily-loop">Daily loop</a></li><li><a href="#paths">Paths</a></li><li><a href="#safety">Safety</a></li><li><a href="#manual">Modules</a></li></ul>
</aside>
</div>
<footer class="site-footer"><strong>VOIDWALKER // FIELD MANUAL</strong><br>Rose Pine Dawn · local files only · authorized lab use</footer>
</body>
</html>