> 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/reconnaissance-and-capture/bettercap-attack-process.md).

# Proceso de ataque con Bettercap

Flujo de trabajo básico de Bettercap para reconocimiento y pruebas WiFi.

Bettercap es un binario compilado. El siguiente flujo de trabajo muestra su proceso básico de ataque WiFi.

{% embed url="<https://github.com/bettercap/bettercap>" %}

### Iniciar Bettercap

Inicie Bettercap con la interfaz en modo monitor:

```bash
./bettercap -iface wlan0mon
```

### Iniciar reconocimiento

Una vez dentro de Bettercap, habilita el reconocimiento WiFi:

```bash
wifi.recon on
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FILOvqjoOFPj7o6Gf4ztv%2F%7B09A4B14D-C803-4FF4-A5F9-62A2479C23CE%7D.png?alt=media&amp;token=8c026d53-5bb6-4099-9bbf-fb4703fda24c" alt=""><figcaption></figcaption></figure>

### Ordenar clientes

Ordena los clientes detectados en orden descendente:

```bash
set wifi.show.sort clients desc
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FqayRbT94OMxK3At2iEob%2F%7B07B837DB-2EC1-4BBA-A66A-1DFC0EE29FCA%7D.png?alt=media&amp;token=c4d3f0ce-4295-4c74-8a9e-f0d72e14134b" alt=""><figcaption></figcaption></figure>

### Configurar el ticker

Configura un ticker para refrescar la información en pantalla:

```bash
set ticker.commands 'clear; wifi.show'
ticker on
```

Esto muestra la información detectada en una vista que se actualiza continuamente.

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2F5EUE6Vw1xLuGXKj7hc5A%2F%7B0DE62A07-B4F7-47B1-AE0B-93F50B8658C1%7D.png?alt=media&amp;token=53aa3784-de72-4e0e-a5e0-22110410a5dd" alt=""><figcaption></figcaption></figure>

### Filtrar por canal

Filtra el reconocimiento al canal de interés:

```bash
wifi.recon.channel 1
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FVKa1If9TFKemG5jeN3mj%2F%7BD63FAF2B-C109-4878-8646-48814D9EB114%7D.png?alt=media&amp;token=c5de7725-7769-4b79-9cd4-4940e8851d86" alt=""><figcaption></figcaption></figure>

### Ejecutar un ataque de desautenticación

Para ejecutar un ataque de desautenticación contra un punto de acceso:

```bash
wifi.deauth <AP_BSSID>
```

Reemplace `<AP_BSSID>` con el BSSID del punto de acceso objetivo.

El handshake se guarda en:

```
/root/bettercap-wifi-handshakes.pcap
```

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fewi6eQSBexXH5wHUAaKx%2F%7B5FF3F4A3-081A-4BA0-8A63-0CBAD396BFBF%7D.png?alt=media&amp;token=fc33cdf7-e494-4840-b46a-1fb34f2f0236" 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/reconnaissance-and-capture/bettercap-attack-process.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.
