repositories

voidwalker.py

Penetration testing arsenal builder and workspace manager for macOS and Linux

clonegit clone https://git.daemon-sec.xyz/voidwalker.py.git
ad-windows.htmlHTML21 lines6.0 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="Active Directory and Windows lab cheatsheet."><title>Voidwalker Field Manual // AD + Windows</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 07 // identity surface</p><h1>AD + <span class="accent">Windows.</span></h1><p class="lede">Make DNS, time and identity explicit before SMB, LDAP or Kerberos work. Keep NetExec artifacts private and validate every credential against scope.</p><div class="hero-meta"><span class="tag">NetExec</span><span class="tag">Impacket</span><span class="tag">Certipy</span><span class="tag">BloodHound</span></div></section><div class="notice"><div><strong>Authorized labs only.</strong> Verify scope, target and route before testing. Treat credentials and collected files as sensitive lab data.</div></div><div class="search-box"><label for="page-search">Filter this page</label><input id="page-search" data-page-search type="search" placeholder="Type a tool, command or topic…" 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="foundation" data-search-item data-search="DNS time domain controller kerberos hosts clock foundation"><h2>Foundation first</h2><pre><code>pe status
pe vpn route "$IP"
dig @DC_IP lab.htb
timedatectl status</code></pre><p>Kerberos depends on correct names and close clock alignment. Record the domain, DC FQDN, DC IP and discovered realm. Add only confirmed lab names to local resolution.</p></section>
<section id="smb" data-search-item data-search="SMB smbclient shares NetExec nxc password hash users"><h2>SMB and authentication</h2><pre><code>smbclient -N -L "//$IP"
nxc smb "$IP" -u USER -p 'PASSWORD'
nxc smb "$IP" -u USER -H NTLM_HASH --shares</code></pre><p>The Zsh <code>nxc</code>/<code>netexec</code> wrapper sets <code>umask 077</code>. Start secret-bearing commands with a literal space. Never spray accounts unless the lab explicitly allows it and you understand lockout policy.</p></section>
<section id="ldap" data-search-item data-search="LDAP ldapsearch naming context domain users groups anonymous"><h2>LDAP</h2><pre><code>ldapsearch -x -H "ldap://$IP" -s base namingContexts

ldapsearch -x -H "ldap://DC_IP" -D 'LAB\USER' -W \
  -b 'DC=lab,DC=htb' '(objectClass=user)' sAMAccountName</code></pre><p>Use <code>-W</code> to prompt rather than placing a password in argv. Narrow attributes and filters to keep output reviewable.</p></section>
<section id="kerberos" data-search-item data-search="Kerberos impacket GetNPUsers GetUserSPNs realm tickets ccache"><h2>Kerberos checks</h2><pre><code>impacket-GetNPUsers 'lab.htb/' -dc-ip DC_IP -usersfile users.txt -no-pass
impacket-GetUserSPNs 'lab.htb/USER' -dc-ip DC_IP -request</code></pre><p>Run only against the lab domain. Protect hashes, tickets and <code>ccache</code> files with mode <code>600</code>, and remove them when the exercise ends.</p></section>
<section id="certs" data-search-item data-search="AD CS Certipy certificate authorities find vulnerable"><h2>AD CS inventory</h2><pre><code> certipy find -u 'USER@lab.htb' -p 'PASSWORD' \
  -dc-ip DC_IP -enabled -stdout</code></pre><p>Treat “vulnerable” template output as a hypothesis. Read the template permissions and enrollment conditions, then follow the lab objective and rules.</p></section>
<section id="graph" data-search-item data-search="BloodHound collection graph bloodhound-python bofhound JSON cleanup"><h2>Relationship mapping</h2><pre><code> bloodhound-python -u USER -p 'PASSWORD' -d lab.htb \
  -ns DC_IP -c DCOnly --zip</code></pre><p>BloodHound ZIP/JSON contains sensitive identity topology. Store it under the private target <code>loot/</code> directory, import locally, and never publish it with the repository.</p></section>
<section id="remote" data-search-item data-search="WinRM evil-winrm RDP SSH remote access credentials"><h2>Authorized remote access</h2><pre><code> evil-winrm -i "$IP" -u USER -p 'PASSWORD'
ssh USER@"$IP"</code></pre><p>Use the least invasive protocol already exposed by the lab. Record which credential worked with <code>pe cred valid ID 1</code> rather than repeatedly testing it.</p></section><p class="empty-state" data-empty-state hidden>No entry matches. Press <kbd>Esc</kbd> to reset.</p><nav class="page-nav" aria-label="Adjacent pages"><a href="web.html">← Web testing</a><a href="privesc.html">Privilege escalation →</a></nav></main><aside class="toc" aria-label="On this page"><strong>On this page</strong><ul><li><a href="#foundation">Foundation</a></li><li><a href="#smb">SMB</a></li><li><a href="#ldap">LDAP</a></li><li><a href="#kerberos">Kerberos</a></li><li><a href="#certs">AD CS</a></li><li><a href="#graph">BloodHound</a></li><li><a href="#remote">Remote access</a></li></ul></aside></div><footer class="site-footer"><strong>VOIDWALKER // AD + WINDOWS</strong><br>Rose Pine Dawn · offline · authorized lab use</footer></body></html>