# Capture Wi-Fi Traffic

### Automate Method

**enable monitor mode on wireless adapter**

```bash
airmon-ng start nameofCard

# disable
 airmon-ng stop nameofCard
```

![image.png](https://3641998078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bbPCMP2UOAXGuYloqD%2Fuploads%2F46zkaDzSpAemSR8unJAL%2Fimage.png?alt=media)

***

### **Manual Method**

**First → power down interface**

```bash
sudo ifconfig wlan0 down
```

**Second → enable Monitor mode**

```bash
sudo iwconfig wlan0 mode monitor
```

<figure><img src="https://3641998078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bbPCMP2UOAXGuYloqD%2Fuploads%2F46zkaDzSpAemSR8unJAL%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Third→ Power Up interface**

```bash
sudo ifconfig wlan0 up
```

***

### Capture Traffic

```bash
sudo airodump-ng wlan0
```

<figure><img src="https://3641998078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bbPCMP2UOAXGuYloqD%2Fuploads%2FoCzgwCyegwhv4X86MCk5%2Fimage%202.png?alt=media" alt=""><figcaption></figcaption></figure>
