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

# Airdecap パケット復号

Airdecap-ng で許可された WiFi キャプチャを復号し、HTTP トラフィックを調査する。

暗号化されたWiFiキャプチャは直接確認できません。たとえば、キャプチャを復号する前にHTTPトラフィックでフィルタしても結果は返りません:

{% code overflow="wrap" %}

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

{% endcode %}

動作しません

<figure><img src="https://2001299964-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>

### WiFiキャプチャを復号する

Airdecap-ngは、正しいネットワーク名とパスフレーズを指定するとWiFi層を復号します。復号後のキャプチャを確認できます。

パスフレーズが正しくないとトラフィックは復号されません:

{% code overflow="wrap" %}

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

{% endcode %}

正しいパスフレーズを使ってキャプチャを復号します:

{% code overflow="wrap" %}

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

{% endcode %}

<figure><img src="https://2001299964-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>

### HTTPリクエストを確認する

Airdecap-ngは復号済みのキャプチャファイルを作成します。それをHTTP POSTリクエストでフィルタします:

{% code overflow="wrap" %}

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

{% endcode %}

アプリケーションが暗号化されていないHTTPを使用している場合、出力には送信されたフォームデータが表示されます。

<figure><img src="https://2001299964-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>

送信されたHTTPフィールドをより詳しく確認するには:

{% 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 %}

WiFiの復号ではHTTPSは復号されません。HTTPSリクエスト本文は引き続き保護されたままです。

<figure><img src="https://2001299964-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/ja/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.
