# Mozilla

Firefox stores saved login credentials within user-specific profile directories, typically found under `.mozilla/firefox/<profile_id>.default`. Within these directories, `logins.json` contains the encrypted credentials, while `key4.db` holds the associated encryption keys required for decryption.

[`firepwd.py`](https://github.com/lclevy/firepwd)  is an open-source Python tool used to decrypt saved Firefox and Thunderbird credentials by processing `logins.json` and `key4.db` (or older formats like `key3.db` and `signons.sqlite`). It performs decryption without relying on the NSS library, supports Firefox versions up to ≥75, and is now integrated into the LaZagne project.

{% code overflow="wrap" %}

```bash
# Point it to the directory
python firepwd.py -d /c/Users/lclevy/AppData/Roaming/Mozilla/Firefox/Profiles/o8syoe2h.default/

# Run it from where files are
python firepwd.py
```

{% endcode %}


---

# 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://x7331.gitbook.io/boxes/tl-dr/infra/file-artifacts/mozilla.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.
