> 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/precomputed-attacks/cracking-with-airolib.md).

# Airolib によるクラック

Airolib データベースを構築し、キャプチャした WPA/WPA2 ハンドシェイクをテストする。

Airolib-ng は、パスワード候補とネットワーク名を SQLite データベースに保存します。

### パスワード候補をインポートする

インポートする `passwords.txt` ファイル：

{% code overflow="wrap" %}

```bash
airolib-ng password-airolib --import passwd passwords.txt
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FC7KyojYOjAy3jAZTwBAb%2Fimage.png?alt=media&amp;token=0915931d-de1b-4b56-87a1-75cbb07a6e06" alt=""><figcaption></figcaption></figure>

これにより SQLite データベースが作成されます。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fq7W9Eht0oceSLortjT9X%2Fimage.png?alt=media&amp;token=ee5dcacc-5144-46d0-9b6a-89b87079c830" alt=""><figcaption></figcaption></figure>

### ネットワーク名をインポートする

アクセスポイント名で ESSID ファイルを作成します:

{% code overflow="wrap" %}

```bash
echo "jordan" > essid.lst
```

{% endcode %}

ESSID ファイルをインポートします:

{% code overflow="wrap" %}

```bash
airolib-ng password-airolib --import essid essid.lst
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FW3zoZ5ph64pno3eui3N8%2Fimage.png?alt=media&amp;token=d23a4432-9bd1-4fa6-b48b-0248db27ac29" alt=""><figcaption></figcaption></figure>

データベースの状態を確認します:

{% code overflow="wrap" %}

```bash
airolib-ng password-airolib --stats
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FrJh1zhmmOpFVzFmk2sc1%2Fimage.png?alt=media&amp;token=4a48f177-8a9c-492a-8e3c-1172f79c6460" alt=""><figcaption></figcaption></figure>

値を生成する前にデータベースをクリーンにします:

{% code overflow="wrap" %}

```bash
airolib-ng password-airolib --clean all
```

{% endcode %}

### データベースを生成する

事前計算済みの値を生成します。これには約10分かかります。

{% code overflow="wrap" %}

```bash
airolib-ng password-airolib --batch
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FI4tJtJw6azZtaHWGw3Hi%2Fimage.png?alt=media&amp;token=d2467f7a-8c05-4221-a91c-6d5c4dc95cdd" alt=""><figcaption></figcaption></figure>

### キャプチャをテストする

Airolib データベースを使用して Aircrack-ng を実行します:

{% code overflow="wrap" %}

```bash
aircrack-ng -r password-airolib Capture-01.cap
```

{% endcode %}

これには1.5秒未満しかかかりません。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FShRM9OONTWiaZ9gpCe1R%2Fimage.png?alt=media&amp;token=872ee0a8-5651-4a63-8b2e-773f6bb0f311" 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/precomputed-attacks/cracking-with-airolib.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.
