Code Monkey home page Code Monkey logo

adlab's Introduction

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.

adlab's People

Contributors

m-cetin 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.