> 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/traffic-manipulation/airdecap-packet-decryption.md).

# Descifrado de paquetes con Airdecap

Descifra una captura WiFi autorizada con Airdecap-ng e inspecciona el tráfico HTTP.

Una captura WiFi cifrada no puede inspeccionarse directamente. Por ejemplo, filtrar por tráfico HTTP antes de descifrar la captura no devuelve resultados:

{% code overflow="wrap" %}

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

{% endcode %}

no funcionaría

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

### Descifrar la captura WiFi

Airdecap-ng descifra la capa WiFi cuando proporcionas el nombre de red y la frase de contraseña correctos. La captura resultante puede inspeccionarse entonces.

Una frase de contraseña incorrecta no descifra el tráfico:

{% code overflow="wrap" %}

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

{% endcode %}

Usa la frase de contraseña correcta para descifrar la captura:

{% code overflow="wrap" %}

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

{% endcode %}

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

### Inspeccionar solicitudes HTTP

Airdecap-ng crea un archivo de captura descifrado. Filtra la captura para solicitudes HTTP POST:

{% code overflow="wrap" %}

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

{% endcode %}

La salida muestra los datos del formulario enviado cuando la aplicación usa HTTP sin cifrar.

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

Para inspeccionar con más detalle los campos HTTP enviados:

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

El descifrado de WiFi no descifra HTTPS. Los cuerpos de las solicitudes HTTPS permanecen protegidos.

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