Code Monkey home page Code Monkey logo

exposelab's Introduction

Exporse Lab: Automated Active Directory Lab + Mini CTF Inside!

Lab Overview ๐Ÿ’ป

This lab is theamed after TV series MR.Robot :) This is a fully automated Active directory Lab made with the purpose to reduce the hustle of creating it manually. It uses Vagrant and Powershell Scripts to automate stuff. It also contain a small CTF kind of senerio.

Lab preinstalled

  • Active directory Services.
  • Chocholotary (firefox, 7zip, Notepad++ ).
  • Internal Network (for Tunnelling practice).
  • sysinternals installed on every system.

Installation Dependencies ๐Ÿ“‹


Virtual Box

Latest Version https://www.virtualbox.org/wiki/Downloads

For version 6.1 https://www.virtualbox.org/wiki/Download_Old_Builds_6_1

General update of the system

sudo apt-get update 
sudo apt-get install -y linux-headers-generic

Vagrant Installation

Linux ( Debian )

wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "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.list
sudo apt update && sudo apt install vagrant

Windows & Other Operating Systems

visit https://developer.hashicorp.com/vagrant/downloads

Installing plugins

vagrant plugin install vagrant-windows-sysprep

Building the lab Infrastructure

Build 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

Video Tutorial ๐Ÿ“น

  1. Step by Step Installaion of the lab + code Explatation

๐Ÿ”— https://youtu.be/zx4pJ2XewYo

  1. Solving the Mini CTF Challange!

๐Ÿ”— https://youtu.be/d3QFLLOqefo

Making the lab

git clone https://github.com/Ashifcoder/exposelab.git
cd exposelab
vagrant up

Note: If IP address configuration allowed range Error occurs. Run the commands from the network troubleshooting section below.

Default Credentials

vagrant : vagrant 

Other Users on the Lab

User Machine
mrrobot RootDC
Angela WebServer
Darlene Windows Client 1
Tyrell Windows Client 2
Elliot N0t-F0uND

Thing can be done manually

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'

To remove the virtualBox Boxes

vagrant destroy 

Troubleshooting โš’

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::/64

Disclaimer:

All 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.


Honourable Mentions

Amazing websites:

exposelab's People

Contributors

ashifcoder avatar mickhat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.