NOTE: DWA script is only for educational and learning purposes and I am not responsible for misuse. Never use it to annoy or harm other people or systems. Use it only against your own networks and devices!!!
DWA script injects many deauth packets against a client connected to an Access Point. So, what is a deauth packet?
Deauthentication packets are legitimate from the IEEE 802.11 standard (layer 2) and are used for disconnect a client from the wireless network for various reasons. For example, when the password its wrong, the AP send this packet to avoid that the client connects. Other example, when the network reach the maximum number of possible connected clients, the AP sends deauth packets to the next clients that try to connect.
Here is an example of how this packets are injected (left). Also we can view an deauthentication packet sniffing (right). As we can view, this packets need a source and destination MAC addresses.
Knowing all this, we can use it to inject packets at our will to disconnect a specific device from almost any network. The program that we going to use is the aircrack-ng suit in Kali Linux.
The operation of this script is summarized in the following block diagram.
First we need to install the aircrack-ng suite. There is two methods:
First method: apt-get
sudo apt-get update
sudo apt-get install aircrack-ng
Second method: compile and install
We install all the dependencies for aircrack.
sudo apt-get -y install build-essential libssl-dev libnl-3-dev libnl-genl-3-dev dpkg-dev g++ g++-4.8 libc-dev-bin libc6-dev libstdc++-4.8-dev zlib1g-dev debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg glibc-doc libstdc++-4.8-doc libalgorithm-merge-perl libssl-doc libalgorithm-diff-xs-perl
sudo apt-get update
And now we just download, decompress, compile and install the suite.
cd ~
wget https://download.aircrack-ng.org/aircrack-ng-1.5.2.tar.gz
tar -zxvf ccc.tar.gz
cd aircrack-ng-1.5.2
make
make install
Now we need to install DWA. For this, we need to clone the git and decompress the .tar
. Finally we execute the installer.sh
and the script will be installed!
cd ~
git clone https://github.com/davidahid/Deauth-packets-injection
cd Deauth-packets-injection/scripts/
bash installer.sh
Now we need to change the permissions and add that we want that the program be executable.
sudo chmod +x /bin/dwa
Optionally we can remove the downloaded git.
cd
rm -rf Deauth-packets-injection
Now we can execute the DWA script in the terminal as a conventional command!
dwa
The DWA script its been saved in /etc/deauth_wireless_attack.sh
and the binary file in /bin/dwa
.