# 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
```
