{"repo":"xbufu/ADLab","free":true,"listed":false,"github":"https://github.com/xbufu/ADLab","clone":"git clone https://github.com/xbufu/ADLab.git","description":"Custom PowerShell module to setup an Active Directory lab environment to practice penetration testing.","language":"PowerShell","stars":183,"topics":["activedirectory","lab","powershell","powershell-module"],"license":"MIT","category":"security-tools","readme_excerpt":"ADLab PowerShell Module Introduction The purpose of this module is to automate the deployment of an Active Directory lab for practicing internal penetration testing. Credits to Joe Helle and his PowerShell for Pentesters course regarding the generation of the attack vectors. --- Instructions Preparation Optional but recommended: Move Module into PSModulePath Import-Module --- Initial Lab Setup Invoke-DCPrep This function prepares the current VM/computer to be used as a domain controller for the new forest. It sets a static IP address, sets the DNS server to be the localhost and renames the computer. Invoke-ForestDeploy The function installs the AD DS feature and sets up a new Active Directory forest, without requiring any user input. Restarts the computer upon completion. Invoke-DNSDeploy The function begins by installing the DNS feature. It then adds the primary zone and configures the server forwarder. Invoke-DHCPDeploy The function begins by installing the DHCP feature on the current machine. It then adds the necesarry security groups and authorizes the new DHCP server with the domain controller. Finally, it configures the new DHCP scope with the supplied values. --- Content Invoke-ADLabFill The function begins by creating the groups and OUs defined in the global Groups variable. It then generates 10 user objects for each OU by default. --- Attack Vectors Set-ASREPRoasting The function gets a certain amount of random user from the domain and sets the DoesNotRequirePreAuth ","default_branch":null,"files":null,"tree":[],"storefront":"/r/xbufu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xbufu/ADLab/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}