> For the complete documentation index, see [llms.txt](https://exabsurdo.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://exabsurdo.gitbook.io/home/security/offensive-security/wireless/interfaces.md). Agents can also search and read this documentation through its [MCP server](https://exabsurdo.gitbook.io/home/~gitbook/mcp).

# Interfaces

Wi-Fi interfaces have different modes, each enabling specific capabilities in wireless communications. What each mode does. How to test if your interface supports it:

{% code title="Check interface strength" %}

```shellscript
iwconfig
iw reg get
```

{% endcode %}

{% code title="Change interface region (Abide by pertinent rules and laws when changing)" %}

```shellscript
sudo iw reg set US
```

{% endcode %}

{% code title="Change interface power settings" %}

```shellscript
sudo ifconfig wlan0 down
sudo iwconfig wlan0 txpower 40
sudo ifconfig wlan0 up
```

{% endcode %}

{% code title="Check interface capabilities" %}

```shellscript
iw list
```

{% endcode %}

{% code title="Change interface channel" %}

```shellscript
sudo ifconfig wlan0 down
sudo iwconfig wlan0 channel 64
sudo ifconfig wlan0 up
iwlist wlan0 channel
```

{% endcode %}

{% code title="Change interface frequency" %}

```shellscript
sudo ifconfig wlan0 down
sudo iwconfig wlan0 freq "5.52G"
sudo ifconfig wlan0 up
```

{% endcode %}

{% code title="Check frequency" %}

```shellscript
iwlist wlan0 frequency | grep Current
```

{% endcode %}

{% code title="Change mode to managed" %}

```shellscript
sudo iwconfig wlan0 mode managed
```

{% endcode %}

{% code title="Broadcast a network on master mode" %}

```shellscript
interface=wlan0
driver=65782yn
ssid=APName
channel=7
hw_mode=g

sudo hostapd open.conf
```

{% endcode %}

{% code title="Change interface to mesh mode" %}

```shellscript
sudo iw dev wlan0 set type mesh
```

{% endcode %}

{% code title="Change interface to monitor mode (First disable interface)" %}

```shellscript
sudo iw wlan0 set monitor control
```

{% endcode %}

#### **Wi-Fi Attack Modes and Interface Requirements**

1. \
   **Rogue AP / Evil-Twin Attack**
   * Requires **master/AP mode** support.
   * Tools/daemons: `hostapd`, `hostapd-mana`, `hostapd-wpe`, `airbase-ng`.
   * Purpose: Set up a fake access point to trick clients into connecting.
2. **Backhaul / Mesh Exploitation**
   * Requires **ad-hoc or mesh mode** support.
   * Basic monitoring: **monitor mode + packet injection** is often enough.
   * Advanced: Allows **node impersonation** and other mesh/network-level attacks.
