<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><metaname="color-scheme"content="light"><metaname="theme-color"content="#faf4ed"><metaname="description"content="Active Directory and Windows lab cheatsheet."><title>Voidwalker Field Manual // AD + Windows</title><linkrel="stylesheet"href="assets/style.css?v=2"><scriptsrc="assets/app.js?v=2"defer></script></head><body><aclass="skip-link"href="#content">Skip to content</a><headerclass="site-header"><divclass="header-inner"><aclass="brand"href="index.html"><spanclass="brand-mark"aria-hidden="true">V</span><span>Voidwalker<small>offline field manual</small></span></a><buttonclass="nav-toggle"type="button"aria-expanded="false"aria-controls="site-nav">menu</button><navclass="site-nav"id="site-nav"aria-label="Handbook"><ahref="index.html">Setup</a><ahref="tmux.html">tmux</a><ahref="pe.html">pe</a><ahref="htb-workflow.html">HTB</a><ahref="zsh-terminal.html">Shell</a><ahref="recon.html">Recon</a><ahref="web.html">Web</a><ahref="ad-windows.html">AD</a><ahref="privesc.html">PrivEsc</a><ahref="transfer.html">Transfer</a><ahref="toolbox.html">Tools</a></nav></div></header><divclass="page-shell"><mainid="content"><sectionclass="hero"><pclass="eyebrow">Module 07 // identity surface</p><h1>AD + <spanclass="accent">Windows.</span></h1><pclass="lede">Make DNS, time and identity explicit before SMB, LDAP or Kerberos work. Keep NetExec artifacts private and validate every credential against scope.</p><divclass="hero-meta"><spanclass="tag">NetExec</span><spanclass="tag">Impacket</span><spanclass="tag">Certipy</span><spanclass="tag">BloodHound</span></div></section><divclass="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><divclass="search-box"><labelfor="page-search">Filter this page</label><inputid="page-search"data-page-searchtype="search"placeholder="Type a tool, command or topic…"autocomplete="off"><spanclass="search-hint"><kbd>/</kbd> focus · <kbd>Esc</kbd> clear</span></div><pclass="filter-summary"data-filter-summaryaria-live="polite"></p>
<sectionid="foundation"data-search-itemdata-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>
<sectionid="smb"data-search-itemdata-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>
<sectionid="ldap"data-search-itemdata-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>
<sectionid="kerberos"data-search-itemdata-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>
<sectionid="certs"data-search-itemdata-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>
<sectionid="graph"data-search-itemdata-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>
<sectionid="remote"data-search-itemdata-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><pclass="empty-state"data-empty-statehidden>No entry matches. Press <kbd>Esc</kbd> to reset.</p><navclass="page-nav"aria-label="Adjacent pages"><ahref="web.html">← Web testing</a><ahref="privesc.html">Privilege escalation →</a></nav></main><asideclass="toc"aria-label="On this page"><strong>On this page</strong><ul><li><ahref="#foundation">Foundation</a></li><li><ahref="#smb">SMB</a></li><li><ahref="#ldap">LDAP</a></li><li><ahref="#kerberos">Kerberos</a></li><li><ahref="#certs">AD CS</a></li><li><ahref="#graph">BloodHound</a></li><li><ahref="#remote">Remote access</a></li></ul></aside></div><footerclass="site-footer"><strong>VOIDWALKER // AD + WINDOWS</strong><br>Rose Pine Dawn · offline · authorized lab use</footer></body></html>