> 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/pt-br/hacking-wifi/wpa-wpa2-psk-network-attacks/reconnaissance-and-capture/bettercap-attack-process.md).

# Processo de Ataque com Bettercap

Fluxo básico de trabalho do Bettercap para reconhecimento e testes em Wi-Fi.

Bettercap é um binário compilado. O fluxo de trabalho a seguir mostra seu processo básico de ataque WiFi.

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

### Iniciar o Bettercap

Inicie o Bettercap com a interface em modo monitor:

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

### Iniciar o reconhecimento

Uma vez dentro do Bettercap, habilite o reconhecimento WiFi:

```bash
wifi.recon on
```

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

Ordene os clientes detectados em ordem decrescente:

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

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

Configure um ticker para atualizar as informações na tela:

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

Isso exibe as informações detectadas em uma visualização continuamente atualizada.

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

Filtre o reconhecimento para o canal de interesse:

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

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

### Executar um ataque de desautenticação

Para executar um ataque de desautenticação contra um ponto de acesso:

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

Substituir `<AP_BSSID>` com o BSSID do ponto de acesso alvo.

O handshake é salvo em:

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

<figure><img src="https://783634792-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/pt-br/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.
