<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Active Directory &amp; Windows on Hackpuntes</title><link>https://hackpuntes.com/categories/active-directory--windows/</link><description>Recent content in Active Directory &amp; Windows on Hackpuntes</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 18 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://hackpuntes.com/categories/active-directory--windows/index.xml" rel="self" type="application/rss+xml"/><item><title>Logging WriteUp</title><link>https://hackpuntes.com/posts/hackthebox/machines/logging-writeup/</link><pubDate>Sat, 18 Jul 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/hackthebox/machines/logging-writeup/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/hackthebox/machines/logging/logging-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/hackthebox/machines/logging/logging-banner.webp" alt="Logging WriteUp" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Logging&lt;/strong&gt; is a &lt;code&gt;🟧 Medium&lt;/code&gt; difficulty machine on &lt;strong&gt;Hack The Box&lt;/strong&gt;, and it is one of those Active Directory boxes where you keep chaining one flaw after another until you own the whole domain. We start by reading a plaintext password someone left lying around in a log, we abuse permissions over a gMSA account to grab its hash, we jump to another user with a DLL hijacking in a scheduled task, and to finish we request an ADCS certificate via ESC1 and impersonate a WSUS server to run code as SYSTEM on the Domain Controller. It sounds like a lot, but we are going to take it slow and go bit by bit.&lt;/p&gt;</description></item><item><title>NanoCorp WriteUp</title><link>https://hackpuntes.com/posts/hackthebox/machines/nanocorp-writeup/</link><pubDate>Sat, 20 Jun 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/hackthebox/machines/nanocorp-writeup/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/hackthebox/machines/nanocorp/nanocorp-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/hackthebox/machines/nanocorp/nanocorp-banner.webp" alt="NanoCorp WriteUp" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NanoCorp&lt;/strong&gt; is a &lt;code&gt;🟥 Hard&lt;/code&gt; difficulty machine from the &lt;strong&gt;Hack The Box&lt;/strong&gt; platform. The attack chain starts at a job portal that accepts résumés in ZIP format: by packaging a malicious &lt;code&gt;.library-ms&lt;/code&gt; file (CVE-2025-24071) we get the server, on extraction, to try to authenticate over SMB against our machine, leaking the NetNTLMv2 hash of a service account. After cracking that password, we use &lt;strong&gt;BloodHound&lt;/strong&gt; to map the domain and discover a DACL abuse chain that lets us join a privileged group and reset the password of another service account with WinRM access. The final escalation exploits &lt;strong&gt;CVE-2024-0670&lt;/strong&gt; in the &lt;strong&gt;Checkmk&lt;/strong&gt; monitoring agent, abusing the repair of its MSI installer to run our own script as &lt;code&gt;NT AUTHORITY\SYSTEM&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Overwatch WriteUp</title><link>https://hackpuntes.com/posts/hackthebox/machines/overwatch-writeup/</link><pubDate>Sat, 09 May 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/hackthebox/machines/overwatch-writeup/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/hackthebox/machines/overwatch/overwatch-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/hackthebox/machines/overwatch/overwatch-banner.webp" alt="Overwatch WriteUp" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Overwatch&lt;/strong&gt; is a &lt;code&gt;🟧 Medium&lt;/code&gt; difficulty machine on the &lt;strong&gt;Hack The Box&lt;/strong&gt; platform. The attack chain involves enumerating an SMB share accessible with a guest account to obtain a .NET binary with embedded credentials, connecting to an MSSQL server on a non-standard port to discover a misconfigured linked server, poisoning the domain DNS (ADIDNS) to intercept cleartext credentials of a service account, accessing via WinRM and escalating privileges by abusing an internal WCF service with command injection in the &lt;code&gt;KillProcess&lt;/code&gt; method.&lt;/p&gt;</description></item><item><title>DarkZero WriteUp</title><link>https://hackpuntes.com/posts/hackthebox/machines/darkzero-writeup/</link><pubDate>Sat, 04 Apr 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/hackthebox/machines/darkzero-writeup/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/hackthebox/machines/darkzero/darkzero-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/hackthebox/machines/darkzero/darkzero-banner.webp" alt="DarkZero WriteUp" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DarkZero&lt;/strong&gt; is a &lt;code&gt;🟥 Hard&lt;/code&gt; difficulty machine on the &lt;strong&gt;Hack The Box&lt;/strong&gt; platform that simulates an enterprise Active Directory environment with &lt;strong&gt;two separate domains&lt;/strong&gt;, multihoming, and advanced attack vectors. The ultimate goal is to fully compromise both Domain Controllers.&lt;/p&gt;
&lt;p&gt;At the start, we are given initial credentials: 🔑 &lt;code&gt;john.w:RFulUtONCOL!&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="-attack-chain"&gt;🗺️ Attack Chain&lt;/h2&gt;
&lt;p&gt;Before diving into the details, here is the full attack chain at a glance:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;john.w credentials
│
▼
MSSQL DC01 (guest) ──linked server──► MSSQL DC02 (sysadmin)
│
▼
xp_cmdshell ► Shell as svc_sql on DC02 (172.16.20.2)
│
▼
Ligolo-MP ► Access to internal network 172.16.20.0/24
│
▼
AD CS (Certify) ► NTLM hash of svc_sql ► Password change
│
▼
RunasCs (LogonType 5) ► SeImpersonatePrivilege
│
▼
SigmaPotato ► NT AUTHORITY\SYSTEM on DC02
│
▼
Rubeus monitor + xp_dirtree ► DC01$ TGT
│
▼
Pass-the-Ticket ► secretsdump ► DC01 Administrator hash
│
▼
evil-winrm ► Administrator on DC01 🏴
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="-reconnaissance"&gt;🔍 Reconnaissance&lt;/h2&gt;
&lt;h3 id="port-scanning"&gt;Port Scanning&lt;/h3&gt;
&lt;p&gt;We perform reconnaissance in &lt;strong&gt;two phases&lt;/strong&gt;: first we quickly discover open ports, then we run detection scripts against them.&lt;/p&gt;</description></item><item><title>Fixing the Kerberos KRB_AP_ERR_SKEW Error</title><link>https://hackpuntes.com/posts/fixing-krb-ap-err-skew-kerberos-clock-skew/</link><pubDate>Tue, 03 Mar 2026 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/fixing-krb-ap-err-skew-kerberos-clock-skew/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/fixing-krb-ap-err-skew-kerberos-clock-skew/fixing-krb-ap-err-skew-kerberos-clock-skew-banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/fixing-krb-ap-err-skew-kerberos-clock-skew/fixing-krb-ap-err-skew-kerberos-clock-skew-banner.webp" alt="Fixing the Kerberos KRB_AP_ERR_SKEW Error" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;You are deep into an intrusion exercise, you have successfully compromised a vulnerable certificate template in Active Directory Certificate Services (ADCS), and you already hold the precious &lt;code&gt;administrator.pfx&lt;/code&gt; file. The logical next step is to request a &lt;strong&gt;Ticket Granting Ticket (TGT)&lt;/strong&gt; and extract the administrator&amp;rsquo;s hash. You launch &lt;code&gt;certipy-ad&lt;/code&gt; with a smile on your face, and suddenly, the terminal spits this out:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;certipy-ad auth -pfx &lt;span class="s1"&gt;&amp;#39;administrator.pfx&amp;#39;&lt;/span&gt; -dc-ip 10.2.10.10 -debug
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;*&lt;span class="o"&gt;]&lt;/span&gt; Using principal: &lt;span class="s1"&gt;&amp;#39;administrator@hackpuntes.loc&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;*&lt;span class="o"&gt;]&lt;/span&gt; Trying to get TGT...
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;+&lt;span class="o"&gt;]&lt;/span&gt; Sending AS-REQ to KDC hackpuntes.loc &lt;span class="o"&gt;(&lt;/span&gt;10.2.10.10&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;-&lt;span class="o"&gt;]&lt;/span&gt; Got error &lt;span class="k"&gt;while&lt;/span&gt; trying to request TGT: Kerberos SessionError: KRB_AP_ERR_SKEW&lt;span class="o"&gt;(&lt;/span&gt;Clock skew too great&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;impacket.krb5.kerberosv5.KerberosError: Kerberos SessionError: KRB_AP_ERR_SKEW&lt;span class="o"&gt;(&lt;/span&gt;Clock skew too great&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That infamous &lt;code&gt;KRB_AP_ERR_SKEW&lt;/code&gt;. The disappointment is immeasurable and your day is ruined.&lt;/p&gt;</description></item><item><title>AppLocker: Bypassing Default Rules with MSBuild</title><link>https://hackpuntes.com/posts/applocker-install-and-bypass-with-msbuild/</link><pubDate>Sat, 06 Dec 2025 00:00:00 +0000</pubDate><guid>https://hackpuntes.com/posts/applocker-install-and-bypass-with-msbuild/</guid><description>&lt;p&gt;&lt;a href="https://hackpuntes.com/images/applocker_install_and_bypass_with_msbuild/applocker_install_and_bypass_with_msbuild_banner.webp"&gt;&lt;img src="https://hackpuntes.com/images/applocker_install_and_bypass_with_msbuild/applocker_install_and_bypass_with_msbuild_banner.webp" alt="AppLocker: Bypassing Default Rules with MSBuild" loading="eager" decoding="async" /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;AppLocker has established itself as a primary line of defense for restricting software execution within corporate environments. However, a hasty implementation that blindly relies on &lt;strong&gt;Default Rules&lt;/strong&gt; can provide a false sense of security.&lt;/p&gt;
&lt;p&gt;If an administrator configures AppLocker to allow anything signed by Microsoft or anything residing in &lt;code&gt;C:\Windows\*&lt;/code&gt;, a malicious user could leverage native system binaries (LOLBins) to execute arbitrary code. Today, we are going to dissect how &lt;code&gt;MSBuild.exe&lt;/code&gt; can become our gateway to a Meterpreter session, effectively evading these basic restrictions.&lt;/p&gt;</description></item></channel></rss>