> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WEP

> Connect to WEP-protected networks using wpa_supplicant with a hex or ASCII key.

## Config File

`wep.conf`:

```
network={
    ssid="NETWORK-NAME"
    key_mgmt=NONE
    wep_key0=<KEY-IN-HEX>
    wep_tx_keyidx=0
}
```

<Note>
  `wep_key0` accepts hex (e.g. `AABBCCDDEE`) or ASCII wrapped in quotes (e.g. `"password"`). Hex is the format returned by `aircrack-ng`.
</Note>

***

## Connect

Stop monitor mode first if active:

```bash theme={"dark"}
sudo airmon-ng stop wlan0mon
```

Connect:

```bash theme={"dark"}
sudo wpa_supplicant -Dnl80211 -i <INTERFACE> -c wep.conf
```

Get an IP address:

```bash theme={"dark"}
sudo dhclient <INTERFACE> -v
```
