> 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/password-attacks/brute-force-keepass-.kdbx.md).

# Cassage de KeePass KDBX

## **Fichier KeePass craqué**

Dans le **Documents** répertoire de l' **Kosure** utilisateur, nous trouvons un fichier avec l'extension **.kdbx** (fichier KeePass).

<figure><img src="/files/4a06c665e920161d5809cfed1e073175770a8c31" alt=""><figcaption></figcaption></figure>

### **Extraction du hash à partir du fichier KDBX**

Pour extraire le hachage du **KDBX** fichier, nous utilisons **keepass2john** l'outil, qui fait partie de **John the Ripper**:

```bash
keepass2john CEH.kdbx
```

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

### **Craquage de hachage**

Nous utilisons **John the Ripper** pour effectuer une attaque par force brute sur le hash extrait, avec la liste de mots de passe **rockyou.txt**:

```bash
john --wordlist=/usr/share/wordlists/rockyou.txt hash
```

Le mot de passe découvert est :

* `moonshine1`

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

### **Affichage du contenu du fichier KeePass**

Nous utilisons **KeePassXC** pour ouvrir et afficher le contenu du **KeePass** le fichier

<figure><img src="/files/a5ce91297b796315f1cbc56b97238613b1f64b29" 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/password-attacks/brute-force-keepass-.kdbx.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.
