<?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 CyberMeerkat on Medium]]></title>
        <description><![CDATA[Stories by CyberMeerkat on Medium]]></description>
        <link>https://medium.com/@cybermeerkat?source=rss-f0ee6e6df394------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G5FDv-CqrKh9GnlE8bM2vQ.png</url>
            <title>Stories by CyberMeerkat on Medium</title>
            <link>https://medium.com/@cybermeerkat?source=rss-f0ee6e6df394------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:05:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybermeerkat/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[13Cubed Investigating Windows Endpoints & Memory Review]]></title>
            <link>https://medium.com/@cybermeerkat/13cubed-investigating-windows-endpoints-memory-review-5dde07297aed?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dde07297aed</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[13cubed]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 23:16:52 GMT</pubDate>
            <atom:updated>2026-11-02T23:16:52.341Z</atom:updated>
            <content:encoded><![CDATA[<p>On the 16th of March 2026, I bought the 13Cubed Windows bundle, which contains the Investigating Windows Endpoints and Investigating Windows Memory courses. I’ve heard a lot of good things about 13Cubed, and decided that it would be a good starting point to learn more about the Blue team. I also wanted a course that focused on practical skills, rather than just theory. Personally, I prefer courses with practical exams, as I feel that I learn much more, and feel much more confident and capable with the skills learnt, compared to only theory based courses.</p><p>In this post, I will go over what I learnt from the course, coming in as someone with 0 Blue Team knowledge, spending all of my career as of now within the penetration testing and GRC spaces for the last 4 years.</p><h3>Investigating Windows Endpoints</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*nFgEVd9kXjmsFej76Zz-ug.png" /></figure><h4>My experience with the course</h4><p>Starting off with the ‘Investigating Windows Endpoints’ course, I found it very insightful. Richard Davis (the author and founder) goes into great detail with all of the forensic artifacts. He provides a lot of knowledge, equipping you with information that would allow you to not only examine modern operating systems, but also older ones. While this may seem like a waste of time, it is important as we may encounter older operating systems in investigations.</p><p>I did struggle with understanding the concepts, as I this is my first experience with a DFIR course. As mentioned earlier, my experience has been in the offensive security and GRC spaces. Having said that, there were definitely aspects that Richard goes over, such as the ‘Persistence, Privilege Escalation and Lateral Movement’ section, that covers the DFIR side of what threat actors would do from a penetration testing perspective which was easier for me to understand.</p><p>I think another reason why I struggled a bit was because I was inconsistent with my studying. When I did study, I aimed to put in around 3 hours in. For the days where I worked from home, I spent 5 hours. While work did get busier at some points, where I would come home tired and didn’t want to study, there were definitely days where I procrastinated and just played video games for hours as soon as I got home. I also didn’t follow along with the material on my virtual machine. I had only gone over the theory and note taking until I reached the end, where we are given 2 practice scenarios and the relevant disk images.</p><p>At the time, around 2.5 months after buying the course, I just felt like time was passing too quickly (given I had bought the Windows bundle and it is only accessible for 1 year), I decided not to do the 2nd practice scenario. I only went over the 1st scenario (which I probably missed a lot of things), and jumped straight into the exam.</p><p>One thing to mention, is that while the answers to the scenarios are provided, we don’t get a video where Richard goes over the scenarios himself. He has expressed that the plan is for the community to perform their own analyses, and to post them online (without providing the actual disk images themselves). At the moment, given that there aren’t many people posting, it may limit your learning; but as the course gains more awareness, I imagine we will receive more analyses to learn from. Regardless, if you have the time, you should do both the practice scenarios.</p><h4>The Exam</h4><p>The exam consists of 80 multiple choice questions (MCQ). 60 of them are pure MCQ. The other 20 will require you to investigate the exam disk image to answer the remaining MCQ. The exam isn’t proctored, and does not have a time limit, which makes it great for anyone that has exam anxiety. I spent 3 nights going over the exam, before submitting my answers. While I mostly relied on my notes, I did google a fair amount to confirm my answers, or to get more information on different artifacts. There are additional resources shared in the modules, which I hadn’t read. But I’m sure that they have good information as well.</p><p>On the 17th of June 2026 (3 months and a day) later, I passed the exam with a score of 91/100.</p><p>While the score seems impressive, I still know that I have a lot to learn, and given the mistakes, I am a bit hesitant with creating writeups for the scenarios. But maybe after some more studying and speaking to DFIR professionals, I may decide to write them up and publish them here.</p><h4>Pros:</h4><ul><li>Richard Davis is very quick to respond to any queries that you have. He’s also very helpful and tries his best to help solve any problems that you have.</li><li>It’s a relatively affordable course (Much cheaper than SANS courses, and from what I’ve heard, they are very comparable in terms of quality and content)</li><li>Very in-depth content</li><li>The course gets updated whenever any changes to the artifacts are made, and students are informed when any updates to the learning material have been made</li><li>It’s a hands-on practical course and exam</li><li>The exam doesn’t have a time limit (for anyone that has limited time in a day to still complete the exam)</li><li>No certification expiry</li></ul><h4>Cons:</h4><ul><li>I wish that this course had more reputation and awareness, to have more writeups from others for the practice scenarios to learn from</li></ul><p>All in all, I think it’s a great course, and the only downside is really the fact that it’s not as wellknown compared to other companies like SANS. I do hope that more people hear about 13cubed’s courses, because I genuinely think that the courses are great, and that you will definitely get your moneys worth with how much you learn. You can definitely see that Richard Davis cares about his customers, and wants to provide high quality services to them.</p><p>I highly recommend this course if you’re interested in DFIR, even if you have no experience. As mentioned from the website: <a href="https://training.13cubed.com/investigating-windows-endpoints">https://training.13cubed.com/investigating-windows-endpoints</a>, Richard Davis has explained that it’s designed to be beginner-friendly but that it is also a deep dive into Windows forensics, so there are high chances of even experienced DFIR professionals learning something new. The aim of the course is to help newcomers, experienced professionals or anyone fascinated by digital forensics to sharpen their skills.</p><h3>Investigating Windows Memory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*Kf_B0JNybAe6HxjllrCgNw.png" /></figure><h4>My experience with the course</h4><p>Moving onto the memory course, I started it the day after passing the IWE exam. Richard mentions that this course is more intermediate-advanced level forensics, making it more difficult than the previous course. He also hired a professional penetration tester to create 4 new images (3 to practice on and the exam). Richard had to personally perform his own analysis to identify what the penetration tester had done, in order to teach us. I think this is a great selling point, that this course would allow students to encounter real-world incidents.</p><p>I finished the course on the 30th of October 2026. It took me a while to complete the course, as I had life events going on which meant I didn’t have the time or energy to study. But eventually, I had some moments where I could squeeze in time to complete the course.</p><p>It was my first introduction to Volatility which I’ve heard about a lot prior to completing this course. It’s definitely an interesting tool, and I thoroughly enjoyed it.</p><h4>The Exam</h4><p>The format is exactly the same as the Windows Endpoints, but obviously the questions and scenario are different. I was planning to complete the Chaos at Cobalt practice lab, but opened up the exam and figured I’d just start the exam without the practice. I’ll probably go over the images some time in the future though, since I did enjoy the Windows Endpoint Trouble at ACME practice images.</p><p>Given my experience with the Windows Endpoint exam, I was already familiar with the format, so I was more prepared on what to expect. I spent less time on this one, completing it within the day. I passed the exam on the 2nd of November 2026. I ended up with a score of 92/100.</p><h4>Pros &amp; Cons:</h4><p>My pros and cons stay the same for this one as well. Although, I’d also like to add on that I saw a job listing where the 13cubed training is desirable, and that the company will onboard you into the 13cubed training platform to complete some of the 13cubed courses if you do not have them. That’s another pro, in that it could help you with the resume process, to land a DFIR job.</p><h4>Overall:</h4><p>Overall, the courses are very good, and I highly recommend anyone interested in DFIR to buy and complete the courses. They’re much more affordable than something like a SANS, and from what I’ve heard, give you comparable knowledge. I’m definitely curious about this side of security, and will go over the other practice images and HTB Sherlocks in the future.</p><p>For anyone that’s coming into this field and has no experience, I don’t think you should be scared to take this course. While I do have a few years of cybersecurity experience, they weren’t super relevant. So I was essentially learning it all from scratch. Like Richard mentions, it’s best to do the Windows Endpoints course first, before the Windows Memory one, as you build the foundations and concepts from the Windows Endpoints course, which carries over to the Windows Memory course. For offensive security professionals, it’s a good way to learn what defenders see, and what to be mindful of when you execute your attacks.</p><p>I personally feel that it’s helped me to understand cybersecurity from a blue teamer’s perspective, and will definitely allow me to be more helpful for any security incidents. Additionally, it’s helped me with the GRC aspect of my job, as I have a better understanding of the blue team, and how we can build our playbooks and incident response plans.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dde07297aed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds Play DriftingBlues6]]></title>
            <link>https://medium.com/@cybermeerkat/proving-grounds-play-driftingblues6-2d6e9f60f316?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d6e9f60f316</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[provinggrounds]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 06:11:53 GMT</pubDate>
            <atom:updated>2024-10-31T06:11:53.371Z</atom:updated>
            <content:encoded><![CDATA[<p>Another day, another box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*ZSirSQurAvzD0my5VSdJPA.png" /></figure><p>Using the nmap script I wrote. You can find it <a href="https://github.com/Security-Meerkat/Simple-nmap-script/tree/main">here.</a> Alternatively, you can just run your own nmap command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*wcmIcCDXaClzNwdB_wjSoA.png" /></figure><p>Anyway, it only finds port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*Zz5HDJ54onYW8-MUjBnH9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qsdo8oiVCzWg0q96AyUL-Q.png" /></figure><p>While I check out this login page, I’ll run feroxbuster with .zip extension as the robots.txt file suggested.</p><pre>feroxbuster -u http://192.168.184.219/ -k -w /usr/share/wordlists/SecLists/Discovery/Web-Content/directory-list-lowercase-2.3-medium.txt -x zip</pre><p>admin:admin fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*_qFzFl_-44QEwkOyu_8GHQ.png" /></figure><p>Nothing in here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*n1SZY05D5dA5YTKoqSlpQg.png" /></figure><p>A google search for default credentials shows a bruteforce script and RCE exploit. However we don’t have the version number of the CMS at the moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*basAWNUnZ0sSn_oWmxvLZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*y2Q-EuhfqpTRjydHA5Vn1A.png" /></figure><p>Looks like it requires a password which we don’t have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTewGgJq2biQaoLDc4PWRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*YBJJlBqnfsrKtB0XldCvPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*-6H241pZzMaAG16ZWJ6pFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*FsgaUjIwuCOuCZTcNOAwlQ.png" /></figure><p>So I use zip2john to grab it’s hash. Then we use john to crack that hash which gives us the password for the zip file. Inside is a file named ‘creds.txt’. This contains the credentials for mayer.</p><pre>mayer:lionheart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*-OgIWINOlWum2P3B0aoM7Q.png" /></figure><p>Testing out the credentials for the textpattern application, we can see that it works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O07FVTNFDuAwufy0Cnar4g.png" /></figure><p>It logs us in. Just press the prompt to ignore the warning as it will keep popping up.</p><p>At the bottom we can see the version number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*I5AynAMHEfVUQKLLpu5Dng.png" /></figure><p><a href="https://packetstormsecurity.com/files/161660/Textpattern-CMS-4.8.3-Remote-Code-Execution.html">Textpattern CMS 4.8.3 Remote Code Execution</a></p><p>Which matches with our exploit. Reading the exploit, it is an authenticated RCE exploit. It uses credentials to log into the CMS, then upload a PHP file for RCE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVaYD4BWkmDf_Z1hAkilnQ.png" /></figure><p>Publishing what I have here changes the URL. This seems to match the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*3pDwyGcXFH081iQIh6rGTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*pV30JYzYL6Aj_AqnFu-2tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHWYyl1ikosX70Md-LgAqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*RVY_RbmaOe6TqSywcrmTQQ.png" /></figure><p>So I couldn’t get the exploit working, so I tried it manually (since it’s just a file upload with PHP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*oDqfp1OKij7KUy3dmNYp5Q.png" /></figure><p>So we need to navigate to here, to upload files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*C2VvusMxDTJxqZwKDX4WDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*0M87BAY7lo5aBmKbhIpLjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5oYdqzfadODswRzwzMKfBA.png" /></figure><p>So that’s done. But feroxbuster didn’t show any upload pages, and I have no idea where it’s stored. So we need to do some enumeration. In the admin tab, we can see that it’s directory path is /var/www/textpattern/files. Meaning we need to go to http://&lt;IP&gt;/textpattern/files. Let’s see what it shows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFrFoYuA3MUlfrBGhEUh7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*DU1Mds9W_lrdiM07k9s_kw.png" /></figure><p>So we can see our uploaded php file. Sweet. Now we can click on it to use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*oUZ9pGuwgRmgfhOimrbPmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*63AeeKTEeI1e1biyWFuIOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*DHrOGOyzlxGt_0oC3KQCwg.png" /></figure><p>Using busybox since it seems to work right off the bat for me. Upgrade the shell as usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*iEXBS9TCmhcvOBYLm01gVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*7T8cvu8jxA374B3cCsEsgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*qFCa3cK2bssrL1ahhcMTiA.png" /></figure><p>No user accounts. So just from www-data → root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*fyFs_N6YwARPLKbnZndt_g.png" /></figure><p>Didn’t see anything in the /home, /opt or /tmp directories. Linpeas doesn’t show anything else that’s interesting. So looks like it’s a kernel exploit.</p><p>Grabbing the exploit from <a href="https://github.com/firefart/dirtycow">here</a>, we can see that it’s compiled with gcc in the example. And this box does have gcc from what we saw in Linpeas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*2xl7DkWhyK5FzDizbbJQ_g.png" /></figure><p>Looks like our shell is dead…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*5JSFjJVBO6-7DUOPpmLJNA.png" /></figure><p>Nope. It just took a while.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*bq9a4IvZLhvfDBGZVQPqtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*jqMDtoJI5jbd1wxi3k9k0Q.png" /></figure><p>And since we have root privileges, we can read the proof.txt file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d6e9f60f316" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THM Year Of the Owl Walkthrough]]></title>
            <link>https://medium.com/@cybermeerkat/thm-year-of-the-owl-walkthrough-dd2d15f5bde8?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd2d15f5bde8</guid>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Wed, 30 Oct 2024 11:05:38 GMT</pubDate>
            <atom:updated>2024-10-30T11:05:38.931Z</atom:updated>
            <content:encoded><![CDATA[<p>So starting off a bit differently. I thought I’d try writing up a simple bash script for my nmap commands. It’s quite ugly and definitely not good. Was a combination of google and chatgpt to get the job done. But it was a little test to see if I could automate my scans since I run it all the time (Plus it was boring typing out all of the ports for machines that had a lot of them). It also allowed me to also scan for UDP since I don’t always scan for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*FIZ3dBn6MLedXQ2HTzw7Kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*iNMjW4xPzX8WUt1GR_fNIw.png" /></figure><p>No UDP ports on the box.</p><p>Navigating to port 80 and 443, we only see an image of an owl. Although it’s a pretty cool image. There’s also nothing in the source code. There’s also no robots.txt file either. So let’s do some directory bruteforcing.</p><pre>feroxbuster -u http://10.10.168.15/ -k -w /usr/share/wordlists/SecLists/Discovery/Web-Content/raft-large-directories.txt -x php,zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6ECTIWumNgQL_m0q0f4Ow.png" /></figure><p>Looks like these accounts are disabled so we can’t do anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*tnxJZGUjsFvJZFLwbMT5YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4CLGd0PL3gWj9aiJDWJcw.png" /></figure><p>Soooo I was stuck. And I checked a walkthrough to see what I missed. And the next step was SNMP. However I was confused since my UDP scan found nothing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*msk79YdNdwlY0BUjaa7sSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhDN0TwGx5mg2w2veBaSsQ.png" /></figure><p>So I’m still confused as to why it doesn’t show up as opened, and how you’re supposed to know to check out SNMP if it says open|filtered. But anyway, we bruteforce SNMP to find it’s community string, and use that to enumerate the machine.</p><p>Note: The IP changed because I tried restarting the machine several times to see if SNMP would ever be ‘open’.</p><p>Also tried this, but it didn’t give us anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*C9oMj60sbSv7iXQgSVni8w.png" /></figure><p>So from the initial snmpwalk, I don’t really see anything interesting. I see some processes but I can’t see any being run with credentials. I also don’t see any vulnerable programs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*bWACs3_WUVfpjuP8Bk0_2g.png" /></figure><p>I need to add this to my toolkit. It shows user accounts too. So this is useful. Maybe we can try brute forcing on SMB, MYSQL, WINRM or RDP?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APTg-wZWI7EGq_E4GaQjmw.png" /></figure><p>I’ve never seen this before. But let’s use crackmapexec to validate the credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rEya9ZKR_V0-OtvAU_UQZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJjQ6g0BnR2c_Sawi5ac_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kTR7PelYQqn2HZI3Qc910w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vL5gNeicNT33uzwvwCrblg.png" /></figure><p>Cool! Looks like we can use evil-winrm to get a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIlgVkcAPxhUUwWBSql_qQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*UmauHcFCQBoRnAd07tkcwg.png" /></figure><p>Nothing interesting in Desktop, Downloads or Documents folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*TzQjm16NImG7AFWzk61Dcw.png" /></figure><p>Didn’t see anything interesting in C drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*RmlGIyi19m1WhdoZ9z4sLQ.png" /></figure><p>Wow… It’s blocked?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3PghyJWY0qGEk7o5Cr7h2w.png" /></figure><p>Then I’ll use this method instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pbKhuzvMZFQkpoRcHO6DvA.png" /></figure><p>Oops… I’ll grab the other one lol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*Hulb2Z9QuJqz5mGzfLoUbA.png" /></figure><p>Huh…Interesting. Only the .ps1 one worked… We’re getting a lot of access denied. Looks like they’ve locked down on our permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_elFXgyLBhk41cSQFv_DA.png" /></figure><p>This was interesting to see. Backup files for the SAM and SYSTEM registry hives.</p><pre>C:\$Recycle.Bin\S-1-5-21-1987495829-1628902820-919763334-1001\sam and system.bak</pre><pre>download &quot;C:\$Recycle.Bin\S-1-5-21-1987495829-1628902820-919763334-1001\sam.bak&quot;<br>download &quot;C:\$Recycle.Bin\S-1-5-21-1987495829-1628902820-919763334-1001\system.bak&quot;</pre><p>So now I’ll attempt to download them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*2zxRjJ-nhh4NdWYxmlPV-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5nJC0WRnQm5NI_8RkFsew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*oRec10MrWaV5t0rLdu1v3A.png" /></figure><p>Oh. Was it the quotes?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*csi-H4PRTyOD70Mjqt30Ng.png" /></figure><p>Seems like it was the quotes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*0dGi0Cdgk3_3IaZhtrxYag.png" /></figure><p>I was stuck for a while because I tried downloading the files directly from the recycle bin. Turns out, we can’t do it directly from there. So I copied the files out of the recycle bin and downloaded them after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*HilVLtnQjzA0QxSQjsR9EQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*78_Rr_2JLkAlWkAnoSXc6A.png" /><figcaption>The .bak files are downloaded to the directory where we ran evil-winrm</figcaption></figure><p>I moved the files to a different directory (This step isn’t required)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*cnQfv1-wfSiTv4o8Lcy4iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*_OPHqt98KBaUJ19TddZXbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UcjQ8RnmOeDhukRvVmpTVg.png" /></figure><p>Using secretsdump, we can dump the hashes locally and use the Administrator’s hash to log back into the machine to successfully elevate our privileges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd2d15f5bde8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds Play Monitoring]]></title>
            <link>https://medium.com/@cybermeerkat/proving-grounds-play-monitoring-dd241d644647?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd241d644647</guid>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 09:45:58 GMT</pubDate>
            <atom:updated>2024-10-29T09:45:58.959Z</atom:updated>
            <content:encoded><![CDATA[<p>So we run the usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*2vs-QWpPWrJvNC55a9sdbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oGDGT4G-jKrC58FtKldJKA.png" /></figure><p>So we have SSH most likely at the end. STMP. HTTP on port 80 and 443 which we will check out first. And LDAP on 389. I’m not sure what’s on 5667.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*ExK2mG6zYnRwr6ByDWpMKQ.png" /></figure><p>So both 80 and 443 run this. Googling port 5667, it mentions Nagios. So I guess it checks out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*DlMXA2deFvoN2Aw7JY9QFw.png" /></figure><p>I go straight to googling Nagios for any exploits and find authenticated OS command injection and remote code execution vulnerabilities. But we have no version number yet so let’s keep enumerating. Clicking on the ‘access’ button, we see a login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvnHiJyOsbclrb06Ryq13w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*dB9BbO1VwuvVGH3briIs7w.png" /></figure><p>admin:nagiosadmin fails. admin:admin also fails.</p><p>I’m going to run gobuster and see what we find.</p><pre>gobuster dir -u http://192.168.152.136 -k -w /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt</pre><p>There’s no robots.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*fEAWWpllHOVI2PJM-bCu6g.png" /></figure><p>Also found zero open ports in UDP.</p><p>… Turns out the credentials that worked was nagiosadmin:admin… I was hasty and read the default credentials wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*0bQgm1Kl2fEBUbuJHg4Ygw.png" /></figure><p>It’s on version 5.6.0, meaning it’s vulnerable to the OS Command Injection vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWF2GYHjNUzTiz1R0qLoHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*74UY4aq_iHSAWFQyLc1jvg.png" /></figure><p>Couldn’t get it working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRbYmteOuwhoAOP6sV89pA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*2gR3OCdWPu4FjjLdtGY6vw.png" /></figure><p>I checked the other exploits and this one seemed like it could work too (since it’s for versions prior to 5.6.6). And it did!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd241d644647" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GOAD Part 2]]></title>
            <link>https://medium.com/@cybermeerkat/goad-part-2-3a8b39495bf9?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a8b39495bf9</guid>
            <category><![CDATA[goad]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Sat, 26 Oct 2024 04:16:01 GMT</pubDate>
            <atom:updated>2024-10-26T04:21:29.225Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F14497842&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fnaruto-kakashi-smiling-waving-gif-14497842&amp;image=https%3A%2F%2Fmedia.tenor.com%2FgRIFt87ceo0AAAAN%2Fnaruto-kakashi.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b575aa617855b3a129e2a438a875e709/href">https://medium.com/media/b575aa617855b3a129e2a438a875e709/href</a></iframe><p>Alright. We’re back for another session of GOAD. Previously, we had issues with bloodhound CE and fixed it at the end. We also found that we had RDP access to the .11 box. So what we’ll do, is send our bloodhound files over to BloodHoundCE’s ingester. From there, we can have a look at it in a visual format to figure out our next steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*mWC-AKt2pbzonVl0v9t2Wg.png" /></figure><pre>sudo docker-compose pull &amp;&amp; sudo docker-compose up</pre><p>Since I turned everything off in my previous post and am starting it up again, I need to run the same command to bring up my Bloodhound instance (Note that it needs to be in the directory where we stored our docker-compose.yml file). And I log in with the new password that I created last time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tODuc-b-SsoEnbPyror-A.png" /></figure><p>So we can’t just run bloodhound-python in the terminal now, as it will use the version that is only compatible with the legacy version of BloodHound. We need to use this version of <a href="https://github.com/dirkjanm/BloodHound.py/tree/bloodhound-ce">bloodhound-python </a>for BloodHound Community Edition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*Rp4eWiRUbpUWZKzs03NgzA.png" /></figure><pre>git clone -b bloodhound-ce https://github.com/dirkjanm/BloodHound.py.git</pre><p>The reason why I’m running this with docker is to avoid any conflicts in case I do want to use the legacy version.</p><p>And in case I break anything else in the process which I’d prefer to avoid.</p><pre>cd BloodHound.py</pre><pre>sudo docker build -t bloodhound .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*lGMJ7wBZe2LOjgA7DmOj7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*0C9Rkk9M2lFUkw_J_lWXQA.png" /></figure><p>So we let it run until it finishes.</p><pre>sudo docker run -v ${PWD}:/bloodhound-data -it bloodhound</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*6_MuZDwkphoH4iK8mP-YqQ.png" /></figure><p>Now we can run the docker instance.</p><pre>bloodhound-python -d north.sevenkingdoms.local -u jon.snow -p iknownothing -c All --zip -ns 192.168.56.11</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwfGBC_G1BEhD3XDIGpQ3Q.png" /></figure><p>And now we can run bloodhound-python’s CE compatible version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*cB-8WQuSp8J32xFHgHPzMw.png" /></figure><p>Since this is the directory that we ran the docker instance in, and therefore bloodhound-python, this is the directory where our files are stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*MJjD0BrQfSG1KlKES9b7vw.png" /></figure><p>Just for my own sake, I’ll move them to a directory where I want to store it instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*S8WfmlN0f5DC86UYFTtdLg.png" /></figure><p>Shout out to this <a href="https://hacker4u.medium.com/bloodhound-community-edition-bhce-e35bf49fcfe6">guide here by Hacker4U</a>. I used the guide to set all this up.</p><p>So now let’s upload our data. Head over to: <a href="http://localhost:8080/ui/administration/file-ingest">http://localhost:8080/ui/administration/file-ingest</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTyGb--x3qclxhEORCFyuw.png" /></figure><p>Now to upload our files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*nfTcV3IRLUN41ov7MrQrgQ.png" /></figure><p>Upload the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CfWVev6ENWomvcjBM5tYaA.png" /></figure><p>It should say ‘complete’ for the status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdmWDbi5nU6NGmy6PEq8qw.png" /></figure><p>Now, click on the ‘Explore’ tab → ‘Cypher’ → Folder button → ‘All Domain Admins’ → ‘Run’. And we can see the result on the side. And that’s how you use BloodHound CE!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4omOphw4Tq609NdIRu7VA.png" /></figure><p>I like to use this query. It shows all users that we’ve seen. From here, I right click on a user and mark them as ‘owned’. So here, we can mark samwell.tarly, jon.snow and brandon.stark as ‘owned’.</p><pre>MATCH (m:User) RETURN m</pre><p>Scrolling down in the Active Directory pre-built searches, I click on ‘Shortest path to Domain Admins’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r063cPB6MFJ2fhlU7oSp0A.png" /></figure><p>And it looks like we could make modifications to the GPO (Group Policy Object). With this, we can apply malicious changes to users. I’ve never tried it before, and it does mention it could be a false positive so I’ll leave it for now. Let’s keep looking.</p><p>Annnnnnnnnd my Kali VM is unresponsive. Fun…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17747074&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fnaruto-anime-sakura-mad-angry-gif-17747074&amp;image=https%3A%2F%2Fmedia.tenor.com%2FsuJJHArPXSgAAAAN%2Fnaruto-anime.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e10fe18e1e1352d6d623d388db2606b/href">https://medium.com/media/1e10fe18e1e1352d6d623d388db2606b/href</a></iframe><p>I might need to allocate more RAM to it. For part 1, I had set it to 24GB of RAM. I still have roughly 13GB left to allocate so I’ll give it 32GB of RAM and see how it goes. So I power off the VM and make my changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*xq0hEndr7TKhcDnDh1raBQ.png" /></figure><p>And no more troubles. We’re good!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F12411445&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fanime-boruto-naruto-sakura-haruno-happy-gif-12411445&amp;image=https%3A%2F%2Fmedia.tenor.com%2FtIvLsjCSVIoAAAAN%2Fanime-boruto.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/66eb089c67e6f84477cbb1f63801c562/href">https://medium.com/media/66eb089c67e6f84477cbb1f63801c562/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsnNzfOQGhJme_3fgqy8Lw.png" /></figure><p>Okay. So I went to the ‘Pathfinding’ tab and went through each of our ‘owned’ users and if they had any relations to Eddard (One of the Domain Admins). And like our earlier result, it goes GenericWrite permissions over the GPO. But it also shows WriteDacl which we didn’t see earlier. It seems like this is the way forward. Making malicious changes to the GPO and pushing it out to users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*fYvDT1-h8ef1D8fJiqQogA.png" /></figure><p>So I grab pyGPOAbuse and place it in a directory named Tools.</p><p>So bear with me, as it’s my first time doing this. But it seems like we need the ID of the GPO in order for this to work.</p><p>So I hopped over to <a href="https://bloodhound.readthedocs.io/en/latest/data-analysis/nodes.html#id17">Bloodhound’s documentation</a> to figure this out. “<strong>Object ID</strong>: The GUID of the GPO, pulled from the GUID property on the GPO from Active Directory”. So it seems like this would be the ID of the GPO.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*E101viycZFdXJS-8sSNxnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*sRj3BNvSN-TZuipWIuOEsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*Ail_-Hc4To5CHwJaqHoANQ.png" /></figure><p>Soooooo I’m wrong… Hmmmm…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17236628&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fshikamaru-anime-naruto-shippuden-manga-series-face-palm-gif-17236628&amp;image=https%3A%2F%2Fmedia.tenor.com%2FX3QRuo_MqTEAAAAN%2Fshikamaru-anime.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c88118fd77d1a567b7817465b9fe26cc/href">https://medium.com/media/c88118fd77d1a567b7817465b9fe26cc/href</a></iframe><p>How can I get the correct ID?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*USe63jN-W0k80gLTLfGLkA.png" /></figure><p>I didn’t really want to do this since it felt like cheating (in case future CTF’s I don’t have shell access.) But I RDP into the server and run the AD module for Powershell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*cdrfbWgrgHXmaMjOcEUGuQ.png" /></figure><p>This is the ID. So how would we find this from Bloodhound’s data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*_fxaGYDJ9pK2H9ERzJ8ioA.png" /></figure><p>Okay. Looking back at the BloodHound data, we can see there’s a match right here. So we’ve learnt something new lol. It’s this. I initially thought that this wasn’t it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*TKvkPl2kf0bawEqY-Qt3cg.png" /></figure><p>I ran this and it worked! I initially tried the more advanced method with a reverse shell but it didn’t seem to like the ‘command’ flag… (I didn’t want to make changes to the domain so I tried with the reverse shell option first). It’s easier to avoid making changes since in a real engagement, you’d have to alert the client and restore the changes back to normal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGD39AbSIFVvGqPo0-vSkQ.png" /></figure><p>Oops. Looks like I just messed up. I didn’t get any connections back to my listener though. Ah wells. Maybe some other time I’ll figure out how to get it working.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F22373713&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fitachi-sasuke-gif-22373713&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fn1o8iTAp-cEAAAAN%2Fitachi-sasuke.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a11827ca44205cda00012bed0c55ecd/href">https://medium.com/media/2a11827ca44205cda00012bed0c55ecd/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*C4lXwr5UL4s8Ch7ui7q_lA.png" /><figcaption>I thought it was a local account but it’s actually a domain account</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*MB97e1FCPdp19VF6ulcnaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*eKFZhkcEdp8qR_CXPrv45A.png" /></figure><p>So it did work. It created a local admin named ‘john’ onto the machine. So we’ve owned ‘Winterfell’.</p><p>Okay. Now what? Well I’m thinking of running mimikatz to grab more credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*p8QFBNpPCrdAbpmeBmR_RQ.png" /></figure><pre>cp /usr/share/windows-resources/mimikatz/x64/mimikatz.exe .<br><br>#Swap out the . for another file path that you wish</pre><p>So I create folders in my tools directory since I like to organise it like this. And then copy the mimikatz executable to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*MFzwOKr_PMmRR7AJY5ZeVQ.png" /></figure><pre>python3 -m http.server 80</pre><p>Set up the python webserver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*1zn3out3xJrURnJNYPr2mQ.png" /></figure><p>Oh… Hmmmm. That’s odd. I wonder why I’m getting access denied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*vQKZLoWXjbphsk2gneJYlw.png" /></figure><p>Okay. This worked. I ran this via an admin powershell session in RDP with our new user ‘john’. You can also just upload the file via evil-winrm but I thought that might be too simple.</p><p>However, it looks like Defender kills mimikatz off pretty quickly lol. Now I’m pretty clueless when it comes to AV evasion, and it’s something I’m not really looking to look into just yet (Given there’s a lot more basics that I need to cover before I look at it). So let’s find a workaround.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMRJ5U6czkFpyB5EuiJ7TQ.png" /></figure><pre>crackmapexec smb 192.168.56.11 -u john -p &#39;H4x00r123..&#39; --sam<br>crackmapexec smb 192.168.56.11 -u john -p &#39;H4x00r123..&#39; --lsa<br>crackmapexec smb 192.168.56.11 -u john -p &#39;H4x00r123..&#39; --ntds</pre><p>Gotta love crackmapexec (or netexec). We achieved our goal of finding more credentials.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17857501&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fnaruto-naruto-clone-funny-dancing-dance-gif-17857501&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fbf4vvgp8xIsAAAAN%2Fnaruto-naruto-clone.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7b8a6d96bb520dfc16acd5e1a64b717/href">https://medium.com/media/b7b8a6d96bb520dfc16acd5e1a64b717/href</a></iframe><p>So in the results, we can actually see plaintext credentials for robb.stark: ‘sexywolfy’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*JE3r1uuba9OwyXQh-YUTqg.png" /></figure><p>Although I guess we would’ve cracked it anyway.</p><p>So I save all these hashes into a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*lOm8q6Pt7NtSa_ELjgn1Jg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*fHn5uH7n9OcOuu-d_t7B4Q.png" /></figure><pre>cat &lt;hashes file&gt; | cut -d &#39;:&#39; -f 4</pre><p>So we can save these into another file. These are the NT hashes of the accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*CtSKCtfCoXeQLT5rnRw_ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-zmphy8nhiWdOMtcLKd4A.png" /></figure><p>So I chuck these hashes into a very useful website named <a href="https://crackstation.net/">crackstation</a>. We wouldn’t do this in a real engagement since we’d be exposing client credentials. But here, it’s fine since it’s a practice lab. While there are some old passwords we see (that we already own), we also see new ones!</p><p>Needle, 345ertdfg and hodor. (Vagrant doesn’t count since it was part of the setup for GOAD).</p><p>Looking at the positions, Needle is 5th, 345 is 9th and hodor is 12th.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*pH2gaw-_OmEo9TC5OctzPA.png" /></figure><p>So that gives us the following new credential pairs:</p><pre>arya.stark:Needle<br>sansa.stark:345ertdfg<br>hodor:hodor</pre><p>Okay. Since we have every user’s hash in this domain, we have complete control over this domain. Additionally, as we have domain admin hashes, we have can do pretty much whatever we want.</p><p>Since there’s another box on this domain, the SQL Server, I’ll show another example of gaining remote code execution.</p><pre>impacket-mssqlclient north.sevenkingdoms.local/sql_svc@192.168.56.22 -hashes &#39;:84a5092f53390ea48d660be52b93b804&#39; -windows-auth </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Au65mlsQ4b5pGkEdu98oHw.png" /></figure><pre>EXECUTE sp_configure &#39;show advanced options&#39;, 1<br>RECONFIGURE<br>EXECUTE sp_configure &#39;xp_cmdshell&#39;, 1<br>RECONFIGURE<br>EXEC xp_cmdshell &#39;&lt;command here&gt;&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MAijwgwwHijNshRsi72viA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YqbXwiwddganrfGa7XZhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*XNsVwFiDYKkS-cEjx9f9dg.png" /></figure><p>Here, all I did was use the xp_cmdshell to run the powershell reverse shell command from <a href="https://www.revshells.com/">revshells</a>, which connected back to my listener. The SQL_SVC account has impersonation rights, so we could abuse this to get SYSTEM, allowing for full control over this machine. This was my original idea when I tried kerberoasting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*gyZjhJe4DOLdUa8qf32nzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*8TLPeWQQaDXhb_KWXt6cNQ.png" /></figure><p>Alternatively, we could just use our domain admin hash from earlier to log in. It’s neat that there’s so many ways to accomplish a task. And something I found fascinating doing CTF’s, and reading other people’s walkthroughs.</p><p>Anyway, that’s the north.sevenkingdoms.local domain taken down. In the next part, we’ll look at the other domains and find a way in. See you all next time!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F11375327&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fkakashi-hatake-smoke-naruto-anime-%25E5%258D%25A1%25E5%258D%25A1%25E8%25A5%25BF-gif-11375327&amp;image=https%3A%2F%2Fmedia.tenor.com%2FysGHZrfN1J4AAAAN%2Fkakashi-hatake-smoke.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/5307cb8656ab4cb16e1e52d1a3be4c56/href">https://medium.com/media/5307cb8656ab4cb16e1e52d1a3be4c56/href</a></iframe><p>Special thanks to <a href="https://github.com/Orange-Cyberdefense/GOAD">Mayfly277</a> for creating this environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*xuZAfah3ljwbNh0c2GXZAQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a8b39495bf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GOAD Part 1]]></title>
            <link>https://medium.com/@cybermeerkat/goad-part-1-8e43b1e45e21?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e43b1e45e21</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[goad]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 09:30:19 GMT</pubDate>
            <atom:updated>2026-01-31T01:22:28.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*xuZAfah3ljwbNh0c2GXZAQ.png" /></figure><p>Welcome back folks! Something a little bit different today. So in preparation for the new AD format with the OSCP exam, I’ve decided to set up GOAD and learn more about AD attacks. <a href="https://github.com/Orange-Cyberdefense/GOAD">Game of Active Directory</a> (GOAD), was created by MayFly277. This is not really a walkthrough, it’s more so of me trying things, breaking things (accidentally), and trying to fix it up…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F16333736&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fgoten-lost-mad-dragon-ball-z-anime-gif-16333736&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fa8fTErORf18AAAAN%2Fgoten-lost.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b224c19729bcac75f3ddbc95a6967a0/href">https://medium.com/media/4b224c19729bcac75f3ddbc95a6967a0/href</a></iframe><p>So it’s not the first time I’ve tried setting up GOAD, but it’s the first time I was successful in doing so. This setup will be using GOADv2 (V3 is currently in Beta). I followed <a href="https://www.youtube.com/watch?v=fXausmYcObE&amp;ab_channel=Conda">Conda’s guide</a> to set it up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tu0w04Pks-5QlGOXzasn8w.png" /></figure><p>Note that the full setup is big, and if you don’t have the resources, to spin up some of the smaller labs such as GOAD-Light. Spinning up the full GOAD lab along with some firefox tabs and discord uses roughly 34.5GB of RAM.</p><p>I’m just going to update all of our binaries before we start.</p><pre>sudo apt update -y</pre><pre>sudo apt upgrade -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*sWAZ_L1RI2AOyFZFpz5BFQ.png" /><figcaption>Error message after trying to run goad</figcaption></figure><pre>./goad.sh -t start -l GOAD -p virtualbox -m docker</pre><p>So I receive this error message after the update and upgrade business. In an attempt to fix it, I try installing the virtualbox-dkms package again. It didn’t quite fix the issue so I used chatgpt and used the commands below which fixed it.</p><pre>sudo apt install virtualbox-dkms</pre><pre>sudo apt install virtualbox-dkms linux-headers-$(uname -r) </pre><pre>sudo modprobe vboxdrv<br>sudo modprobe vboxnetadp<br>sudo modprobe vboxnetflt</pre><p>And now it’s all working!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F1396268726007039186&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fdragon-ball-daima-daima-kid-goku-goku-dancing-gif-1396268726007039186&amp;image=https%3A%2F%2Fmedia.tenor.com%2FE2CLAjCjBNIAAAAN%2Fdragon-ball-daima-daima.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba505e777dda1bb59d09f87cc885b7b4/href">https://medium.com/media/ba505e777dda1bb59d09f87cc885b7b4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*4y9pbwW9sOjgnXoa31v4pA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*iAOm9B_W4dfPlNhOZ4LG_A.png" /></figure><p>So running our nmap host scan, we can see 7 hosts. Our IP is .1, so we can ignore that. Meaning we have 10,11,12,22,23 and 100 to look at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*p9K9EaVwK0dwFGCWKnEEgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*XrZmnjeNdOch5eVmbDjH3A.png" /><figcaption>All port scan to find hosts (Saves time instead of script and version scanning every port)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2EGKW9L8WzXZmWytkbBbA.png" /><figcaption>Version and script scan on the ports we found earlier.</figcaption></figure><p>So after our first scan, we can see that this machine is a domain controller for the sevenkingdoms.local domain. And it’s hostname is Kingslanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*wst4Ehugen-bO3d_7eYUzA.png" /></figure><p>I don’t have feroxbuster on this box, so I’ll install it. While I run this, I’ll check out the other ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpG5eqZ3btPgLBGn_AGR2A.png" /></figure><p>So now I’ll check LDAP and RPC. Since it’s Active Directory, our goal is to find either a shell or valid credentials to start off with breaching the domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*X3GbQiM92fpsk9iUXlD-ig.png" /></figure><p>So here, the ‘successful bind must be completed’ message is telling us that we cannot do ldap searches unless we have valid credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*jphSbS1J8mzOWVRh_b7P8Q.png" /></figure><p>I ran enum4linux with null authentication and guest (Guest with no password), and both didn’t find anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*YcLgm2tLaAe8IT-E-cElNQ.png" /></figure><p>There’s also no null authentication to RPC either.</p><p>I don’t see anything interesting from directory brute forcing with feroxbuster either. Maybe I’ll check the other boxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1E8eWhaYncjdW_m3qAS8pg.png" /></figure><p>.11 is also a domain controller. The hostname is winterfell and it’s in the sevenkingdoms.local domain too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoM0ZQvhrq9Ick5_2OfcYw.png" /></figure><p>Machine ending with .12 is also another domain controller. It’s hostname is Meereen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*JnzoQrGVA1cxma_aqrsl1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*peln4_1nVQ7MpHfZOLz0zQ.png" /></figure><p>So the .22 box is not a domain controller. This machine, named Castelblack, is running a Microsoft SQL Server. It’s also part of the north.sevenkingdoms.local domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hC_AkrpGg5XJMokM2oKvjQ.png" /></figure><p>And the last machine is this one. It’s hostname is braavos.</p><p>I think .100 is another box I included to the network but I’m not sure why it’s up since the box isn’t turned on… Well whatever, it’s not part of GOAD so we’ll continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TinJnC5XBO0dpM4IkDk7rQ.png" /></figure><p>So this is something we can run to check what machines have SMB on the network and get some information on them. From the output, we can see that there are 2 machines in the essos.local domain (Braavos &amp; Meereen), north.sevenkingdoms.local also has 2 machines (Castelblack &amp; Winterfell), and the machine that we’re looking at (Kingslanding) in the sevenkingdoms.local domain. So 3 domains in total. We also have their build numbers and Windows version.</p><p>Okay. So since nothing worked for .10, let’s try the same things on .11. Ldapsearch and rpcclient didn’t show anything. But enum4linux worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*LHWAadg0miN11tytW14DRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCjEIkI7m5Z9ltPG35IPxg.png" /></figure><p>It’s given us some users! This is perfect. We have a starting point. With users, we can try ASREP-Roasting to potentially get some credentials. We also have a password for the samwell.tarly user! Sweet!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*ByBuCjkz_q82U3c5SqRFgA.png" /></figure><p>We also get the password policy for the north.sevenkingdoms.local domain. A minimum of 5 characters for a password is required, and has a brute force lockout timer of 5 minutes if you’ve locked out an account. You will also lock the account out after 5 incorrect attempts. And the lockout timer will reset for the account after 5 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*yQ7KOm24P0JN3GsbPqY-Eg.png" /></figure><p>The night watch group also seems interesting. I wonder what that group can do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*EmM3MaSGAKGfYuhPrLCsvA.png" /></figure><p>So I copy the users into a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*0-NkrroOWMBFq7L9p0ogFw.png" /></figure><pre>cat users.txt| cut -d &quot;[&quot; -f 2 </pre><p>We can use the ‘cut’ command to remove other parts that we don’t want. Then just copy paste the output into the users.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*vEgE05gWVRZm9IDmOiqGbQ.png" /></figure><p>And one more time, but changing the previous command slightly, and we get a proper user list.</p><pre>cat users.txt| cut -d &quot;]&quot; -f 1 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*zmEOOucCydbuwgLBDntRQA.png" /></figure><p>And add the password to a password wordlist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BStNQNZ47I1NCs1AW70i1A.png" /></figure><pre>crackmapexec smb 192.168.56.11 -u users.txt -p passwords.txt --continue-on-success </pre><p>So I’m doing a password spray (Since we only have 1 password in the password.txt file) to see if any other accounts share the password. Looks like it’s only samwell.tarly that uses it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xAwZR_XSQP5cr0z7BsV7Q.png" /></figure><pre>impacket-GetNPUsers -dc-ip 192.168.56.11 -request north.sevenkingdoms.local/samwell.tarly</pre><p>So as I mentioned before, doing an AS-REP Roast attack, we get a NTLMv2 hash for the brandon.stark user. NTLMv2 hashes cannot be used for Pass the Hash attacks, but they can be cracked or relayed. Here, I’ll try to crack the hash to get a plaintext password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*1xoog_wjhUdSNpOFrtZ2AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*2FU0xaHBunkEZXrGqYFDEg.png" /></figure><p>So we copy the hash down. Now I don’t remember all the numbers for the mode for hashcat (Although you don’t always need it), so I look it up on <a href="https://hashcat.net/wiki/doku.php?id=example_hashes">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*4PU-C9yo5fFYata9V0pzCQ.png" /></figure><p>So I copy that and do a Ctrl + F to find that string in the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*MC8OlwyQrAjZng1mxgOLBg.png" /></figure><p>And there it is. Mode will be 18200.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*qH_ezQbX_y2gq33WyVr_pA.png" /></figure><p>I forgot that rockyou hasn’t been extracted yet since it’s a fresh install of Kali Linux. So we can use gzip for that and then proceed.</p><pre>sudo gzip -d /usr/share/wordlists/rockyou.txt.gz</pre><pre>hashcat -m 18200 brandon.hash /usr/share/wordlists/rockyou.txt --force</pre><p>So let’s see if I can crack this hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWtxBhj5GQr6oAa1SX65Ag.png" /></figure><p>So now we have brandon.stark:iseedeadpeople</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*2i24bRr6Ik4BKKncL1qCZg.png" /></figure><p>Cool. Now I want to password spray ‘iseedeadpeople’ (since we’ve only tried it once so far [Granted it’s been over 5 minutes since I last did it so it’s fine]).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EhhCu72BeaWmsmBFcSP9CA.png" /></figure><p>Okay. So we have 2 pairs of credentials but they aren’t for any administrators for Winterfell.</p><pre>crackmapexec smb 192.168.56.22 -u users.txt -p passwords.txt — continue-on-success</pre><p>I tried it for Castelblack, the other machine in this domain but we had the same output.</p><p>Since Castelblack (.22) has the Microsoft SQL Server, I’m thinking of trying Kerberoasting to see if I can access it. (My idea is that since we know there’s an account named ‘sql_svc’, it probably has an SPN attached to it).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDaR0VGf5yxuDcQS1dEhKw.png" /></figure><pre>impacket-GetUserSPNs -request -dc-ip 192.168.56.11 north.sevenkingdoms.local/brandon.stark</pre><p>Cool. So there were other users with SPN’s set as well. Just like we did before with AS-REP Roasting, we grab the hashes and put them in a file, and then try cracking it. However, we use a different mode this time. Doing the same method, we can see that the mode to use is 13100.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*YX2A5t0JF11SGUp83giGFw.png" /></figure><pre>hashcat -m 13100 kerb.hashes /usr/share/wordlists/rockyou.txt --force</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooogoyuVSd-G7Iz561NpYQ.png" /></figure><p>Okay. So it couldn’t crack SQL_SVC or sansa.stark’s hashes. But we now have jon snow’s password: ‘iknownothing’. And that goes into the password.txt file too.</p><p>Again with the password spray, I don’t see any admin access from John or anyone else using the same password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*_lDa17KhHfvenEBHMz1g1Q.png" /></figure><p>So using the command below (With the valid credential pairs):</p><pre>crackmapexec smb 192.168.56.11 -u &lt;valid user&gt; -p &lt;valid password&gt; --shares</pre><p>We get the result above. So all of our credential pairs have read access to those 3 shares.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*t_13e8UfUvLZhQTjHC4Inw.png" /></figure><pre>smbclient \\\\192.168.56.11\\NETLOGON -U &#39;jon.snow%iknownothing&#39; -t 4000<br>mget * (Then press &#39;y&#39; to say yes to grabbing the files when prompted)</pre><p>So the ‘NETLOGON’ share has 2 .ps1 files in it. These files are for powershell scripts. Let’s open them up and have a look inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mr7Gk1t0no36bNJiHWmcQ.png" /></figure><p>Alright. So it looks like the ‘script.ps1’ file contains credentials to another user. So we add their password to the list. And I’ll need to check out the SYSVOL share because there might be passwords in there too. And finally, ‘secret.ps1’ has a secret which looks like it’s base64 encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*dapKo3C_FpjXNNzcj0IRAQ.png" /></figure><p>I guess not. I’ll leave it for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*mGELVIJkxOTZQxDVbq5FiQ.png" /></figure><p>For SYSVOL, I put recurse on and grabbed everything (Pressing ‘y’ for each prompt.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*723GeAxP7RrFghUGI60uOA.png" /></figure><p>Once that was done, I exited out of smbclient and changed into the sysvol directory named ‘north.sevenkingdoms.local’. I use the ‘tree’ command to quickly look at all the folders from a high level. But I don’t think it’s anything interesting so I’ll leave it for now. (I was looking for <a href="https://infosecwriteups.com/attacking-gpp-group-policy-preferences-credentials-active-directory-pentesting-16d9a65fa01a">GPP credentials</a> but I don’t see any.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*1S6vcucl9IgSJvYm78RRXg.png" /></figure><pre>sudo apt install docker-compose</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*OyvYy26oYa1S4QqdRZlAoQ.png" /></figure><pre>curl -L https://ghst.ly/getbhce | sudo docker-compose -f - up</pre><p>So this is just installing the <a href="https://support.bloodhoundenterprise.io/hc/en-us/articles/17468450058267-Install-BloodHound-Community-Edition-with-Docker-Compose">bloodhound community edition</a>. It does it through docker.</p><p>Note: I had technical issues. While this was running, my VM crashed, and I didn’t even see the password to save it (Since installing this, it gives you a one time password that isn’t regenerated).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13723604&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fson-goku-kakarott-saiyan-oops-dragonball-super-gif-13723604&amp;image=https%3A%2F%2Fmedia.tenor.com%2FrLEH0VoOg0AAAAAN%2Fson-goku-kakarott.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c000832261f34b394b4300be9b112df/href">https://medium.com/media/7c000832261f34b394b4300be9b112df/href</a></iframe><p>The fix: ???</p><pre>curl -L https://ghst.ly/getbhce | sudo docker-compose -f — down</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*D-5nFK2blHOq6T5HImeEHQ.png" /></figure><p>Then rerun the original command</p><pre>curl -L https://ghst.ly/getbhce | sudo docker-compose -f - up</pre><p>→ So after waiting a couple of hours, it doesn’t exactly work… Well anyway, you can find guides to use the legacy bloodhound here. I might try and see if I can get it working properly tomorrow.</p><p>__________________________EDIT__________________________</p><p>The ACTUAL fix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*036uM7sinWHrkO6J5nLM3Q.png" /></figure><p>So I tried grabbing the docker-compose.yml file from the <a href="https://raw.githubusercontent.com/SpecterOps/BloodHound/refs/heads/main/examples/docker-compose/docker-compose.yml">BloodhoundCE github</a>, and running the following command in this same directory.</p><pre>sudo docker-compose pull &amp;&amp; sudo docker-compose up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xzLBjpuYB63mfU1ZjmvYA.png" /></figure><p>This runs a lot faster than before and more importantly, it gives us the initial password.</p><p>In your VM’s browser, go to this URL: <a href="http://localhost:8080/ui/login">http://localhost:8080/ui/login</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*wl9GF8lQ2RjseiC-LAN7Zw.png" /></figure><p>Make sure to copy the password properly (I accidentally copied spaces after the password too). And log in as admin. It will then take you to another page where you reset your password. So reset your password and move on.</p><p>I’ll cover what to do next with it in part 2. But now, the setup is done.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F2131664940390990367&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fdbz-dbz-happy-mr-satan-buu-majin-buu-gif-2131664940390990367&amp;image=https%3A%2F%2Fmedia.tenor.com%2FHZUx-CAowh8AAAAN%2Fdbz-dbz-happy.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5a67b09abb2c7c527ef3d37de016480/href">https://medium.com/media/b5a67b09abb2c7c527ef3d37de016480/href</a></iframe><p>While I’m waiting for the bloodhound CE stuff, I just decided to run ldapdomaindump to view info first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*czNI8GN1BH7fy_U5VVzEyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*iIx2gqvu7IYIgM2GwVsm3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*BYRYM9QBwJ8DBlMnizBg0A.png" /></figure><pre>firefox domain_users_by_group.html</pre><p>You can run ‘firefox &lt;filename.html&gt;’ to open them in firefox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*ej8c48HekI-KaTDpMWt5cA.png" /></figure><p>So I can see that these users are part of the Administrators and Domain Admins group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*xc6sKCG8aMxKzEDMJezcQw.png" /></figure><p>It looks like any users in the ‘Stark’ group are part of the ‘Remote Desktop Users’ group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*SsgKmmGhkWdurCg844gD1w.png" /></figure><p>So that means that any of these users should be able to remotely access devices. Let’s give it a shot, since we have 2 users from this group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JJSS9oeD67SXbYjI-5PuQ.png" /></figure><p>Hmm… Guess I was wrong? I thought you could use evil-winrm for remote desktop users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHMAN_J5d2sBNYRgnDlQOA.png" /></figure><pre>xfreerdp /v:192.168.56.11 /u:jon.snow /p:iknownothing /cert:ignore /clipboard</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SuG_pMceltC1rHFersY1w.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F20827628&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fhappy-dragon-ball-z-gohan-dende-excited-gif-20827628&amp;image=https%3A%2F%2Fmedia.tenor.com%2F4dA-QYpJ3iUAAAAN%2Fhappy-dragon-ball-z.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/79a93cc6af177252585cd22c1fdc21be/href">https://medium.com/media/79a93cc6af177252585cd22c1fdc21be/href</a></iframe><p>Would you look at that? Winrm didn’t work but RDP did.</p><p>Edit: Whoops. It’s 2 different groups. Remote DESKTOP users and remote MANAGEMENT users. RDP access = Desktop and WinRM access = Management.</p><p>So now we have access to a user on the domain via RDP. How can we get more information in the domain and move around?</p><p>Find out next time, on the next episode of CyberMeerkat’s GOAD adventures, because if I make this blog post longer, you might just skip it.</p><pre>./goad.sh -t stop -l GOAD -p virtualbox -m docker<br>#Run the command in the directory that contains the goad.sh file</pre><p>Run that command to stop all of the VMs when you’re done with playing around with GOAD. Otherwise let’s continue with this in part 2. See you all later next time!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F4814015&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fgoku-bye-goodbye-wave-dragon-ball-z-gif-4814015&amp;image=https%3A%2F%2Fmedia.tenor.com%2FUDSW1iPhpUgAAAAN%2Fgoku-bye.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/f127a40913499823018d34bce318ee0f/href">https://medium.com/media/f127a40913499823018d34bce318ee0f/href</a></iframe><p>Edit: <a href="https://medium.com/@cybermeerkat/goad-part-2-3a8b39495bf9">https://medium.com/@cybermeerkat/goad-part-2-3a8b39495bf9</a> Here’s part 2 if anyone’s still interested.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e43b1e45e21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds Play Election1]]></title>
            <link>https://medium.com/@cybermeerkat/proving-grounds-play-election1-e891602a9d5b?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/e891602a9d5b</guid>
            <category><![CDATA[provinggrounds]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Wed, 23 Oct 2024 01:50:44 GMT</pubDate>
            <atom:updated>2024-10-23T01:50:44.056Z</atom:updated>
            <content:encoded><![CDATA[<p>Our first walkthrough for PG Play, moving on from TryHackMe for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*u3dml4v0PNaskk5OacJ3cg.png" /></figure><p>Looking at the results, it looks like we’ll need to do some directory brute forcing on port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*cgzZOMR5r5JIuK0Mr79pzw.png" /></figure><p>So it’s found some things but I’ll keep letting it run for now.</p><p>I moved to check /robots.txt and we have some directories. Let’s check them out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*GMM3odvzm3E0dWIHEblONQ.png" /></figure><p>So admin, wordpress and user cannot be found. But election leads us to a page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjxVStsrcVHUkQDrUfzWQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*hyjrXASykCUXUhvLdPwyLQ.png" /></figure><p>So looking at the page, it says register to admin and then type in your voter’s code. Since we know from before that <a href="http://192.168.144.211/admin">http://192.168.144.211/admin</a> didn’t load anything, I thought I’d try <a href="http://192.168.144.211/admin">http://192.168.144.211/election/admin</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fqe5YKXErmMNk_YnKioj4g.png" /></figure><p>Which leads us to this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*D3_sz2ZWJTwrPQGyEvR4bQ.png" /></figure><p>Typing ‘1234’ for the Admin ID led me to here (Surprised me since I just randomly tried it). I initially tried ‘1’ which didn’t do anything. But then on my next attempt with ‘admin1’, it gave an error and a pop-up alerting me that I had 5 more attempts before a lockout appeared.</p><p>Note: Apparently ID1234 was the default ID(I just lucked out but in the future it’d be something to google into more)</p><p>Now our issue is figuring out the password to move forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*PGY1GV_-t0x1KEqxOcAtJQ.png" /></figure><p>Our gobuster finished but didn’t find anything interesting. So we’ll try a different tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6EncolRcuKDhxHUDV1teQ.png" /></figure><p>It’s been a while since I’ve used this tool. It’s like gobuster but also does it recursively, and checks deeper for more directories. Which means it’s a LOT more information so we need to check it more carefully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEOvxBgHCXkWFwHnawv7-w.png" /></figure><p>Scrolling through, we see system.log which is a 200. So I go to the path, and it downloads a file named ‘system.log’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*xq4b521Ic3j7CMMRXiDugg.png" /></figure><p>Opening up the file, we can see credentials for love. love:P@$$w0rd@123</p><p>Annnnnnnnnnnnnnnd it still failed… I was very confused. But then I remembered, SSH is open on the machine. So I tested it out, and it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*3-3OP8KI9qLoNqnQOliAaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bl_43UwRkd2GfiYZ8HOa7Q.png" /></figure><p>Unfortunately we can’t run any commands with sudo for love.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*6VnsGfppENMdWALkye2GyA.png" /></figure><p>Interesting. Love has the sudo as admin successful file there in their directory though. I don’t see anything in the /home, /opt, /tmp, /var/www/html directories so I’ll proceed with linpeas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*1kfFob0Yhd1oXjSCCak0YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyvrTY0JUoiDWWIu47F7ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*yGcBbWVm222K4bbvPT6LyQ.png" /></figure><p>So Serv-U doesn’t look like a normal binary (atleast to my knowledge). And /var/spool/cron/crontabs being highlighted looked interesting to me but I don’t have permission to access the directory. So I’ll move forward with Serv-U for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*QpHkk_CnrBh87JadNZGpsA.png" /></figure><p>So searching the Serv-U exploit, we can see a privilege escalation script for it. And it says to compile it with gcc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2AsL47FNAIR90qPflNI8A.png" /></figure><p>From Linpeas, we can see that it does have gcc on the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oLp9YqiGm8-wszRWdNh-Q.png" /></figure><p>So pop it over to our victim, compile it and run it. And we’re root!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e891602a9d5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THM RootMe Walkthrough]]></title>
            <link>https://medium.com/@cybermeerkat/thm-rootme-walkthrough-2931edfbfd41?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/2931edfbfd41</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 05:38:34 GMT</pubDate>
            <atom:updated>2024-10-22T05:38:34.901Z</atom:updated>
            <content:encoded><![CDATA[<p>Another day, another box. Let’s begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*fmrmFmo3kikrTl_4Hwnwzg.png" /></figure><p>2 ports open. SSH and HTTP. Let’s check out the webapp further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwJvTajKM8txtkbxiQnmwQ.png" /></figure><p>Nothing in source code. So I’ll check for directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*GyWligbY2hdhUxU2PnnBtg.png" /></figure><p>/uploads is empty. But /panel leads to a page with a file upload function. So let’s do some tests to see what sort of files it accepts and if they are sent to /uploads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFcIn4S9Qaw5h1xCrjlzbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*pUWWS3K-UtatRN2SLq_0Gw.png" /></figure><p>As a test, I tried putting in whitewinterwolf’s PHP webshell but it seems like it’s not allowed. So I’ve loaded up burpsuite and opened the page in burpsuite’s web browser so that we can investigate this further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEJGPbiOGwGUEuNb5nCkoQ.png" /></figure><p>So I’ve sent the request to repeater to play around with it. As I mentioned before, I want to test if it does indeed go to /uploads. So I’m changing it from .php to .png.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndStVgLenZOQ9ThQ5stQhw.png" /></figure><p>And it looks like it was successful in being uploaded to that directory. If you want to double check, you can also go to /uploads to see that it’s there (which it is). Moving on, now we want to try and get a foothold to the box via file upload. I tried nullbyte and content type which allowed it to bypass the upload restriction but it wouldn’t execute. After some trial and error, we were finally able to upload it due to the extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*-UUoH4RmcWpHsnZmB33Rhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1O1huHVn-FWJv-89JsGTUw.png" /></figure><p>Using PHP proc_open from <a href="https://www.revshells.com/">https://www.revshells.com/</a> we can get a successful reverse shell connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*894SAa20jubGURDSZR56QQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*ezp9mOjgx9CBXlD0eLU_wg.png" /></figure><p>And once we’ve upgraded our shell we can continue on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*zg_Y2hNkO59J0JS8XvFUIQ.png" /></figure><p>Since the sudo as admin file is there, this indicates that the rootme user has access to sudo rights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*ezDpv_Vyo5VvweDdanrwKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*LuVJor13NOpgtAtIrD_kAA.png" /></figure><p>A neat trick to run linpeas in the machine’s memory (So it won’t drop a file onto the disk).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*olhiMFOltA1lBVTZxhA4Tw.png" /></figure><p>As we suspected, the rootme user has sudo rights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*loCNmB4DCx-ZVN15Y6MgTw.png" /></figure><p>And it shows that python is a SUID. This means that if we have execute privileges over a binary, it will run with the owner of the file (in this case root), instead of our current user’s privileges.</p><p>Using the trusty website <a href="https://gtfobins.github.io/gtfobins/python/">https://gtfobins.github.io/gtfobins/python/</a>, we can quickly gain root access to the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*6TTQ-D4SWrOX7zxl-I8laA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*HvTY-O97pZN_irmScM8AoQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2931edfbfd41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THM Internal Walkthrough]]></title>
            <link>https://medium.com/@cybermeerkat/thm-internal-walkthrough-cec1739177ec?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec1739177ec</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 01:57:06 GMT</pubDate>
            <atom:updated>2024-10-22T01:57:06.204Z</atom:updated>
            <content:encoded><![CDATA[<p>Another hard rated box on the TryHackMe platform. Let’s go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k1EUQWWqvY6LbF92FjOCWw.png" /></figure><p>So not much on here. Most likely web app is the way in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*SqNg4V_-m3G5-Hk5ocdqKQ.png" /></figure><p>Nothing super interesting to me so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*2qzoR6l56Hnzre3qYCerXw.png" /></figure><p>So we ran gobuster to do some directory bruteforcing for more information. Starting with /blog, it looks like a wordpress webapp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*sa-OM31oO6mxOsvYri2d5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*q47jY7JFm-kozA4yC2FZ7w.png" /></figure><p>Since it’s wordpress, I’ll instantly hop with wpscan. If you register with wpscan you can get free 25 api requests. We can see that it’s running version 5.4.2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*R4YMCy-hKVblwdzfyn-uHQ.png" /></figure><p>Looks like there’s RCE and SQLi . But they don’t seem like the way to me. At least, not at the moment. So let’s move on for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GTCyx3qBZGkISvOT9naxw.png" /></figure><p>Gobuster found this page. So let’s try default credentials here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*GRn-kaUMtZBlQByRfNlz5w.png" /></figure><p>I guess not. Let’s keep moving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*qgC02fHB744yvLbyF6YO5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTulMZBYGVIwGVBwLSFKfw.png" /></figure><p>So in /wordpress, if we click on login, it takes us to the login page but has trouble finding it. Looking at the address, we can see that it’s not using the IP address but rather a domain name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*T8f7l10hTURDfUUCBw0aBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*m-isD0xl_PLvi0jfoGak4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLStjfBQum8VVWO-sZxL1g.png" /></figure><p>So once we’ve added it into our /etc/hosts file, it can now reach the wp login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*DSvK-MJGBkpODKn_aggwdg.png" /></figure><p>So we can confirm admin is a user. But we don’t know their password. I just tried some default passwords. Since xml-rpc is up, we can try brute forcing the admin account for their password (I don’t see any other way in so let’s give it a shot).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*9SqLQNR0urVu_0mINdalcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*HtddwETmDpI0ZINDYwvHlg.png" /></figure><p>And it found a valid combination! admin:my2boys</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5Jafz8-Y1Cs5z9MmITiQQ.png" /></figure><p>Alrighty. So now that we’re logged in, we’re going to get our foothold onto the box. So go to ‘Appearance’ → ‘Theme Editor’ → ‘404 template’. Now replace 404 template’s contents with pentest monkey’s reverse shell php code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*OvZsRutmaCYOS3OILvf0rA.png" /><figcaption>Opening up pentest monkey’s php revshell in mousepad to copy the contents</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*Qxe9Kx0RJZ9gtmlo7BbztQ.png" /></figure><p>Make sure to press ‘Update File’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*JvoudvVQJYMgH0klNDZrdQ.png" /></figure><p>Now go to this address with our listener set up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*wu3x27wlUCzlN2aBl13_ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*Y4Y8QvUNBPTqLJRB_uoihA.png" /></figure><p>Now that we have our foothold, let’s do some enumeration on the box (After upgrading our shell to a full TTY).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*r80b2ZY3EMX3SBdpzvLaLQ.png" /></figure><p>Looks like we may need to gain access to Aubreanna’s account before we can move to privilege escalation. Let’s try and find a way to their account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*w5dvVtRPdxRXSepTYo8fSQ.png" /></figure><p>So there’s more users on the box maybe? Anyway, we have Aubreanna’s credentials now. Let’s give it a try. aubreanna:bubb13guM!@#123</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*WFWE5ffG_cYus6Aegf46SA.png" /></figure><p>It works! But looks like more enumeration is required to root the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*pwp2lbjeomqYlzOp6voHPg.png" /></figure><p>Interesting. We’re told that there’s another machine that is running Jenkins on an internal network. So in order to access it, we’ll need to pivot through this machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*pZjWABNsRsiv2nA-_Y_uIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*YnoEtml9zJjSRhKBlPoiig.png" /></figure><p>So I like to use ligolo. Makes everything much simpler for pivoting. So you’ll need to set up the proxy before you can connect to it with the agent. And then once you get a connection, you start the tunnel to that session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*At-6ezQqzQ9nySN8d4O-uw.png" /></figure><p>Since the text file told us it was running Jenkins on port 8080, let’s check it out. I don’t have any credentials that I know work for it, so I try Aubreanna’s credentials just to check but it fails. Default credentials also fail. Doesn’t work with Bill either… I guess let’s try brute forcing.</p><p>I am not a fan of brute forcing web pages. So I’m going to choose the easy route and use Zaproxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*SNtfQ7SAnyouCbMspcQLXw.png" /></figure><p>So I have the foxyproxy extension on firefox already configured. So I’ve just enabled it. And all I need to do is to send another login request so that it appears in Zaproxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yb8y0_hi9lqNiL-PsbNSnQ.png" /></figure><p>Now that it’s there, right click on the request → Fuzz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9GxLMzCJWhj6tCK2F_NeMw.png" /><figcaption>Note: You’ll need to remove the first fuzz payload since it’s empty (The green one in this image)</figcaption></figure><p>So I highlight ‘admin’ since that’s what I want to fuzz for the usernames. Then I add in my user wordlist that I want to use. Then I do the same for password → But highlight ‘password’ and use ‘rockyou.txt’ instead.</p><p>Additional Note: I just realised, I don’t have ‘admin’ in the userlist so add them to your list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6iJWpFaDV9ihzMo6MyjpCA.png" /></figure><p>And when we test the credentials, it works! admin:spongebob</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evL4c0E2_6B1x9FWCAKl8g.png" /></figure><p>Go to ‘Manage Jenkins’ → ‘Script Console’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n-AOAgveyZS8Cs2ksBPBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*jWq1Xrk7MO_osZz_m5OrSw.png" /></figure><p>And we have a connection. As usual, upgrade the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*hoE2I8RyRWEcAdkBRpd63w.png" /><figcaption>We ran into some trouble. I believe it’s due to the shell we had. Which is why I ran /bin/bash before the usual upgrade commands.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gLouYpqIesyBFCifwGQ0SQ.png" /></figure><p>And we have root’s credentials. root:tr0ub13guM!@#123</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*pQTOMvaH3bK9XD10tPb08Q.png" /></figure><p>I thought we had root but it didn’t work. Strange.</p><p>After some time, I was still confused but decided to go back to the first machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*kgCY5dsi_HAOxoK5DDAcow.png" /></figure><p>Oops. Well, I learnt new things today. So I didn’t look closely enough when I used ‘ip a’ (It mentioned docker).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec1739177ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THM Daily Bugle Walkthrough]]></title>
            <link>https://medium.com/@cybermeerkat/thm-daily-bugle-walkthrough-6dbbd270d5fd?source=rss-f0ee6e6df394------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dbbd270d5fd</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberMeerkat]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 06:24:04 GMT</pubDate>
            <atom:updated>2024-10-21T06:24:04.729Z</atom:updated>
            <content:encoded><![CDATA[<p>Onto a more difficult box. As usual, we’ll begin with an nmap scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*uvAKK22NVPFwzTZbiQONDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*yW59_fqvLg2vm-8iEpiqKA.png" /></figure><p>So let’s begin with enumerating the webapp.</p><p>Since it’s joomla, I’ll see if we can use anything from here to help us: <a href="https://book.hacktricks.xyz/network-services-pentesting/pentesting-web/joomla">https://book.hacktricks.xyz/network-services-pentesting/pentesting-web/joomla</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*3Qq696C4gqHVgrpfUV1w-w.png" /></figure><p>So if we get credentials, we can try them here, SSH or MySQL for further enumeration/access.</p><p>We can see it was written by the user: Super User.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*hHJes-_1gtpAROS-u4uSYw.png" /></figure><p>Let’s see if there are any other directories to look at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*9eynJQ58g6cLPnBmJSCSTg.png" /></figure><p>Since I don’t have joomscan, I’ll install it. And to run it, I ran: joomscan -u <a href="http://10.10.118.172/index.php">http://10.10.118.172/index.php</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*nofGFUymoAO4yDZ8Zk1OjA.png" /></figure><p>Nothing interesting. Well since it’s my first time using it, I’m not really sure if my input was right. So I removed index.php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*BBiN4SA-eEiU9DO1pQL51Q.png" /></figure><p>So now we can see that it’s running Joomla 3.7.0. Let’s do some googling on that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*h3QXmqnIJZeJGa8xNnLR7Q.png" /></figure><p>And it looks like there’s SQLi for this version of Joomla. Okay. So it talks about using SQLMap. But I don’t want to go with SQLMap since it’s not allowed on the OSCP exam.</p><p>So to get more information on this vulnerability, I read the blogpost that is referenced in the exploitdb page: <a href="https://blog.sucuri.net/2017/05/sql-injection-vulnerability-joomla-3-7.html">https://blog.sucuri.net/2017/05/sql-injection-vulnerability-joomla-3-7.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*g2tL04rfRCLPQCVJpBJPyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*jOdLNIqVewxzKWpKaxZ2CA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FoQR290mxgpdt_KomswEQg.png" /></figure><p>Going to the /administrator page, that we found from nmap, shows a login page. Supplying ‘ just gives us the default error message for invalid credentials.</p><p>After being stuck for a while, I kept on and found this: <a href="https://github.com/stefanlucas/Exploit-Joomla/blob/master/joomblah.py">https://github.com/stefanlucas/Exploit-Joomla/blob/master/joomblah.py</a></p><p>So let’s grab it onto our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*7Z-aKU1QyZyjjeMUuioWzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hwk_IHSsgj1z_rFSJ1Pl5w.png" /></figure><p>And running it gives us Jonah’s hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KaH6GyN59NHqMjVwg-EIkA.png" /></figure><p>I tried hashcat but maybe used the wrong modes. I tried 3200 and 25600 but cut 25600 off early.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*C07MTcBX2hmq1XNUOKfZAg.png" /></figure><p>So I tried john instead and it found it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*cPl2duRRdxpLvfruk9FL3w.png" /></figure><p>So it looks like we can’t just use it to get a foothold to the box this way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*AGCn3yJvW_nIZ3j-H4n3jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1frFBsO17jpm-N3UPZ15Kw.png" /></figure><p>So using the creds, we can log into the administrator portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*gjaqUgbpZ9iSyhcjgJ0idQ.png" /></figure><p>From hacktricks, we know that we can get RCE if we’re able to access the admin portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*tEBqldHVlvosKu8_6lM_SA.png" /><figcaption>The way to templates is a bit different here but the idea is still the same</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSQ4sWO3B3a0z-DOMOkzKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlStE8VAlr3n4iyy9ek-PQ.png" /></figure><p>Choosing protostar’s template, we will edit the error.php file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UC5CI6YN_7X9rWnrMmcl3A.png" /></figure><p><a href="https://github.com/WhiteWinterWolf/wwwolf-php-webshell">https://github.com/WhiteWinterWolf/wwwolf-php-webshell</a></p><p>I used this neat tool by WhiteWinterWolf to get a webshell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*kBhklogG9KFsD1jXJCyIOQ.png" /></figure><p>Accessing the protostar template’s error page now shows us our whitewinterwolf contents.</p><p>And from here, we can get our initial foothold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*v0JRjyriXNhOuttmrfD7Bg.png" /></figure><p>So running the ‘id’ command, we can see that we’re running as Apache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*3UiYkfQwVf9HjONQM3FbTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*BTkKai8pGsT6rZaM88zDaQ.png" /></figure><p>And we’ve got our reverse shell. I used php since we know php is on the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*oP6JZ39Or0Zj8FIsBUirEg.png" /></figure><p>Upgrade the shell to a full TTY</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*dS9MysNEKotz9X-JSEa5jA.png" /></figure><p>Okayyyy. So we can see a user. But we don’t have permissions to their home directory at the moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*MddSRJOjvsHippYzHGRU0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*cbcQT7aLO7mLz8LI4HWZUQ.png" /></figure><p>So looks like we’ll probably need to gain access to jjameson first, and then move onto root. So I’m guessing there’s some creds lying around. But could also be SSH keys too?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*PYy8PDVQX4Lu9xHwk41Icw.png" /></figure><p>So doing more enumeration. We come across the configuration file in the webapp. And it contains root’s password to the mysql database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*QvJCgp6SdOaG0lX9RZtInw.png" /></figure><p>Using those credentials, we can log in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*yZbZIDruZiXQZJnvTEeMkQ.png" /></figure><p>I didn’t see anything particularly interesting in mysql so I exited out of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*bA6pmUJ64y6a2kh7U8_pOA.png" /></figure><p>And I tried the same password we had for the mysql database on jjameson’s account and it worked. Password reuse eh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*1LzqLU9wS90d_XahHU623g.png" /></figure><p>And would you look at that? The yum binary was flagged as a potential privilege escalation vector.</p><p>Let’s see what GTFOBins has to say about the yum binary and escalating our privileges: <a href="https://gtfobins.github.io/gtfobins/yum/">https://gtfobins.github.io/gtfobins/yum/</a></p><p>Now let’s create our files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*rzHMASfiM1STYmwuwGl_RA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*SYemnnCdd6BQG1cWwLvkWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*Cb5TWb1RYgt5_2Cl0SVhRQ.png" /></figure><p>And now we’re root. So what we did was we created our own plugin and enabled it (test.conf) And created file1 to mention where our plugin is being stored (Which was the /tmp directory). And then we created a script that will use our plugin and execute /bin/sh. Since it is run as ‘sudo’, it’ll use sudo’s privileges to run /bin/sh as root.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dbbd270d5fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>