> 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/pyrit-database-attack-cracking.md).

# Pyrit データベース攻撃クラック

Pyrit データベースに WPA/WPA2 キーを事前計算し、キャプチャしたハンドシェイクをテストする。

Pyrit のデータベース攻撃では、キャプチャをテストする前に鍵を事前計算します。これにより、最終検索は非常に高速になります。

このワークフローでは、パスワード候補を取り込み、対象の ESSID を追加し、必要な値を生成します。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FgmwqtmKkrgGGVbZasqSH%2Fimage.png?alt=media&amp;token=0e8b5876-9c0b-4b2e-a2c9-b7fcad75f615" alt=""><figcaption></figcaption></figure>

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

パスワード一覧を Pyrit データベースにインポートします:

{% code overflow="wrap" %}

```bash
pyrit -i passwords.txt import_passwords
```

{% endcode %}

### ESSID を作成する

対象のネットワーク名を追加します:

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FNK6LX20afte1GR8Ne0wp%2Fimage.png?alt=media&amp;token=19e53b19-5b1d-4ebb-8b2b-2770645c967d" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```bash
pyrit -e jordan create_essid
```

{% endcode %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FfXbe8TMVLoZWiVf8cL7h%2Fimage.png?alt=media&amp;token=0b62b893-6fff-47b7-a3bd-126e24bc5567" alt=""><figcaption></figcaption></figure>

### 鍵を事前計算する

インポートしたパスワードと ESSID のデータベース値を生成します:

{% code overflow="wrap" %}

```bash
pyrit batch
```

{% endcode %}

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

キャプチャされたハンドシェイクに対してデータベース攻撃を実行します:

{% code overflow="wrap" %}

```bash
pyrit -r Capture-01.cap attack_db
```

{% endcode %}

このテストには 0.0001 秒かかります。Pyrit は毎秒約 9,300 万個のパスワードをチェックします。

事前計算されたデータベースにより、最終検索時に各パスワードを計算する必要がなくなります。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FGNjJ9FPBTODpPuw1BRfR%2Fimage.png?alt=media&amp;token=d4bc6a51-2a61-4b23-8461-22a3040270bf" 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/pyrit-database-attack-cracking.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.
