Q4-Send-probe-request

  • In this section, you are going to learn

  • How to send a probe-request 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 a probe-request every 30 seconds

  • Call flow for send a probe-request every 30 seconds

ieee80211_scan
   ieee80211_request_scan
      drv_probereq_work
  • Download the below patch file

send_probe_req_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_probe_req_every_30sec.patch
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/scan.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_probe_req_every_30sec.pcapng

  • Check for probe-request packet

  • Apply display filter

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

Diagram
  • Observe the probe-request packets with 30 sec time interval

Diagram