<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>mermehr's blog</title><link>https://mermehr.github.io/</link><description>Recent content on mermehr's blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 10 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mermehr.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Operation Broken Trust</title><link>https://mermehr.github.io/posts/operation-broken-trust/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/operation-broken-trust/</guid><description>A sample internal penetration test report documenting Active Directory compromise, Windows and Linux attack chains, verified findings, and remediation priorities.</description></item><item><title>Checkpoint - HTB Walkthrough</title><link>https://mermehr.github.io/posts/htb-checkpoint/</link><pubDate>Sun, 25 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/htb-checkpoint/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;The assumed breach scenario provides direct credentials for user &lt;code&gt;alex.turner&lt;/code&gt; with password &lt;code&gt;Checkpoint2024!&lt;/code&gt;. Initial enumeration will find the system is a Domain Controller running Windows Server 2025 with LDAP signing enforced. Utilizing NetExec&amp;rsquo;s tombstone module, we will discover and restore the deleted AD object &lt;code&gt;mark.davies&lt;/code&gt;, gaining write access to a monitored &lt;code&gt;DevDrop&lt;/code&gt; share. We can then weaponize a Visual Studio Code extension (&lt;code&gt;.vsix&lt;/code&gt;) with a PowerShell reverse shell, uploading it to the share to obtain a callback as &lt;code&gt;ryan.brooks&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>DevHub - HTB Walkthrough</title><link>https://mermehr.github.io/posts/htb-devhub/</link><pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/htb-devhub/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;DevHub focuses mainly on exploiting vulnerable development tools and internal service enumeration. We first discover an active MCP Inspector service on port 6274 running a version of MCPJam vulnerable to an unauthenticated remote code execution exploit (CVE-2026-23744). Gaining access via this vulnerability drops us into an initial shell as the mcp-dev user. Enumerating internal services reveals a Jupyter server running locally on port 8888, and reading its systemd configuration file allows us to extract a valid server token. We set up an SSH local port forward to reach it and use the token to log in, gaining a shell as the analyst user. We then discover a local MCP server running on port 5000 and analyze its configuration file to uncover a hardcoded API key and a hidden administrative tool. From there, we port forward the internal service and craft an authenticated POST request to dump the root user&amp;rsquo;s private SSH key, granting us full root access.&lt;/p&gt;</description></item><item><title>Nara - OffSec PG Walkthrough</title><link>https://mermehr.github.io/posts/pg-nara/</link><pubDate>Tue, 13 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/pg-nara/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;Nara focuses on exploiting permissive share permissions to trigger NTLM credential theft and escalating privileges via Active Directory Certificate Services (ADCS). We first identify an SMB service with null authentication enabling read and write access to the &lt;code&gt;nara&lt;/code&gt; share. Reviewing &lt;code&gt;Important.txt&lt;/code&gt; indicates active file monitoring by internal users, allowing us to perform an NTLM theft attack using a malicious &lt;code&gt;.lnk&lt;/code&gt; shortcut file to capture and crack the NetNTLMv2 hash for &lt;code&gt;Tracy.White&lt;/code&gt;. Domain enumeration with BloodHound reveals that &lt;code&gt;Tracy.White&lt;/code&gt; possesses &lt;code&gt;GenericAll&lt;/code&gt; rights over the &lt;code&gt;Remote Access&lt;/code&gt; group, allowing us to add our account to the group and establish a WinRM session. Once on the host, we locate an encrypted &lt;code&gt;automation.txt&lt;/code&gt; file and decrypt its DPAPI-protected PowerShell &lt;code&gt;SecureString&lt;/code&gt; to reveal a cleartext password. Password spraying across domain accounts yields a hit for &lt;code&gt;Jodie.Summers&lt;/code&gt;, who belongs to the &lt;code&gt;CA Enrollment&lt;/code&gt; group. Further ADCS enumeration with Certipy reveals an ESC1 vulnerability in the &lt;code&gt;NaraUser&lt;/code&gt; certificate template. By requesting a certificate with an administrative Subject Alternative Name (SAN), we authenticate via PKINIT to retrieve the Domain Administrator&amp;rsquo;s NTLM hash and obtain full compromise.&lt;/p&gt;</description></item><item><title>Vmdak - OffSec PG Walkthrough</title><link>https://mermehr.github.io/posts/pg-vmdak/</link><pubDate>Sun, 11 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/pg-vmdak/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;Vmdak focuses mainly on web enumeration and exploitation. We first discover information disclosure on an FTP service, then find a web application on port 9443 with an SQLi vulnerability in its login form. Gaining access to the administration panel exposes another user&amp;rsquo;s credentials stored in a profile description. From there, we exploit a file upload vulnerability via the controlled user&amp;rsquo;s profile picture to land an initial shell.&lt;/p&gt;
&lt;p&gt;Enumerating system users allows us to use credential reuse to move laterally and gain SSH access as a local user. We then discover an internal Jenkins instance running on port 8080 and set up an SSH local port forward to reach it. Enumerating Jenkins reveals it is vulnerable to CVE-2024-23897, allowing us to read the initial admin password, log in, and abuse the internal Groovy scripting engine to drop a shell as root.&lt;/p&gt;</description></item><item><title>Vault - OffSec PG Walkthrough</title><link>https://mermehr.github.io/posts/pg-vault/</link><pubDate>Sat, 10 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/pg-vault/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;Vault Lab demonstrates gaining initial access through NTLMv2 theft using a malicious .lnk attack on a writable SMB share. Due to excessive user permissions, privilege escalation on this machine can be done a number of ways. In this instance we’ll escalate privileges by abusing the &lt;strong&gt;Server Operators&lt;/strong&gt; group.&lt;/p&gt;
&lt;p&gt;![[183ff0e7555d7896ab108e0a0dd04dd0.png]]&lt;/p&gt;
&lt;h2 id="recon"&gt;Recon&lt;/h2&gt;
&lt;h3 id="nmap-scan-results"&gt;Nmap Scan Results&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;PORT STATE SERVICE VERSION
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;53/tcp open domain Simple DNS Plus
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;88/tcp open kerberos-sec Microsoft Windows Kerberos &lt;span style="color:#f92672"&gt;(&lt;/span&gt;server time: 2026-09-30 12:26:11Z&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;135/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;139/tcp open netbios-ssn Microsoft Windows netbios-ssn
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;389/tcp open ldap Microsoft Windows Active Directory LDAP &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Domain: vault.offsec, Site: Default-First-Site-Name&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;445/tcp open microsoft-ds?
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;464/tcp open kpasswd5?
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;636/tcp open tcpwrapped
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;3268/tcp open ldap Microsoft Windows Active Directory LDAP &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Domain: vault.offsec, Site: Default-First-Site-Name&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;3269/tcp open tcpwrapped
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;3389/tcp open ms-wbt-server Microsoft Terminal Services
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| ssl-cert: Subject: commonName&lt;span style="color:#f92672"&gt;=&lt;/span&gt;DC.vault.offsec
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| Not valid before: 2026-09-29T12:10:22
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_Not valid after: 2027-03-31T12:10:22
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| rdp-ntlm-info:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| Target_Name: VAULT
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| NetBIOS_Domain_Name: VAULT
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| NetBIOS_Computer_Name: DC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| DNS_Domain_Name: vault.offsec
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| DNS_Computer_Name: DC.vault.offsec
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| DNS_Tree_Name: vault.offsec
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| Product_Version: 10.0.17763
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_ System_Time: 2026-09-30T12:26:59+00:00
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_ssl-date: 2026-09-30T12:27:19+00:00; 0s from scanner time.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;5985/tcp open http Microsoft HTTPAPI httpd 2.0 &lt;span style="color:#f92672"&gt;(&lt;/span&gt;SSDP/UPnP&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_http-server-header: Microsoft-HTTPAPI/2.0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_http-title: Not Found
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;9389/tcp open mc-nmf .NET Message Framing
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49666/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49667/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49673/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49674/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49679/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49703/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;49808/tcp open msrpc Microsoft Windows RPC
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Service Info: Host: DC; OS: Windows; CPE: cpe:/o:microsoft:windows
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Host script results:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| smb2-time:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| date: 2026-09-30T12:27:04
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_ start_date: N/A
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| smb2-security-mode:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| 3.1.1:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_ Message signing enabled and required
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Initial &lt;strong&gt;Nmap&lt;/strong&gt; scans reveals standard Active Directory services on the target.&lt;/p&gt;</description></item><item><title>Resourced - OffSec PG Walkthrough</title><link>https://mermehr.github.io/posts/pg-resourced/</link><pubDate>Fri, 09 Oct 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/pg-resourced/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;Resourced shows how null session enumeration can reveal cleartext password in a user description, this will grant initial low-privileged domain access. Further share enumeration will uncover an old offline password audit containing registry hives and an &lt;code&gt;ntds.dit&lt;/code&gt; backup, allowing offline credential extraction. Using the extracted hashes to spray the domain yields access to a user account with &lt;code&gt;GenericAll&lt;/code&gt; control over the Domain Controller. Finally, a Resource-Based Constrained Delegation (RBCD) attack is leveraged via Kerberos S4U extensions to impersonate the Domain Admin and fully compromise the target.&lt;/p&gt;</description></item><item><title>Cockpit - OffSec PG Walkthrough</title><link>https://mermehr.github.io/posts/pg-cockpit/</link><pubDate>Sun, 06 Sep 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/pg-cockpit/</guid><description>&lt;h2 id="machine-summary"&gt;Machine Summary:&lt;/h2&gt;
&lt;p&gt;Cockpit demonstrates how a SQLi vulnerability and insecure credential storage can allow an attacker to move laterally into the system, gaining user-level write access and exploiting weak SSH security to obtain a fully interactive shell. As the compromised user, a sudo backup command containing a wildcard injection vulnerability can then be found and exploited, leading to full root access.&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" src="https://mermehr.github.io/posts/pg-cockpit/index-1791757522515.png"&gt;&lt;/p&gt;
&lt;h2 id="recon"&gt;Recon&lt;/h2&gt;
&lt;h3 id="nmap-scan-results"&gt;Nmap Scan Results&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;PORT STATE SERVICE VERSION
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Ubuntu Linux; protocol 2.0&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| ssh-hostkey:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| &lt;span style="color:#ae81ff"&gt;3072&lt;/span&gt; 98:4e:5d:e1:e6:97:29:6f:d9:e0:d4:82:a8:f6:4f:3f &lt;span style="color:#f92672"&gt;(&lt;/span&gt;RSA&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| &lt;span style="color:#ae81ff"&gt;256&lt;/span&gt; 57:23:57:1f:fd:77:06:be:25:66:61:14:6d:ae:5e:98 &lt;span style="color:#f92672"&gt;(&lt;/span&gt;ECDSA&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_ &lt;span style="color:#ae81ff"&gt;256&lt;/span&gt; c7:9b:aa:d5:a6:33:35:91:34:1e:ef:cf:61:a8:30:1c &lt;span style="color:#f92672"&gt;(&lt;/span&gt;ED25519&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;80/tcp open http Apache httpd 2.4.41 &lt;span style="color:#f92672"&gt;((&lt;/span&gt;Ubuntu&lt;span style="color:#f92672"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_http-server-header: Apache/2.4.41 &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Ubuntu&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_http-title: blaze
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;9090/tcp open http Cockpit web service &lt;span style="color:#ae81ff"&gt;198&lt;/span&gt; - &lt;span style="color:#ae81ff"&gt;220&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|_http-title: Did not follow redirect to https://192.168.210.10:9090/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="http-port-9090"&gt;HTTP Port 9090&lt;/h3&gt;
&lt;p&gt;HTTP on port 9090 leads to a Cockpit administration page for the web service. No immediate vulnerabilities can be found, so we&amp;rsquo;ll move on for now.
&lt;img loading="lazy" src="https://mermehr.github.io/posts/pg-cockpit/Cockpit-1791646142339.png"&gt;&lt;/p&gt;</description></item><item><title>Pivoting, Tunneling &amp; Port Forwarding – Operator Notes from HTB Academy</title><link>https://mermehr.github.io/posts/ligolo-pivoting/</link><pubDate>Wed, 08 Apr 2026 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/posts/ligolo-pivoting/</guid><description>A hands‑on how‑to and post‑action report for multi‑hop tunneling and manual routing</description></item><item><title>About</title><link>https://mermehr.github.io/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mermehr.github.io/about/</guid><description>about</description></item></channel></rss>