Skip to content
/ adlab Public

Learn Active Directory basics by creating your own vulnerable lab environment. Using 1 DC and 2 clients.

Notifications You must be signed in to change notification settings

m-cetin/adlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Active Directory Lab Setup

This powershell script creates a vulnerable Active Directory Lab to exercise AD attacks by using 1 domain controller and 2 clients. This script will delete existing non default users, create 5 different flags to capture and is based upon common AD attack paths. Do not use in production environment.

Prerequisites

You need 1 domain controller and exactly 2 clients. I used the following setup.

Requirements

Make sure the domain controller and both clients are running. On both clients, run the commands:

Enable-PSRemoting -Force
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '*'
Set-NetFirewallRule -Name 'WINRM-HTTP-In-TCP' -RemoteAddress Any
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Also, disable the real time protection, the tamper protection and the cloud protection.

image

Usage

After running the commands above, use the adlab-setup.ps1 script as domain administrator at your domain controller (Windows server). You might run it twice in order your domain controller needs a restart. This script will change the password of your domain admin, so please make sure to note the newly created password. Otherwise you might lock yourself out.

image

At the end of the script, you need to manually login with your newly created password as domain admin. Make sure to kick out the other user to have one successfuly login.

image

Restart all machines after the setup is done, note the IPs and start hacking from your Linux system. This lab contains 5 different flags to capture.

Scope

Man in the middle attacks like LLMNR/NBT-NS spoofing are out of scope.

About

Learn Active Directory basics by creating your own vulnerable lab environment. Using 1 DC and 2 clients.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published