> 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/hacking-wifi/wpa-wpa2-psk-network-attacks/traffic-manipulation/airdecap-packet-decryption.md).

# Déchiffrement de paquets avec Airdecap

Déchiffrer une capture Wi-Fi autorisée avec Airdecap-ng et inspecter le trafic HTTP.

Une capture WiFi chiffrée ne peut pas être inspectée directement. Par exemple, filtrer le trafic HTTP avant de déchiffrer la capture ne renvoie aucun résultat :

{% code overflow="wrap" %}

```bash
tshark -r Capture-01.cap -Y "http"
```

{% endcode %}

cela ne fonctionnerait pas

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FoacSMyZCXiIjiG4R0LWR%2Fimage.png?alt=media&amp;token=0c0a8a35-f9a3-4ca9-b5f6-b7b3282a8eb3" alt="" width="408"><figcaption></figcaption></figure>

### Déchiffrer la capture WiFi

Airdecap-ng déchiffre la couche WiFi lorsque vous fournissez le nom du réseau et la phrase de passe corrects. La capture obtenue peut alors être inspectée.

Une phrase de passe incorrecte ne déchiffre pas le trafic :

{% code overflow="wrap" %}

```bash
airdecap-ng -e jordan -p PasswordIncorrect1234 capture_jordan2-01.cap
```

{% endcode %}

Utilisez la phrase de passe correcte pour déchiffrer la capture :

{% code overflow="wrap" %}

```bash
airdecap-ng -e jordan -p 92212345 capture_jordan2-01.cap
```

{% endcode %}

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FivLAinMs1qqTvdn1t4sx%2Fimage.png?alt=media&amp;token=fef82bc2-79d9-4ec2-85f8-973237d61bb2" alt=""><figcaption></figcaption></figure>

### Inspecter les requêtes HTTP

Airdecap-ng crée un fichier de capture déchiffré. Filtrez-le pour les requêtes HTTP POST :

{% code overflow="wrap" %}

```bash
tshark -r capture_jordan-01-dec.cap -Y "http.request.method==POST" -Tjson 2>/dev/null
```

{% endcode %}

La sortie affiche les données de formulaire soumises lorsque l’application utilise HTTP non chiffré.

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FlOQYVAEg5u63rOakP70d%2Fimage.png?alt=media&amp;token=4817a197-4c67-4345-a876-5fb0ffd729a6" alt=""><figcaption></figcaption></figure>

Pour inspecter plus en détail les champs HTTP soumis :

{% code overflow="wrap" %}

```bash
tshark -r capture_jordan-01-dec.cap -Y "http.request.method==POST" -Tjson -e http.file_data 2>/dev/null
```

{% endcode %}

Le déchiffrement WiFi ne déchiffre pas HTTPS. Les corps des requêtes HTTPS restent protégés.

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FoZXDNUCZ75W3pexPoqLs%2Fimage.png?alt=media&amp;token=8152b932-f6f3-47fe-b991-e94e5b47866b" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/fr/hacking-wifi/wpa-wpa2-psk-network-attacks/traffic-manipulation/airdecap-packet-decryption.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
