> For the complete documentation index, see [llms.txt](https://playbook.sidthoviti.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playbook.sidthoviti.com/wifi-pentesting.md).

# Wifi Pentesting

For TP-Link-wn722N, install these drivers:

```
sudo apt update
sudo apt upgrade
sudo apt install -y realtek-rtl8188eus-dkms
```

### Configuration

View Network Interfaces

```
ifconfig && iwconfig && airmon-ng
```

Turn on a network interface on/off:

```
ifconfig wlan0 up

ifconfig wlan0 down
```

Restart the Network Manager

```
service NetworkManager restart
```

Check the WLAN regulatory domain:

```
iw reg get
```

Set the WLAN regulatory domain:

```
iw reg set HR
```

Turn the power of wireless interface up/down (CAUTION):

```
iwconfig wlan txpower 40
```
