How to Hack Wi-Fi: DoSing a Wireless AP Continuously « Null Byte :: WonderHowTo

Welcome back, my nascent hackers!In previous tutorials for myWi-Fi Hacking series, I have shown you how to crackWEPandWPA2passwords, break aWPS PIN, and createEvil TwinandRogueaccess points. In this continuation of the series, let's look at slightly different approach to attacking wireless.(If you are new to hacking Wi-Fi, make sure you check outthe getting started guidebefore attempting any of the tasks mentioned above.)Our Cyber War ScenarioYour side, the good guys, of course, are about to launch an attack against the bad guys. Your mission is to knock out all of the wireless communication from their field command and control center so that your army can attack without any notifications being sent via Wi-Fi.Of course, in this scenario, we are only knocking out Wi-Fi communication. The bad guys could certainly still communicate by cellular phone, by wired communication, by satellite, etc., but those are the tasks of your compatriots. Your single task is to knock out their Wi-Fi communication indefinitely, or at least, as long as possible.How We'll Get the Job DoneIn this tutorial, we will useAircrack-ngand aBASHshell script that will DoS a wireless AP continuously. Unlike other resources on the web, APs are VERY easy to deny access to. There are multiple ways to DoS a wireless AP, but among the easiest is to use the de-authenticate frame.Step 1: Put Your Wireless Adapter into Monitor ModeFirst, fire upKaliand open a terminal. Then, in order to use Aircrack-ng effectively, we need to put ourwireless adapterinto monitor mode. This is the equivalent of promiscuous mode on a wired network card. When we do this, we can see all the wireless traffic passing through the air around us.kali > airmon-ng start wlan0Step 2: Use Airdump-Ng to Get the ParametersNow that we have our adapter in monitor mode, we need to useAirdump-ngto view all the parameters of all the traffic around us.kali airodump-ng mon0Note that the enemy's AP is named "TheDragonLair." That is the AP we will be DoSing, and that is the MAC address we need to write our script. In this case, it is 78:CD:8E:3B:B7:08, but yours, of course, will be different.Step 3: Open a Text Editor & Write the ScriptNow, we are going to useAireplay-ngto de-authenticate the users on TheDragonLair AP. You will need a text editor to create our script. Here, I will be using Leafpad, but you can use any text editor of your choice.We want a script that will send de-authentication frames to the AP and all clients, knocking everyone off the network. After doing so, we will give them 60 seconds to re-authenticate and then de-authenticate them again. We could write the script to send continuous de-authenticate frames, but that would likely be met with a countermeasure. We want to both confuse and block any effective wireless communication by the enemy.Copythis scriptinto your text editor, replacing the MAC address with the MAC address of your target AP. This simple script does the following.#!/bin/bashtells the terminal what interpreter to use.for i in {1..5000}creates a for loop that will execute our commands 5,000 times.docontains the commands we want to execute. Everything after the do and before the done will be executed in each loop.aireplay-ngsends the deauth frames 1,000 times (the default is continuous) to the MAC address of the AP (-a) from the interface mon0.sleep 60stells the script to sleep for 60 seconds. In this way, the clients will be able to re-authenticate for 60 seconds before we send another deauth flood. Hopefully, this short interval will lead them to believe that the problem is with their AP and not us.donecloses the for loop.The way we have written this script, it will de-authenticate ALL clients. Some APs will not allow this, and we would have to rewrite this script with the individual MAC addresses we want to de-authenticate.Now, save the script aswirelessDoS.Step 4: Change PermissionsTo be able to execute the script, we will need to give ourselves execute permissions. We use the Linux commandchmodfor this.kali > chmod 755 wirelessDoSStep 5: Execute the ScriptFinally, we execute the script by typing:kali > ./wirelessDoSNow that we have disabled the enemy's wireless communication, they may try to block your MAC address. An advanced variation of this script would be one where you use a tool like macchanger to change your MAC address before each de-authentication making it much harder for the enemy to block you deauth frames.Keep coming back, my nascent hackers, as we delve deeper into the world of hacking, cyber warfare, and cyber espionage!Want to start making money as a white hat hacker?Jump-start your hacking career with our2020 Premium Ethical Hacking Certification Training Bundlefrom the newNull Byte Shopand get over 60 hours of training from cybersecurity professionals.Buy Now (90% off) >Other worthwhile deals to check out:97% off The Ultimate 2021 White Hat Hacker Certification Bundle99% off The 2021 All-in-One Data Scientist Mega Bundle98% off The 2021 Premium Learn To Code Certification Bundle62% off MindMaster Mind Mapping Software: Perpetual LicenseCover image viaShutterstockRelatedHow to Hack Wi-Fi:Selecting a Good Wi-Fi Hacking StrategyHow to Hack Wi-Fi:Cracking WEP Passwords with Aircrack-NgHow to Hack Wi-Fi:Breaking a WPS PIN to Get the Password with BullyHow to Hack Wi-Fi:Cracking WPA2-PSK Passwords Using Aircrack-NgHow to Hack Wi-Fi:Performing a Denial of Service (DoS) Attack on a Wireless Access PointHow to Hack Wi-Fi:Getting Started with the Aircrack-Ng Suite of Wi-Fi Hacking ToolsHow to Hack Wi-Fi:Choosing a Wireless Adapter for HackingHow To:Extend a (Hacked)Router's Range with a Wireless Adapter.How to Hack Wi-Fi:Creating an Evil Twin Wireless Access Point to Eavesdrop on DataHow to Hack Wi-Fi:Creating an Invisible Rogue Access Point to Siphon Off Data UndetectedHow To:Build a Pumpkin Pi — The Rogue AP & MITM Framework That Fits in Your PocketHow to Hack Wi-Fi:Cracking WPA2-PSK Passwords with CowpattyHow to Hack Wi-Fi:Getting Started with Terms & TechnologiesHack Like a Pro:How to Get Even with Your Annoying Neighbor by Bumping Them Off Their WiFi Network —UndetectedHow To:Select a Field-Tested Kali Linux Compatible Wireless AdapterHow To:Log Wi-Fi Probe Requests from Smartphones & Laptops with ProbemonHow to Hack Wi-Fi:Disabling Security Cameras on Any Wireless Network with Aireplay-NgHow To:Spy on Network Relationships with Airgraph-NgHow To:Extend Battery Life by Seamlessly Managing Wireless Radio Connections on Your Samsung Galaxy S3How To:Null Byte & Null Space Labs Present: Wi-Fi Hacking, MITM Attacks & the USB Rubber DuckyHow to Hack Wi-Fi:Get Anyone's Wi-Fi Password Without Cracking Using WifiphisherHow To:Set Up a Headless Raspberry Pi Hacking Platform Running Kali LinuxAndroid Basics:How to Connect to a Wi-Fi NetworkHow To:Hack 5 GHz Wi-Fi Networks with an Alfa Wi-Fi AdapterHow To:Hack Wi-Fi Networks with BettercapNews:Project Zero Finds iPhone & Android Open to Bugs in Broadcom's Wi-Fi ChipsHow To:Hack WiFi Passwords for Free Wireless Internet on Your PS3How To:Hunt Down Wi-Fi Devices with a Directional AntennaHow To:Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019How To:Auto-Manage Wireless Connections to Prolong Daily Battery Life on Your Samsung Galaxy Note 2How to Hack Wi-Fi:Stealing Wi-Fi Passwords with an Evil Twin AttackHow To:Turn on Google Pixel's Wi-Fi Assistant to Get Secure Access on Open NetworksMac for Hackers:How to Set Up a MacOS System for Wi-Fi Packet CapturingHow To:Save Battery Power by Pairing Wi-Fi Connections with Cell Tower Signals on Your Galaxy Note 3How To:Automate Wi-Fi Hacking with Wifite2How to Hack with Arduino:Building MacOS Payloads for Inserting a Wi-Fi BackdoorHow To:Create an Evil Access Point with MitmAPHow To:Crack Wi-Fi Passwords—For Beginners!How To:How Hackers Steal Your Internet & How to Defend Against ItHow To:Get Free Wi-Fi from Hotels & More