Complete penetration testing lab replicating HackTheBox MonitorsTwo - Practice CVE-2022-46169 (Cacti RCE) and CVE-2021-41091 (Docker escape) with step-by-step walkthrough
Created by: Natnael Tariku | CSEC Cybersecurity Club
A complete penetration testing lab replicating HackTheBox MonitorsTwo. Practice web exploitation, container escapes, and privilege escalation in a safe, isolated environment.
This lab is designed for cybersecurity students, ethical hackers, and security professionals to gain hands-on experience with real-world attack vectors in a controlled environment. Perfect for:
Why This Lab?
Complete Attack Chain:
Reconnaissance → Web Exploitation → Container Root → Database Access →
Credential Cracking → Lateral Movement → Container Escape → Host Root
Skills & Techniques:
Real-World CVEs:
🏁 Capture 2 CSEC flags! | 📖 Full walkthrough: CHEAT-SHEET.md
Windows:
Linux:
Windows (Simulated Mode Only):
cd C:\path\to\monitorstwo-csec-lab
.\scripts\windows\deploy-lab-simulated.bat
✅ Works with any Docker version
✅ Teaches identical techniques
⚠️ Vulnerable mode not available on Windows (Docker runs in WSL2)
Linux (Both Modes Available):
Simulated (Recommended):
cd /path/to/monitorstwo-csec-lab
sudo ./scripts/linux/deploy-lab-simulated.sh
Vulnerable (Advanced):
sudo ./scripts/linux/deploy-lab-vulnerable.sh
⚠️ Downgrades Docker to 20.10.8 system-wide
http://<your-LAN-IP>:8080/cacti/ for attendees on the same network — find your IP with ipconfig on Windows or ip a on Linux)admin to keep it the same.| Action | Windows | Linux |
|---|---|---|
| Start | .\scripts\windows\start-lab.bat | sudo ./scripts/linux/start-lab.sh |
| Stop | .\scripts\windows\stop-lab.bat | sudo ./scripts/linux/stop-lab.sh |
| Reset | .\scripts\windows\reset-lab.bat | sudo ./scripts/linux/reset-lab.sh |
# Check containers are running
docker ps
# Restart containers
cd lab
docker-compose restart # Windows: without sudo
172.22.0.1 instead of 127.0.0.1docker network inspect htb-monitorstwo-lab_cacti_net | grep Gateway├── README.md # Quick start guide
├── CHEAT-SHEET.md # Complete exploitation walkthrough
├── LICENSE # Educational use terms
├── scripts/
│ ├── windows/ # Windows batch scripts (.bat)
│ │ ├── deploy-lab-simulated.bat
│ │ ├── deploy-lab-vulnerable.bat (redirects to simulated)
│ │ ├── start-lab.bat
│ │ ├── stop-lab.bat
│ │ └── reset-lab.bat
│ └── linux/ # Linux shell scripts (.sh)
│ ├── deploy-lab-simulated.sh
│ ├── deploy-lab-vulnerable.sh
│ ├── start-lab.sh
│ ├── stop-lab.sh
│ └── reset-lab.sh
└── lab/
├── docker-compose.yml # Container orchestration
└── cacti/ # Cacti Dockerfile & configs
| Platform | Scripts | Requirements |
|---|---|---|
| Windows | .bat files | Docker Desktop, WSL2 |
| Linux | .sh files | Docker, Docker Compose |
| Service | Username | Password |
|---|---|---|
| Cacti Web | admin | admin |
| MySQL | root | root_cacti |
| SSH (marcus) | marcus | funkymonkey |
Educational purposes only. Use only on systems you own or have explicit permission to test. Creator assumes no liability for misuse.
Natnael Tariku
LinkedIn: https://www.linkedin.com/in/natnael-tariku/
Organization: CSEC Cybersecurity Club
Original Machine: HackTheBox - MonitorsTwo
Happy Hacking! 🚀