An automated script for deauthentication attack
Sends deauth
(deauthentication) packets to wifi network which results network outage for connected devices. Uses scapy
module to send deauth
packets.
Know more about Deauthentication Attack
sudo apt-get install aircrack-ng -y
sudo apt-get install python-scapy -y
We can run in 2 ways:
sudo python deauth.py
It will automatically creates mon0
with airmon-ng start wlan0
(it wont create, if already exists) and sniffs the wifi signal on that interface. After few seconds, it will displays the SSID
and its MAC
to choose.
sudo python deauth.py -m XX:YY:AA:XX:YY:AA
MAC address as command line argument. In this case, there is no need to sniff wifi.
airmon-ng
versionwlp13s0
)iwlist
tool (Relatively faster)root@ghost:/opt/scripts#./deauth.py -h
usage: deauth.py [-h] [-d] [-c COUNT] [-m MAC] [-w] [-k] [-v]
Sends deauthentication packets to a wifi network which results network outage
for connected devices. [Coded by VEERENDRA KAKUMANU]
optional arguments:
-h, --help show this help message and exit
-d Run as daemon
-c COUNT Stops the monitoring after this count reachs. By default it is
2000
-m MAC Sends deauth packets to this network
-w Uses "iwlist" to get wifi hotspots list
-k Kills "Deauth Daemon" if it is running
-v show program's version number and exit
-c
"COUNT"?It is a threshold value to stop the "monitoring". The access point or wifi hotspot trasmits beacon frames periodically to announce it's presence. The beacon frame contains all the information about the network. Now, the script looks for these beacons and makes count. If the count reachs the limit, it will stops the monitoring.
-w
"Uses "iwlist" to get wifi hotspots list"?Script runs iwlist wlan0 s
and gets wifi networks near to you
-d
"Run as daemon"?Script runs in background while attacking. (Use option -k
to kill)
-w
option)802.11w
)-w
continously twice or more, you may get below error. If this is the case, restart network-manager
; sudo service network-manager restart
wlp13s0 Interface doesn't support scanning : Device or resource busy
wget -qO deauth.py https://goo.gl/bnsV9C
Use 802.11w
suppored routers. Know more about 802.11w and read cisco document
In order 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)