Q3-Send-deauth

  • In this section, you are going to learn

  • How to send de-authentication packet once every 30 seconds

#

Version

Ubuntu

Ubuntu 22.04 64 bit

Linux Kernel

6.9.2

Supplicant

wpa_supplicant 2.10

Hostapd

hostapd 2.10

  • Send De-Authentication packet once every 30 seconds

  • Call flow for send de-authentication packet once every 30 seconds

ieee80211_add_iface ()
   ieee80211_if_add ()
      ieee80211_setup_sdata ()
	 ieee80211_iface_work ()
	     ieee80211_iface_process_skb ()
		 ieee80211_sta_rx_queued_mgmt ()	
	 	     ieee80211_rx_mgmt_assoc_resp ()
			drv_deauth_detection_work ()
  • Download the below patch file

send_deauth_pkt_every_30sec.patch

test:~$ pwd
/home/test/
test:~$ cd linux-6.9.2/
  • Note : Your present working directory should be linux-6.9.2

test:~$ pwd
/home/test/linux-6.9.2/
  • Remove mac80211 module

test:~$ sudo systemctl stop NetworkManager.service

test:~$ sudo rmmod mac80211
  • Run the below command to apply patch

test:~$ sudo patch -p1 < send_deauth_pkt_every_30sec.patch
patching file net/mac80211/cfg.c
patching file net/mac80211/ieee80211_i.h
patching file net/mac80211/link.c
patching file net/mac80211/mac80211.mod.c
patching file net/mac80211/mlme.c
patching file net/mac80211/util.c
  • Compile mac80211 folder

test:~$ sudo make -C . M=net/mac80211/
  • Insert mac80211 module

test:~$ sudo insmod ./net/mac80211/mac80211.ko
  • Download file to check wireshark output

send_deauth_pkt_every_30sec.pcapng

  • Check for de-authentication packet

  • Apply display filter

  • wlan.addr == 02:00:00:00:01:00 && wlan.fc.type_subtype == 12

Diagram
  • Observe the de-authentication packets with 30 sec time interval

Diagram