wifi jammer using aircrack-ng without any external wifi adapters. If you looking for an automated script head over to my another repo here
A deauth attack sends forged deauthentication packets from your machine to a client connected to the network you are trying to jam. These packets include fake "sender" addresses that make them appear to the client as if they were sent from the access point themselves. Upon receipt of such packets, most clients disconnect from the network and immediately reconnect.
Install aircrack-ng on your machine and make sure your wifi card supports monitor mode (your in-build wifi card is enough if it supports monitor mode)
sudo apt install aircrack-ng
In this instance, my wireless card is called wlan0.
- Now run
sudo airmon-ng start wlan0
where wlan0 is your network card. This will put your card into monitor mode which allows the card to monitor all traffic on the network.
as you can see my wifi card is now in monitor mode
-
You will need to run
iwconfig
again because after switching to monitor mode it will change your network card name. In most cases it changes it to mon0 but in mine it’s changed to wlan0mon. -
Now run
sudo airodump-ng wlan0mon
This is every single router in range. Wait for some moments and once you find your target Press ctrl+c
to stop. Now we just gonna deauth my router named victim.
We want to take note of 2 things here:
The BSSID (mac address) of the router
The Channel(CH) of the router
In my case the channel is 4 and copy the corresponding bssid
- Now run the following command
sudo airodump-ng wlan0mon --bssid [routers BSSID here] -c [routers channel here]
-c for channel .
now it shows like this. Press ctrl+c
to stop.
- now run
sudo aireplay-ng --deauth 0 -a [ROUTERS BSSID HERE] wlan0mon
The 0 represents an infinite amount of deauth attacks. If you wanted to only run 5 deauth attacks you’ll change this to 5.
Press ctrl+c
to stop.
Now most of the devices connected to the router 'victim' will be disconnected. Connected devices try to reconnect to the router 'victim' but again it will be disconnected. But some of the devices might not get disconnect from the wifi router( Samsung devices ). In this situations you can just do deauthenticate specific device alone rather then sending deauth packets the whole wifi router. For instance imagine 2 devices connected to the router Victim you can just send deauthentication packets to one device and knock that device from being connected to the router Victim.
For specific device attack just repeat from step 4 and make changes in the final 6th step as follows
sudo aireplay-ng --deauth 0 -a [ROUTERS BSSID HERE] -c [DEVICES MAC ADDRESS] wlan0mon
Devices mac address can be found under the station coloumn. Bascially all the devices connceted to the wifi router Victim will be shown here.
After the attack put your wifi card in managed mode in order to use wifi in your pc
- Run
sudo airmon-ng stop wlan0mon
That's it
Education purpose only