Creating Vulnerable lab in Active Directory

In this post I will be documenting how I created a AD lab in Oracle Cloud. So I logged in to oracle cloud and using the free trial credit ( not mine, bless that person though ).

Oracle Dashboard

So I went on and created 4 vms that I thought I will connect to the AD. The main problem I got when I was figuring out to how to create VMs, oracles dashboard was confusing. There are no visual way to adjust VM sizes, at least not as comfortable as GCP.

Ubuntu one, Because I wanted to try 🙂

After Creating the hosts ( Oracle only let me create 3 hosts, 4th one was stopped with an error because of CPU limit.) We will configure Network ingress rules as follows.

19 Ingress rules. 😦

Then we choose what is the server that we choose to use as the AD. I chose server 1. When I connected to it using RDP first thing I did was running the following commands.

net user Administrator *

This command sets a password for the inbuilt Administrator account.

net user Administrator /active:yes

Above command will active the Administrator account. This account will be used to create the domain admin account. Then we have to install Active Directory Domain Tools in that server.

Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

Then create the AD Forest using following command.

Install-ADDSForest`
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012R2" `
-DomainName "example.com"`
-DomainNetbiosName "Example" `
-ForestMode "Win2012R2" `
-InstallDns:$true`
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL"`
-Force:$true

Then to add to a client to a AD, Start the Server 2, Go to network settings> Adaptor options > IPv4 settings and change them as following.

The IP of the above entered 10.0.0.172 is the IP of the Server 1 that we created.

Then search “Advanced system settings” in the start and click to open it.

And then go to Computer name > Change > and add the Domain name > click okay

Then I ran into this problem. Tried a with messing with firewalls and oracle vnc settings. Had no luck.

Something with FQDN

If you know the solution comment below!

Resources:

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.