> 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/password-auditing/extracting-the-handshake-hash-with-aircrack.md).

# Aircrack-ng でハンドシェイクハッシュを抽出する

オフラインのパスワード監査ツール用に、許可された WPA/WPA2 ハンドシェイクキャプチャをエクスポートする。

### 概要

このワークフローは、あなたが所有しているネットワーク、または評価する権限を与えられているネットワークで使用してください。

Aircrack-ng は、取得した WPA/WPA2 ハンドシェイクを `.hccap` ファイルにエクスポートします。このファイルには、オフラインのパスワード監査ツール用のハンドシェイクデータが含まれています。ネットワークのパスフレーズは明かされません。

エクスポートする前に、キャプチャに有効なハンドシェイクが含まれていることを確認してください。

### ハンドシェイクキャプチャをエクスポート

変換 `CAPTURE-01.cap` に `.hccap` ファイル：

{% code overflow="wrap" %}

```bash
aircrack-ng -J myCapture CAPTURE-01.cap
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FS6NFFyUStJPs9Xoc737y%2F%7B07C7C5AB-FD31-4E4F-AB28-D5B9E4C8CF32%7D.png?alt=media&amp;token=45e1bebc-fa38-4881-8a75-b3c55bb11917" alt=""><figcaption></figcaption></figure>

このコマンドは次を作成します `myCapture.hccap`.

### ハッシュエントリを作成

使用する `hccap2john` エクスポートしたファイルをハッシュエントリに変換するには:

{% code overflow="wrap" %}

```bash
hccap2john myCapture.hccap > hash
```

{% endcode %}

その `hash` ファイルには、抽出されたハンドシェイクのハッシュが含まれています。承認されたパスワード監査ツールでのみ使用してください。

### 出力を検証

使用する前に出力を確認してください:

* 出力にハッシュエントリが含まれていることを確認してください。
* キャプチャファイルとハッシュファイルは、評価範囲内に保持してください。
* ハッシュは機密の認証情報として扱ってください。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fo96yzfJlSxjvFfyjiPik%2F%7B1F46BB2A-B9D1-43B2-8D59-CAE04AE8A306%7D.png?alt=media&amp;token=83200e75-3f01-4855-ab2f-0930f9896f03" 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/password-auditing/extracting-the-handshake-hash-with-aircrack.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.
