Skip to content

Instantly share code, notes, and snippets.

@peewpw peewpw/ADLabDemo.txt
Created Nov 10, 2018

What would you like to do?
VPN Server User Data (for Ubuntu 18.04)
chmod +x
./ bsides.demo
Get VPN Config file
scp -i [key.pem] ubuntu@[IP]:/opt/client-configs/client.ovpn .
DC User Data (for Server 2012 R2)
Install-WindowsFeature AD-Domain-Services -IncludeAllSubFeature -IncludeManagementTools
Import-Module ADDSDeployment
$password1 = ConvertTo-SecureString 'SuperS3cureeee!' -AsPlainText -Force
Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath "C:\Windows\NTDS" -DomainMode "Win2012R2" -DomainName "bsides.demo" -DomainNetbiosName "BSIDES" -ForestMode "Win2012R2" -InstallDns:$true -LogPath "C:\Windows\NTDS" -NoRebootOnCompletion:$false -SysvolPath "C:\Windows\SYSVOL" -Force:$true -SafeModeAdministratorPassword $password1
AD Server User Data
$domain = "bsides.demo"
$password = "Password123!" | ConvertTo-SecureString -asPlainText -Force
$username = "bsides\example"
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -Credential $credential -Restart -NewName SERVER1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.