> 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/credentials/lsass-and-sam-dump-on-windows.md).

# Extraction de LSASS et SAM sous Windows

### Exécution dans le laboratoire

Dans le laboratoire, nous ouvrons plusieurs sessions PowerShell :

* deux sessions avec un administrateur local ;
* une session avec un administrateur de domaine.

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

Ensuite, nous lançons l'outil depuis une session PowerShell d'administrateur local :

```bash
./mimikats.exe
```

<figure><img src="/files/00667dea92fd3412f3c1b36759648ae977016fb9" alt=""><figcaption></figcaption></figure>

### Afficher les informations de session

Dans l'outil :

```powershell
sekurlsa::logonpasswords
```

Cette commande affiche des informations relatives aux sessions d'authentification présentes en mémoire.

Selon le contexte, nous pouvons voir des informations comme :

* les utilisateurs connectés ;
* le domaine ;
* le type d'authentification ;
* les hachages ;
* des tickets ou éléments liés à Kerberos ;
* les sessions interactives ou réseau.

<figure><img src="/files/9a00eff089fe5fb28c15126341feac6fc1931ec0" alt=""><figcaption></figcaption></figure>

### Casser un hachage NTLM

Si un hachage NTLM est récupéré dans le laboratoire, il peut être testé avec John :

```bash
john --format=NT admin.hash
```

Cela aide à illustrer le risque de mots de passe faibles ou réutilisés.

<figure><img src="/files/77fcc0ce703347d467413a26b3ae7f634bb6bd0d" 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/credentials/lsass-and-sam-dump-on-windows.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.
