repositories

voidwalker.py

Penetration testing arsenal builder and workspace manager for macOS and Linux

clonegit clone https://git.daemon-sec.xyz/voidwalker.py.git
privesc.htmlHTML160 lines11.3 KiBraw download
<!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="Linux and Windows privilege-escalation checklist for authorized lab systems.">
  <title>Voidwalker Field Manual // Privilege escalation</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">Module 08 // local control</p>
        <h1>Enumerate, <span class="accent">prove, record.</span></h1>
        <p class="lede">Build an evidence-backed path from the current identity to the lab objective. Check configuration, privileges and trust boundaries methodically before attempting a change.</p>
        <div class="hero-meta"><span class="tag">Linux</span><span class="tag">Windows</span><span class="tag">least change</span><span class="tag">evidence first</span></div>
      </section>

      <div class="notice"><div><strong>Authorized labs only.</strong> Run these checks only on the assigned HTB/CTF host or another system you are explicitly permitted to test. Confirm the active target, preserve evidence, and stop when the lab objective is met.</div></div>

      <div class="search-box">
        <label for="page-search">Filter this page</label>
        <input id="page-search" data-page-search type="search" placeholder="Try: sudo, SUID, services, tasks, tokens…" 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="baseline" data-search-item data-search="baseline identity scope evidence hostname operating system network process notes">
        <h2>Establish the baseline</h2>
        <p>Record who you are, where you are, and what changed during access. A small baseline makes later findings reproducible and helps prevent evidence from being attached to the wrong target.</p>
        <div class="grid">
          <article class="panel"><h3>Identity</h3><p>Capture the user, groups, effective privileges, hostname, OS build and architecture. Note whether the shell is interactive, restricted, containerized or remote.</p></article>
          <article class="panel"><h3>Exposure</h3><p>List local interfaces, listening services and high-value processes. Compare them with external recon rather than assuming both views are identical.</p></article>
          <article class="panel"><h3>Evidence</h3><p>Save command output beneath the private target tree. Record interpretation separately so raw output remains available for review.</p></article>
          <article class="panel"><h3>Change budget</h3><p>Prefer read-only checks first. Before writing a file, starting a service or changing configuration, know how you will reverse it.</p></article>
        </div>
        <pre><code>pe status
pe note add -t "local baseline" -b "Initial identity, host and access path"
umask 077</code></pre>
      </section>

      <section id="linux" data-search-item data-search="linux identity kernel os release network sockets processes sudo SUID SGID capabilities cron systemd timers">
        <h2>Linux triage</h2>
        <pre><code>id
hostname
uname -a
cat /etc/os-release
ip -br address
ss -lntup
ps aux --forest

sudo -l
find / -xdev -perm -4000 -type f 2&gt;/dev/null
find / -xdev -perm -2000 -type f 2&gt;/dev/null
getcap -r / 2&gt;/dev/null
systemctl list-timers --all
ls -la /etc/cron* /var/spool/cron 2&gt;/dev/null</code></pre>
        <p>Read the exact <code>sudo</code> rule, binary version and execution context. A SUID bit, capability or timer is a lead—not proof—until its ownership, arguments and writable dependencies are understood.</p>
      </section>

      <section id="linux-checklist" data-search-item data-search="linux checklist sudo path environment services writable files cron secrets credentials containers docker lxd mounts NFS kernel">
        <h2>Linux checklist</h2>
        <ul class="checklist">
          <li>Review <code>sudo -l</code> for permitted commands, wildcards, preserved environment variables and secure-path behavior.</li>
          <li>Compare SUID/SGID programs and file capabilities with the base OS; inspect unusual owners, locations and versions.</li>
          <li>Inspect systemd units, timers, cron entries and scripts for writable files, relative paths or attacker-controlled input.</li>
          <li>Check running services and process arguments for configuration paths. Do not copy secrets into public notes or shell history.</li>
          <li>Review writable directories in privileged execution paths, including application plug-in, backup and deployment locations.</li>
          <li>Identify container or virtualization context. Membership in groups such as <code>docker</code> or <code>lxd</code> changes the trust boundary.</li>
          <li>Inspect mounted filesystems, NFS options and shared data for unintended privilege boundaries; keep the lab scope in view.</li>
          <li>Treat kernel exploits as a last resort: confirm the exact build, mitigations, architecture and lab rules before considering one.</li>
        </ul>
        <div class="notice info"><div><strong>Validate the whole chain.</strong> A writable file matters only when a privileged process actually consumes it in a controllable way.</div></div>
      </section>

      <section id="windows" data-search-item data-search="windows identity token privileges systeminfo network processes services scheduled tasks PowerShell CIM">
        <h2>Windows triage</h2>
        <pre><code>whoami /all
hostname
systeminfo
ipconfig /all
netstat -ano
tasklist /svc

whoami /priv
schtasks /query /fo LIST /v
sc.exe query state= all
powershell -NoProfile -Command "Get-CimInstance Win32_Service | Select-Object Name,StartName,State,PathName"</code></pre>
        <p>Correlate service PIDs, accounts and executable paths. Use PowerShell/CIM where legacy utilities are absent, and save long output to the target workspace for offline review.</p>
      </section>

      <section id="windows-checklist" data-search-item data-search="windows checklist token service paths permissions tasks registry autoruns installers credentials history shares antivirus architecture">
        <h2>Windows checklist</h2>
        <ul class="checklist">
          <li>Review token privileges and group memberships; distinguish present, disabled and enabled privileges.</li>
          <li>Inspect service accounts, binary paths and permissions. An unquoted path is only actionable when path placement and restart control align.</li>
          <li>Review scheduled tasks, their principals, triggers, actions and writable scripts or working directories.</li>
          <li>Inspect application installers, update agents and autoruns for privileged execution of user-controlled content.</li>
          <li>Check local and domain group membership, accessible shares and stored connection material without broadening beyond the assigned host.</li>
          <li>Locate PowerShell history and application configuration carefully; redact credentials from screenshots and writeups.</li>
          <li>Record endpoint protection, language mode and architecture before choosing tooling. A blocked tool is not a reason to disable controls indiscriminately.</li>
          <li>Prefer reversible proof. Avoid changing passwords, deleting services or weakening security settings unless the lab explicitly requires it.</li>
        </ul>
      </section>

      <section id="automation" data-search-item data-search="automation linpeas winpeas scripts hashes review output tools integrity private temporary">
        <h2>Use automation deliberately</h2>
        <p>Enumeration scripts can accelerate coverage, but they also generate noise and may collect secrets. Obtain tools from a trusted lab source, verify the expected hash, read their options, and run them only after manual baseline checks.</p>
        <div class="grid">
          <article class="panel"><h3>Linux helper</h3><pre><code>sha256sum linpeas.sh
less linpeas.sh
chmod 700 linpeas.sh
./linpeas.sh | tee scans/linpeas.txt</code></pre></article>
          <article class="panel"><h3>Windows helper</h3><pre><code>Get-FileHash .\winPEAS.exe -Algorithm SHA256
.\winPEAS.exe | Tee-Object -FilePath winpeas.txt</code></pre></article>
        </div>
        <p>Review findings manually. “Interesting” output is a queue of hypotheses, not an instruction to execute every suggested technique.</p>
      </section>

      <section id="validate" data-search-item data-search="validate prove evidence cleanup notes hash rollback objective report">
        <h2>Prove and close</h2>
        <ol class="step-list">
          <li><div><h3>State the hypothesis</h3><p>Identify the privileged component, controllable input, required trigger and expected result.</p></div></li>
          <li><div><h3>Choose minimal proof</h3><p>Demonstrate the boundary with the smallest reversible change allowed by the lab.</p></div></li>
          <li><div><h3>Capture evidence</h3><p>Record commands, versions, relevant permissions and output without publishing secrets.</p></div></li>
          <li><div><h3>Restore and clean</h3><p>Remove temporary tooling, undo configuration changes, stop listeners and verify the host remains usable.</p></div></li>
        </ol>
        <pre><code>pe note add -t "privilege path" -b "Component, condition, proof and cleanup"
	find scans -maxdepth 1 -type f -not -name SHA256SUMS -exec sha256sum {} + &gt; scans/SHA256SUMS
pe backup</code></pre>
      </section>

      <p class="empty-state" data-empty-state hidden>No privilege-escalation topic matches that filter. Press <kbd>Esc</kbd> to reset.</p>
      <nav class="page-nav" aria-label="Adjacent pages"><a href="ad-windows.html">← AD + Windows</a><a href="transfer.html">File transfer →</a></nav>
    </main>

    <aside class="toc" aria-label="On this page">
      <strong>On this page</strong>
      <ul><li><a href="#baseline">Baseline</a></li><li><a href="#linux">Linux triage</a></li><li><a href="#linux-checklist">Linux checklist</a></li><li><a href="#windows">Windows triage</a></li><li><a href="#windows-checklist">Windows checklist</a></li><li><a href="#automation">Automation</a></li><li><a href="#validate">Prove and close</a></li></ul>
    </aside>
  </div>

  <footer class="site-footer"><strong>VOIDWALKER // PRIVILEGE ESCALATION</strong><br>Enumerate first · change less · leave evidence clean</footer>
</body>
</html>