###Intro
Written in Python, sends deauth
packets to a wifi network which results network outage for connected devices. Uses scapy
module to send deauth
packets and sniffs wifi.
Know more about Deauthentication Attack
###Required Tools
- aircrack-ng (
apt-get install aircrack-ng
) - scapy (Python Module:
apt-get install python-scapy
)
###How to run? We can run in 3 ways:
sudo python deauth.py
. It will automatically createsmon0
withairmon-ng start wlan0
(it wont create, if already exists) and sniffs the wifi singal on that interface. After few seconds, it will displays theSSID
and itsMAC
to choose.sudo python deauth.py XX:YY:AA:XX:YY:AA
. MAC address as command line argument. In this case, there is no need to sniff wifi.export DEAUTH=XX:YY:AA:XX:YY:AA && sudo python deauth.py
. MAC address as environmental variables.
####How to avoid Deauthentication attack?
Use 802.11w
suppored routers. Know more about 802.11w and read cisco document
####NOTE:
Inorder to work deauthentication attack successful, you should near to the target network. The deauth
packets should reach the connected devices of the target network(s)
####Difficult to setup environment for this?? check out my other repo: docker image veerendrav2/wifi_sniffer
.