> 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/es/hacking-wifi/wpa-wpa2-psk-network-attacks/precomputed-attacks/cracking-with-airolib.md).

# Crackeo con Airolib

Construye una base de datos Airolib y prueba un handshake WPA/WPA2 capturado.

Airolib-ng almacena candidatos de contraseñas y nombres de red en una base de datos SQLite.

### Importar candidatos de contraseña

Importa el `passwords.txt` archivo:

{% code overflow="wrap" %}

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

{% endcode %}

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

Esto crea una base de datos SQLite.

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

### Importa el nombre de la red

Crea un archivo ESSID con el nombre del punto de acceso:

{% code overflow="wrap" %}

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

{% endcode %}

Importa el archivo ESSID:

{% code overflow="wrap" %}

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

{% endcode %}

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

Comprueba el estado de la base de datos:

{% code overflow="wrap" %}

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

{% endcode %}

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

Limpia la base de datos antes de generar los valores:

{% code overflow="wrap" %}

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

{% endcode %}

### Genera la base de datos

Genera los valores precalculados. Esto tarda unos 10 minutos.

{% code overflow="wrap" %}

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

{% endcode %}

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

### Probar la captura

Usa Aircrack-ng con la base de datos de Airolib:

{% code overflow="wrap" %}

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

{% endcode %}

Esto tarda menos de 1,5 segundos.

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