Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LabBuilder.py: "C:\LABS" and contents missing on DC01 after install #12

Open
tsluyter opened this issue Jan 1, 2021 · 2 comments
Open

Comments

@tsluyter
Copy link
Contributor

tsluyter commented Jan 1, 2021

I have completed the installation of my lab environment using LabBuilder.py.

However, the path C:\Labs is missing on host dc01.labs.local. Ditto for the file share that it's supposed to serve, based on instructions in lab L250 and onwards.

There were no errors during installation. The LabBuilder.py script completed without warnings or failures.

@tsluyter
Copy link
Contributor Author

tsluyter commented Jan 1, 2021

This may be resolved by adding the following two lines to "master/modules/active-directory/5-setup.tf".

mkdir C:\LABS
New-SmbShare -Name "LABS" -Path "C:\LABS" -FullAccess "labs\itadmin"

This change/suggestion is not addressed in pull req #9

@tsluyter
Copy link
Contributor Author

tsluyter commented Jan 1, 2021

Also lacking are the "labs.zip" and the "scripts" subdir which are supposed to be in there. Now, labs.zip I can re-create, but what is supposed to go into the "scripts" subdir?

Because these files are missing, the user accounts for the hunting exercises are also not created automatically. I am left with half a lab.

I've resolved this by running:

cd C:\Labs
iwr -URI https://github.com/DefensiveOrigins/APT-Lab-Terraform/raw/master/labs.zip -Outfile labs.zip
Expand-Archive labs.zip

From there on out I manually edited/ran the "ad-users-create-script.ps1" file with Powershell ISE. But yeah, it'd be neater if we provisioned the file onto the host and included it into the Terraform setup.

@tsluyter tsluyter changed the title LabBuilder.py: "C:\LABS" missing on DC01 after install LabBuilder.py: "C:\LABS" and contents missing on DC01 after install Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant