- Everything about wifi:
-
- Documentation.
-
- WiFi client with raw socket in C.
-
- Virtual 802.11 kernel module to emulate wireless (WiFi) network.
-
-
Load module:
sudo modprobe mac80211_hwsim radios=2 dyndbg=+p
- Enable monitor mode:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode Monitor
sudo ifconfig wlan0 up
- (Optional) monitor with tcpdump:
sudo tcpdump -i wlan0
- Start a access point with
hostapd
(hostapd-guide):
sudo hostapd -i wlan0 hostapd.conf -dd
- Test connect access point with (wpa_supplicant):
sudo wpa_supplicant -c wpa_supplicant.conf -i wlan1
- Monitor all wifi network:
sudo ifconfig hwsim0 up
sudo tcpdump -i hwsim0 -v
sudo insmod vwlan.ko