<?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 Amit Nandi on Medium]]></title>
        <description><![CDATA[Stories by Amit Nandi on Medium]]></description>
        <link>https://medium.com/@amit04?source=rss-16f95664a533------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rs79skEjo2lEl8jKvnGusg.jpeg</url>
            <title>Stories by Amit Nandi on Medium</title>
            <link>https://medium.com/@amit04?source=rss-16f95664a533------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:06:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amit04/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[NMAP  Vulnerabilities]]></title>
            <link>https://infosecwriteups.com/nmap-vulnerabilities-40fe8fe70ac6?source=rss-16f95664a533------2</link>
            <guid isPermaLink="false">https://medium.com/p/40fe8fe70ac6</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[slow-loris]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[nmap]]></category>
            <dc:creator><![CDATA[Amit Nandi]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 08:13:29 GMT</pubDate>
            <atom:updated>2021-03-01T00:17:35.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sKGhR_6r50npLVmU.jpg" /></figure><h3>Introduction</h3><p>Nmap Scripting Engine (NSE) has been one of the most efficient features of Nmap which lets users prepare and share their scripts to automate the numerous tasks that are involved in networking. As we know about the Nmap’s speed and. competence, it allows executing these scripts side-by-side. According to the needs of the users, they can pick from the range of available scripts or can create their scripts as per the requirements.</p><p><strong>Table of Contents:</strong></p><ul><li><strong>Introduction</strong></li><li><strong>.nse Scripts</strong></li><li><em>ms17–010 Vulnerability</em></li><li><em>Vsftpd backdoor</em></li><li><em>SSL-Poodle Vulnerability</em></li><li><em>Rmi classloader vulnerability</em></li><li><em>HTTP Slowloris vulnerability</em></li><li><strong>Nmap-Vulners</strong></li><li><strong>Conclusion</strong></li></ul><p>So, let’s get started with listing all the scripts that are available for discovering the vulnerability. Here we see that a list of scripts is available to detect the vulnerabilities. One by one we will run these scripts and check for vulnerabilities.</p><blockquote>#cd /usr/share/nmap/scripts/</blockquote><blockquote>#ls -al *vuln*</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*BToyXFZ1mWduUrvL6OfMPg.png" /></figure><h3>MS17–010 Vulnerability:</h3><p>This script detects whether an SMBv1 server in Microsoft systems is vulnerable to the remote code execution which is commonly known as the <strong>EternalBlue vulnerability</strong>. This vulnerability had been vastly exploited by ransomware like WannaCry. This works on Windows XP, 2003, 7, 8, 8.1, 10, and server 2008, 2012, and 2016.</p><p>You see that on executing this script, you see that the system is susceptible to a vulnerability that is at high risk in nature.</p><blockquote>#nmap — script smb-vuln-ms17–010.nse 192.168.1.16</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*h_GXI_HrR6BXo5J5" /></figure><h3>Vsftpd Backdoor</h3><p>This script checks for the presence of <strong>vsFTPd 2.3.4 backdoor vulnerability</strong> by attempting to exploit the backdoor using a harmful command.</p><blockquote>#nmap — script ftp-vsftpd-backdoor -p 21</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*1Trm_kraGmf-uQB6" /></figure><h3>SSL-Poodle Vulnerability</h3><p>The SSL Poodle is a Man-in the middle exploit whose purpose is to take advantage of the security software running on SSL. On running this script, you see that the system is vulnerable.</p><blockquote>#nmap –script ssl-poodle 192.168.1.12</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/0*vqH2rQjAhv3lBHsE" /></figure><h3>RMI classloader Vulnerability</h3><p>This script checks whether Java rmiregistry allows class loads or not. The rmiregistry has a default configuration that allows the class to load from remote URLs which may lead to remote code execution.</p><blockquote>#nmap — script=rmi-vuln-classloader -p 1099 192.168.1.12</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*A7gEnFElS6K-mbBI" /></figure><h3>HTTP Slowloris Vulnerability</h3><p>It checks for the vulnerability in the web server Slowloris DoS attack where it does not launch an actual DoS attack. This script will open 2 separate connections to the server and then request for URL in the base configuration.</p><blockquote>#nmap –script http-slowloris-check 192.168.1.12</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*bWk4jQ3YENUjbRpK" /></figure><h3>SSL-CCS-Injection</h3><p>This script when run checks if a server is vulnerable to the SSL/TLS “CCS Injection” vulnerability. To exploit this vulnerability using MITM (Man in the Middle Attack), the attacker will then wait for a new TLS connection which will be followed by Client-Sever ‘Hello’ handshake messages.</p><blockquote>#nmap –script ssl-ccs-injection -p 5432 192.168.1.12</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/0*MHKokSRWAmHHVmWN" /></figure><h3>Nmap-Vulners</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*UVPzK-fjmQrBEJSm" /></figure><p><strong>Nmap — Vulners</strong> is an NSE script using some well-known service to provide info on vulnerabilities. This script completely depends on having information on software versions therefore works with <strong>-sV</strong> flag. You can install it using git hub code. Then update the scripts in the NSE database.</p><blockquote>#git clone <a href="https://github.com/vulnersCom/nmap-vulners">https://github.com/vulnersCom/nmap-vulners</a> use/share/nmap/scripts/vulners</blockquote><blockquote>#nmap — scripts-updatedb</blockquote><p>Let us load the scripts and check the service versions available on the target machine using nmap vulners. Here we see that all the scripts are loaded which can be used for vulnerability detection based on a particular service version.</p><blockquote>#nmap -sV -Pn 192.168.1.12 — script=vulners/vulners.nse</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*Ny_QzlgPkcPcn28B" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*MeknIhEr6q6OJSkr" /></figure><h3>Conclusion</h3><p>Hence, we see that it using the nmap scripts we can detect the vulnerabilities present on the system which can be a benefit for the Pen Testers.</p><p>Thank you for reading!</p><blockquote><strong><em>Connect with me in LinkedIn: </em></strong><a href="https://www.linkedin.com/in/amitnandi04/"><strong><em>https://www.linkedin.com/in/amitnandi04</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40fe8fe70ac6" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/nmap-vulnerabilities-40fe8fe70ac6">NMAP 🕸 Vulnerabilities</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudSEK CTF Walkthrough (EWYL)]]></title>
            <link>https://infosecwriteups.com/cloudsek-ctf-walkthrough-ewyl-e42e768b9895?source=rss-16f95664a533------2</link>
            <guid isPermaLink="false">https://medium.com/p/e42e768b9895</guid>
            <category><![CDATA[steganography]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <dc:creator><![CDATA[Amit Nandi]]></dc:creator>
            <pubDate>Mon, 12 Oct 2020 14:42:26 GMT</pubDate>
            <atom:updated>2020-10-16T15:00:13.157Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I am excited to share with you all (readers), how challenging and yet how amusing the CTF was. At certain point I was thinking that what am I doing wrong but as they say ‘<strong>No detail is too small</strong>.’ So here is my detailed CTF walkthrough of CloudSEK’s CTF EWYL Program.</blockquote><p><strong>CTF Difficulty Level:</strong></p><p>· Medium</p><p><strong>Penetration Testing Methodology:</strong></p><p>· Web and Steganography based Penetration Testing</p><p><strong>Reconnaissance:</strong></p><p>· View-Source (Ctrl+U)</p><p><strong>Exploitation:</strong></p><p>· LFI Bug</p><p><strong>Tools:</strong></p><p>· Decoder (<a href="https://malwaredecoder.com/">https://malwaredecoder.com</a>)</p><p>· MD5 Hash Decoder (<a href="https://www.md5online.org/md5-decrypt.html">https://www.md5online.org/md5-decrypt.html</a>)</p><p>· Base64 Encoder/Decoder (<a href="https://www.base64decode.org/">https://www.base64decode.org/</a>)</p><p>· JWT.io/ POSTMAN (<a href="https://jwt.io/">https://jwt.io/</a>)</p><p>· Image Metadata Viewer (<a href="http://exif.regex.info/exif.cgi">http://exif.regex.info/exif.cgi</a>)</p><p>· Steghide</p><p><strong>Results:</strong></p><p>· Capturing the Flag</p><p>· Access the submission URL</p><p><strong>Walkthrough</strong></p><ol><li>view-source:http://54.244.19.42/ viewing the source code of the website for <em>username</em> and <em>password</em> to bypass the authentication.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*NKHdPhlS21Rxm8hTvlZhrQ.png" /><figcaption>Source Code</figcaption></figure><p>2. Here we can easily deduce that the username is encoded as a hidden script and to uncover its real functionality we have to decode it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*9tk7ZassSrPK2nUmFrwnZQ.png" /></figure><p>3. The password was encoded as md5 in the source code and we have decoded that too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*IV7bMwcLTCmcf0gxSPehAw.png" /></figure><p>4. So, now we have the username and password, but wait there’s a catch. The username and password won’t work individually. They have to be concatenated and we get the username and password as = <em>CloudSEK_jeniffer</em>. This was tricky but as I said earlier ‘No detail is too small’.</p><p>The window location URL was the ultimate hint for the concatenation part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*nS24AWSgRwDpyHynoD4iKg.png" /></figure><p>5. So now the login window will look like this and hey, we have bypassed the authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*4tPtssRvdLuF31eBe7HW8A.png" /></figure><p>6. Now comes the tricky part where we have to retrieve a file from the user’s /home directory which is <em>secret.txt</em> and access the developer login token. But to be honest you have to look close enough to get access to the secret.txt file. Otherwise, one can be stuck at this stage for hours pulling their hair.</p><p>Trust me “Happy coding” is just a distraction.</p><p>The URL: <a href="http://54.244.19.42/loader.php?p=bWVzc2FnZTFfdG9famFyZWQudHh0Cg%3D%3D&amp;password=CloudSEK_jeniffer">http://54.244.19.42/loader.php?p=bWVzc2FnZTFfdG9famFyZWQudHh0Cg%3D%3D&amp;password=CloudSEK_jeniffer</a></p><p>7. By looking at the URL closely, I knew that is it. I have my path.</p><p>Oh don’t get confused about putting this path (<a href="http://54.244.19.42/home/jared/secret.txt">http://54.244.19.42/home/jared/secret.txt</a>) in the URL, it’s not that easy and it won’t work.</p><p>By looking at the URL you see (<em>p=bWVzc2FnZTFfdG9famFyZWQudHh0C</em>) which is actually the path for the secret.txt.</p><p>Let me show you.</p><p>8. By looking at the path it was obvious that it is Base64 encoded and we have to decode that and we get the message as = <em>message1_to_jared.txt.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*K2E3Dc6jljQ6HzcavOyFvQ.png" /></figure><p>9. Now we encode our actual path where our access token is present. So we encode <em>/home/jared/secret.txt </em>and we have our actual path. We just have to copy and paste it in the URL.</p><p><em>Note:</em> Do not copy the equal ‘=’ sign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*N-Qy6uglDYL-lqjz9lmvLQ.png" /></figure><p>10. And we are on our next destination page with the <em>access_token</em> in our hand. Hurray!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*N2Bd5N6qyMT0y6YTDWzArQ.png" /></figure><p>11. Now, how do we pass the access_token?</p><p>For that, we will use the Post Data method and JWT with the help of a tool called POSTMAN, which will reduce our effort to half.</p><p>12. To use the <em>POSTMAN</em> we first have to download the local client so that we can pass the POST request to the non-secure (HTTP) website.</p><p>13. In the POSTMAN Launchpad we will pass the <em>access_token</em> and the <em>TOKEN</em> as <em>KEY</em> and <em>VALUE</em> respectively in the Body part as shown in the below figure and hit the SEND button and there we go, we have our next URL as the Response.</p><p>P.S.: This part is easy only if you have knowledge of Web Application Testing. You can use <em>Burpsuite</em> or <em>cURL</em> too to pass the token.</p><p>14. If you ask me that will it work? <br> My answer will be Ummm… NO!</p><p>15. First we have to convert the token into an ‘admin’ token which is ‘jared’ token. For that, we will use JWT.io and we will have our new token like this followed by a POSTMAN POST request.</p><p>The new (<em>admin</em>) access_token = <em>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiYWRtaW4ifQ.xLtLdUxXsGB7EqP49a8xQziqpjkVKeJ9o2nix4xLf5M</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*CkkgpGOfNse7dBZCvlZ_4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*c5RRxq2AHuES-S2ASYATcA.png" /></figure><p>16. We have our new URL as <a href="http://54.244.19.42/CloudSEK_to_win_page.html">http://54.244.19.42//CloudSEK_to_win_page.html</a></p><p>And here is our prize!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*HT7VlpN6Sv1CMGvd9oFLWw.png" /></figure><p>But you think you have captured the flag by seeing the flag?</p><p>Oh no no wait, the creator of this CTF<em> </em>is smarter than you thought.</p><p>17. Here we have to use steganography to get all the possible information about the image and as the image said, “<em>If you will look in the dark, you will find your worth</em>” and hence we already know that only the Metadata lives in the dark so we have to shed some light into it and see if we can find anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*_gAh-4LJiRr9n6i3QqDJ7A.png" /></figure><p>Yes, I am thinking the same thing which you are, ‘wasn’t that too easy as we have our next URL as the comment in the image’s metadata?’ Yes, it was indeed.</p><p>18. Now we have to head over to our final URL to capture our beloved flag and here it was as you can see below. <a href="http://54.244.19.42/ThE_FlAg_PaGe.html">http://54.244.19.42/ThE_FlAg_PaGe.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*26hRqM0fFeZ8v3c58xpxOg.png" /></figure><p>19. But wait, the actual hair-pulling stress is now. I faced difficulty in finding the submission URL, where is it? Show yourself!</p><p>To be honest, a single checkbox has ruined my confidence, you want to know what that is?</p><p>But let’s see what the problem I was getting from <em>Steghide.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*RGCl6IE6I1axktluh5aqbQ.png" /></figure><p>Excuse me? Why? Everything is correct and I even know for a fact that the passphrase is correct, then what is wrong?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*uU5_ihFq3MAilwXuInoV1w.png" /></figure><p>So after doing some digging ‘The Unblock’ checkbox in the properties which supposedly has to be tick before performing the extraction, otherwise it will be an endless loop of the wrong passphrase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*uU5_ihFq3MAilwXuInoV1w.png" /></figure><p>20. After double-checking everything, here we are with our final message and our link to the submission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*6I6N-Z-q1DALWBcdZI04eQ.png" /></figure><p>That is all to conclude the Walkthrough.</p><p>Thank you!</p><blockquote><strong>Wanna talk about tech and space?</strong></blockquote><blockquote><strong>Connect with me in LinkedIn: </strong><a href="https://www.linkedin.com/in/amitnandi04/"><strong>https://www.linkedin.com/in/amitnandi04/</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e42e768b9895" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/cloudsek-ctf-walkthrough-ewyl-e42e768b9895">CloudSEK CTF Walkthrough (EWYL)</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>