An active directory playground/lab for penetration testing and learning.
This lab is made of five virtual machines:
- Domain Controller running Windows Server 2019
- Member Server running IIS and MSSQL
- Windows Workstation running on Windows 10
- Linux Server inside the domain running Ubuntu 20.04 LTS
- Linux Server outside the domain running Ubuntu 20.04 LTS
To start the lab on your machines the following prerequisites exist.
In order to run this setup you need vagrant and ansible.
Depending on your host machine, you can install them via:
vagranton debian-based systems. Otherwise refer to vagrant's own page.wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /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
ansible, also refer to their site$ pipx install --include-deps ansible
To download the lab and install it, follow the following steps:
- Clone the repo
git clone https://github.com/Benzammour/PlADground
- Download and Run Base VMs
vagrant up
- Run
ansibleplaybookansible-playbook -vv -i hosts labsetup.yml
To download and use lab, you have to clone the repo and run both vagrant and ansible. tl;dr: Follow the following steps:
- Clone the repo
git clone https://github.com/Benzammour/PlADground
- Download and Run Base VMs
vagrant up
- Run
ansibleplaybookansible-playbook -vv -i hosts labsetup.yml
To run different portions of the lab or for debugging purposes, run the playbooks independently:
ansible-playbook -i hosts domain_controller.yml
ansible-playbook -i hosts member_server.yml
ansible-playbook -i hosts win_workstation.yml
ansible-playbook -i hosts linux_srv_domain.yml
ansible-playbook -i hosts linux_srv_no_domain.ymlSee the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Your Name - @benzammour
Project Link: https://github.com/benzammour/pladground
- alebov for original AD-lab repo