{"id":104,"date":"2024-01-31T11:46:03","date_gmt":"2024-01-31T10:46:03","guid":{"rendered":"https:\/\/blog.802punkt11.de\/?p=104"},"modified":"2026-07-26T12:24:57","modified_gmt":"2026-07-26T10:24:57","slug":"sending-deauthentication-packets-with-kali","status":"publish","type":"post","link":"https:\/\/blog.802punkt11.de\/index.php\/2024\/01\/31\/sending-deauthentication-packets-with-kali\/","title":{"rendered":"Sending deauthentication packets with Kali"},"content":{"rendered":"\n<h3 class=\"wp-block-heading is-style-text-subtitle has-xx-large-font-size is-style-text-subtitle--1\">How to Send Deauthentication Packets Using Kali Linux<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Deauthentication attacks are a type of denial-of-service (DoS) attack that targets Wi-Fi networks. These attacks are typically used to disconnect devices from a wireless access point by sending deauthentication packets. In this article, we will explore how to send deauthentication packets using Kali Linux, one of the most popular penetration testing distributions, using the <code>aircrack-ng<\/code> suite and other tools. This process can be used for network testing and penetration testing to assess the security of Wi-Fi networks, but it&#8217;s important to note that such attacks should only be carried out on networks you own or have explicit permission to test.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/blog.802punkt11.de\/wp-content\/uploads\/2024\/01\/deauth-with-kali-1024x683.png\" alt=\"\" class=\"wp-image-188\" srcset=\"https:\/\/blog.802punkt11.de\/wp-content\/uploads\/2024\/01\/deauth-with-kali-1024x683.png 1024w, https:\/\/blog.802punkt11.de\/wp-content\/uploads\/2024\/01\/deauth-with-kali-300x200.png 300w, https:\/\/blog.802punkt11.de\/wp-content\/uploads\/2024\/01\/deauth-with-kali-768x512.png 768w, https:\/\/blog.802punkt11.de\/wp-content\/uploads\/2024\/01\/deauth-with-kali.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading is-style-text-subtitle has-x-large-font-size is-style-text-subtitle--2\">Prerequisites<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, you need the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Kali Linux<\/strong>: Make sure you have Kali Linux installed on your system, either on a virtual machine or a dedicated machine.<\/li>\n\n\n\n<li><strong>Wireless Network Adapter<\/strong>: You need a compatible wireless network adapter that supports packet injection. <\/li>\n\n\n\n<li><strong>Permission to Test<\/strong>: You must have permission to carry out a deauthentication attack on the network you&#8217;re testing, as this type of attack is illegal if done without authorization.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 1: Install Necessary Tools<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Kali Linux comes with a number of tools pre-installed that can help you with sending deauthentication packets. The main tool we&#8217;ll be using is <strong>aircrack-ng<\/strong>, but others like <strong>aireplay-ng<\/strong> and <strong>iwconfig<\/strong> will also be helpful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can ensure that these tools are installed by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get install aircrack-ng\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command will update the package list and install any necessary tools.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 2: Identify the Wireless Network Interface<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before sending deauthentication packets, you need to identify your wireless network interface. You can use the following command to list all available network interfaces:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iwconfig\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will show you all network interfaces, both wired and wireless. Look for your wireless interface, usually named something like <code>wlan0<\/code> or <code>wlan1<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 3: Enable Monitor Mode<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To send deauthentication packets, your wireless card must be in <strong>monitor mode<\/strong>. Monitor mode allows the network adapter to listen to and inject packets into wireless networks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To enable monitor mode, use the <code>airmon-ng<\/code> tool:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Stop the network manager (if running): <code>sudo systemctl stop NetworkManager<\/code><\/li>\n\n\n\n<li>Put your wireless adapter into monitor mode: <code>sudo ip link set wlan0 down sudo iw dev wlan0 set type monitor sudo ip link set wlan0 up<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can use the <code>airmon-ng<\/code> script to automate the process:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo airmon-ng start wlan0\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will put your wireless card into monitor mode (the interface will likely change to something like <code>wlan0mon<\/code>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 4: Discover the Target Network<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you&#8217;ll want to discover the target Wi-Fi network and its clients. Use the <code>airodump-ng<\/code> tool to scan for nearby networks.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo airodump-ng wlan0mon\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will display a list of networks, showing the ESSID (network name), BSSID (MAC address of the access point), and the clients connected to each network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note the <strong>BSSID<\/strong> of the target access point (the router), and the <strong>client MAC address<\/strong> of the device you want to disconnect (optional, but useful for targeting a specific client).<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 5: Send Deauthentication Packets<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you have the necessary information, you can use <code>aireplay-ng<\/code> to send deauthentication packets. This tool can be used to target a specific client or just flood the network with deauthentication packets.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Option 1: Flood Deauthentication Attack<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To disconnect all clients from the target access point, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo aireplay-ng --deauth 0 -a &lt;BSSID&gt; wlan0mon\n<\/code><\/pre>\n\n\n\n<p class=\"has-x-large-font-size wp-block-paragraph\">Explanation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--deauth 0<\/code>: Sends an infinite number of deauthentication packets.<\/li>\n\n\n\n<li><code>-a &lt;BSSID&gt;<\/code>: Specifies the MAC address of the target access point.<\/li>\n\n\n\n<li><code>wlan0mon<\/code>: The name of your wireless interface in monitor mode.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This command will send deauthentication packets to all clients connected to the target network, forcing them to disconnect and attempt to reconnect.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-x-large-font-size\">Option 2: Target Specific Client<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To target a specific client (for example, a device you want to disconnect), use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo aireplay-ng --deauth 10 -a &lt;BSSID&gt; -c &lt;Client MAC&gt; wlan0mon\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Explanation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--deauth 10<\/code>: Sends 10 deauthentication packets.<\/li>\n\n\n\n<li><code>-a &lt;BSSID&gt;<\/code>: Specifies the access point&#8217;s MAC address.<\/li>\n\n\n\n<li><code>-c &lt;Client MAC&gt;<\/code>: Specifies the MAC address of the client device you want to disconnect.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This command will disconnect only the specified client from the network, without affecting other clients.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Step 6: Monitor the Attack<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After sending deauthentication packets, you can monitor the results using <code>airodump-ng<\/code> or simply observe the target client or access point to see if devices are being disconnected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are testing the attack on your own network, you should see the client devices disconnecting and attempting to reconnect shortly after.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Stop the Attack and Return to Managed Mode<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After completing the test, stop the attack by pressing <code>Ctrl+C<\/code>. Then, return your wireless card to managed mode:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ip link set wlan0mon down\nsudo iw dev wlan0mon set type managed\nsudo ip link set wlan0 up\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can restart the network manager:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start NetworkManager\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Legal and Ethical Considerations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">While deauthentication attacks can be useful for penetration testing and educational purposes, it&#8217;s crucial to remember that using these attacks without permission is illegal and unethical. Always ensure that you have explicit permission from the network owner before testing a network&#8217;s security.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-x-large-font-size\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sending deauthentication packets using Kali Linux can be an effective way to simulate attacks on a Wi-Fi network for security testing. Tools like <code>aireplay-ng<\/code> and <code>airodump-ng<\/code> from the <strong>aircrack-ng<\/strong> suite provide the necessary capabilities to send these packets and monitor their effects. However, it\u2019s important to use these tools responsibly and only on networks you own or have authorization to test. Always prioritize ethical hacking practices to ensure a safe and legal cybersecurity environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Send Deauthentication Packets Using Kali Linux Deauthentication attacks are a type of denial-of-service (DoS) attack that targets Wi-Fi networks. These attacks are typically used to disconnect devices from a wireless access point by sending deauthentication packets. In this article, we will explore how to send deauthentication packets using Kali Linux, one of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":188,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wi-fi"],"_links":{"self":[{"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":3,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/posts\/104\/revisions\/189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/media\/188"}],"wp:attachment":[{"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.802punkt11.de\/index.php\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}