This lab is themed after TV series Mr. Robot :) This is a fully automated Active Directory Lab made with the purpose of reducing the hassle of creating it manually. It uses Vagrant and Powershell Scripts to automate stuff. It also contain a small CTF kind of senerio.
- Active directory Services.
- Chocholotary (firefox, 7zip, Notepad++ ).
- Internal Network (for Tunnelling practice).
- sysinternals installed on every system.
Installation Script by @Lavender-exe
separately ⚠ Tested on Ubuntu LTS 22.04
chmod +x install-expose.sh
sudo ./install-expose.shLatest Version https://www.virtualbox.org/wiki/Downloads
For version 6.1 https://www.virtualbox.org/wiki/Download_Old_Builds_6_1
sudo apt-get update
sudo apt-get install -y linux-headers-genericLinux ( Debian )
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.listsudo apt update && sudo apt install vagrantWindows & Other Operating Systems
visit https://developer.hashicorp.com/vagrant/downloads
vagrant plugin install vagrant-windows-sysprepBuild will take approximately ⏳
- Starting form scratch
2hr. - If the vagrant images are already downloaded
50 min. ( Grab a Coffee! ☕️ )
Vagrant Cloud Images used
# Vulnerable Web Server Machine [Ubuntu]
chrislentz/trusty64-lamp
# Domain Controller [Windows Server 2019]
rgl/windows-server-2019-standard-amd64
# Client Machies [Windows 10]
rgl/windows-10-1809-enterprise-amd64- Step by Step Installaion of the lab + code Explatation
🔗 https://youtu.be/zx4pJ2XewYo
- Solving the Mini CTF Challange!
🔗 https://youtu.be/d3QFLLOqefo
Making the lab
git clone https://github.com/Ashifcoder/exposelab.gitcd exposelabvagrant upNote: If IP address configuration allowed range Error occurs. Run the commands from the network troubleshooting section below.
vagrant : vagrant Other Users on the Lab
| User | Machine |
|---|---|
| mrrobot | RootDC |
| Angela | WebServer |
| Darlene | Windows Client 1 |
| Tyrell | Windows Client 2 |
| Elliot | N0t-F0uND |
Run the remove-vagrant.ps1 as a Different user not as vagrant
or
Run the commands Manually
#-----------manually Command to run -----------
# Write Manually to disable the network of vagrant
Write-Host -ForegroundColor Green [-] Disabling the vagrent Network on the machine [-]
Get-NetAdapter ; Disable-NetAdapter -Name 'Ethernet' -Confirm:$False ; Write-Host -ForegroundColor Green "[+] Enabled" ; Get-NetAdapter
# Write Manually to remove the vagrant user from the system
Write-Host -ForegroundColor Green [-] Removing Vagrant User [-]
Remove-LocalUser -Name 'vagrant'
vagrant destroy Network Troubleshooting
Setting virtual box Networks
sudo vim /etc/vbox/networks.conf Should contain
* 10.0.0.0/8 192.168.0.0/16 195.0.0.0/8 172.16.0.0/8
* 2001::/64All the code provided on this repository is for educational/research purposes only. Any actions and/or activities related to the material contained within this repository is solely your responsibility. The misuse of the code in this repository can result in criminal charges brought against the persons in question. Author will not be held responsible in the event any criminal charges be brought against any individuals misusing the code in this repository to break the law.
- Video which inspried me : https://www.youtube.com/watch?v=HfOfbMXCQGM
- The Auror Project : https://github.com/chr0n1k/Auror-Project
- Website Landing page : https://github.com/Alanaktion/php-landing


