> For the complete documentation index, see [llms.txt](https://cybersec.th4ntis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybersec.th4ntis.com/lab-setup/goad.md).

# GOAD

## Installing

Once we have [installed Ludus](https://cybersec.th4ntis.com/lab-setup/ludus.md) onto our machine, we can proceed with installing [Game of Active Directory (GOAD)](https://orange-cyberdefense.github.io/GOAD). This will give us a great environment to attack, test tools against, and more.

### CLI

To install GOAD via CLI we need to add the source first. Pressing space to select `Game of Active Directory (GOAD)`, then press `enter`.

```
ludus source add ludus-source-bsl
```

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FhoH2dQvV2F0HfCM5okzr%2Fimage.png?alt=media&amp;token=484bb6e0-0073-461d-b31d-5a940fd4579b" alt=""><figcaption></figcaption></figure>

Create the range, user, and select the blueprint

```
ludus range create -r GOAD --name GOAD --user th4ntis-ludus --from-blueprint ludus-source-bsl/goad
```

Then deploy the range.

```
ludus range deploy -r GOAD
```

{% hint style="info" %}
This will take some time, so step away for a few. This also may fail, but can be selected to be deployed again.
{% endhint %}

We can view the deploy progress with:

```
ludus range logs -f -r GOAD
```

### Web UI

Installing GOAD from the source blueprints, we simply select `Sources`, select the `Ludus Source - Bad Sector Labs` source.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F4RcutFP8w79TrnE1xFH4%2Fimage.png?alt=media&amp;token=33c6f08f-0008-4d91-a567-192443e86520" alt=""><figcaption></figcaption></figure>

To install GOAD we select `Blueprints`, then check box, and hit install.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F0EAREFMMSspSfLprorkA%2Fimage.png?alt=media&amp;token=ec011681-1534-443d-935a-4858fd50e74c" alt=""><figcaption></figcaption></figure>

Now we go to Ranges and make a new one, and name it. I went with GOAD, then select `Create Range`

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F67R7Km4wIpyrdAMYuiP5%2Fimage.png?alt=media&amp;token=4a1f213a-5cda-4cd3-8e38-a68d8d678c26" alt=""><figcaption></figcaption></figure>

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2Ffzm0lLHYZcGH0BLeRZ69%2Fimage.png?alt=media&amp;token=320ba294-c7d8-4da1-a8cc-3443ffc80f36" alt=""><figcaption></figcaption></figure>

Now select `Blueprints` from the side panel, and you should see `Game of Active Directory (GOAD)`. Select the 3 dots and apply it to a range.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FroFAmuq9xRffp58SbQiG%2Fimage.png?alt=media&amp;token=24d0d2f4-ed3f-46be-aee8-0c0e1364615a" alt=""><figcaption></figcaption></figure>

Select the Target Range we created, and select `Apply Blueprint`.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F8vN5qDKpOuWmdMLyBzAY%2Fimage.png?alt=media&amp;token=9024811b-c6f8-47a4-a873-7d061ea2189e" alt=""><figcaption></figcaption></figure>

This will take us right into our range, and give us a run down of configuration canvas and show us the layout. From here, to deploy the range, we select the Play button icon in the top right. This will take some time.

{% hint style="info" %}
This will take some time, so step away for a few. This also may fail, but can be selected to be deployed again.
{% endhint %}

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FMYzlXxsOTiPDRK71gWJv%2Fimage.png?alt=media&amp;token=d4837b32-e777-4636-86fe-7c251a8be049" alt=""><figcaption></figcaption></figure>

## Connection

Now that GOAD is installed and running, we need to access it. We can do this by getting the WireGuard config.

### CLI

With our API key exported, we can run:

```
ludus user wireguard | tee ludus.conf
```

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FwIYjZB2SdC5NMsMAxTqV%2Fimage.png?alt=media&amp;token=903fa0f4-a140-481c-bf4c-d214be1c456f" alt=""><figcaption></figcaption></figure>

From here, we copy/paste that into a new\.conf file.

### Web UI

When on any page, we can select our name in bottom right, then `WireGuard Config`

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F4oiPs67ut7cqcJtTejpd%2Fimage.png?alt=media&amp;token=a159573e-df8a-49f9-a34f-be54a92fd674" alt=""><figcaption></figcaption></figure>

With that, we can either copy or download it.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FqTCRV6lgtlJRDH1Sl5Td%2Fimage.png?alt=media&amp;token=e3fde1f0-60ae-40aa-91c0-7a5e01ceb053" alt=""><figcaption></figcaption></figure>

From our machine we use the .conf file to connect to the environment. For Linux it's under `/etc/wireguard/` so we can run:

```
sudo mv wireguard.conf /etc/wireguard/wireguard.conf
```

## Access

We now connect to the Kali machine (or the other machines) with

```
sudo wg-quick up wireguard
```

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FANG0eNh2DPdBaewXBTSC%2Fimage.png?alt=media&amp;token=a2152d40-0858-43cb-9455-6afcc68a5bd1" alt=""><figcaption></figcaption></figure>

We verify by pinging our Kali machine.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FqMvFpJdWNsevyLVkbUix%2Fimage.png?alt=media&amp;token=0369a0b5-5f87-4404-aec7-705e560bd5e8" alt=""><figcaption></figcaption></figure>

From here, we can SSH to the machine or if we want a GUI we can go to `https://10.1.10.99:8444` and login with `kali:kali`

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FojteLdRu3zS89f5vh8xi%2Fimage.png?alt=media&amp;token=5499b9dc-32fd-4e62-adf6-bbe7fc65cea8" alt=""><figcaption></figcaption></figure>

## Power

### CLI

```bash
ludus power on/off --name all -r RANGE_ID # Power on/off all range VMs
```

### WebUI

To power on/off the VMs, we either right-click anywhere within the range editor and select `power on/off All VMs` .&#x20;

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FuGtd8t0jnj502Q8Vvt0r%2Fimage.png?alt=media&amp;token=6ca8394f-0869-439d-b313-afb51ff01ce4" alt=""><figcaption></figcaption></figure>

Or we can click the three dots in the top right, go to power, and select power on/off.

<figure><img src="https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2Fd0TAbqT2rl5UAMNJard7%2Fimage.png?alt=media&amp;token=b4fdc658-12b0-4839-a92a-bc2d9ec0fe4a" alt=""><figcaption></figcaption></figure>
