This is an old revision of the document!
Experimente:
Calculatoarele AP:
nmcli radio wifi off rfkill unblock wifi; rfkill unblock all killall wpa_supplicant root@pr706-pc:/home/student# hostapd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf Using interface wlp2s0 with hwaddr ac:fd:ce:22:77:9d and ssid "ISRMLABORATOR" wlp2s0: interface state UNINITIALIZED->ENABLED wlp2s0: AP-ENABLED
Calculatoarele STA:
killall wpa_supplicant iw dev wlp2s0 scan | grep -i <yourSSID> -A 50 -B 20 iw dev wlp2s0 connect <yourSSID> iwconfig #to check association
Daca nu se da aia de mai sus apare deauthentication aiurea
Primul exemplu de hostapd conf file: https://gist.github.com/b12mihai/c61374219ffc2b2647c6afd7a99f21f1
Apoi hai sa punem in modul 802.11n in hostapd:
# 802.11n wmm_enabled=1 ieee80211n=1 ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-40][DSSS_CCK-40][DSSS_CCK-40]
Apoi hai sa punem autentificare cu wpa2
# WPA auth_algs=1 wpa=2 wpa_passphrase=XXXXXXXXXXXXXXX wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
# iw phy phy0 interface add mon0 type monitor flags control otherbss
# ifconfig mon0 up
# tcpdump -s0 -ni mon0
# tcpdump -s0 -ni mon0 -w ./m.pcap
# wireshark ./m.pcap
examinați pachetele capturate și recunoașteți pachetele/protocoalele/câmpurile discutate la curs și în articole.
Linkuri:
https://vincent.bernat.ch/en/blog/2014-intel-7260-access-point https://sandilands.info/sgordon/capturing-wifi-in-monitor-mode-with-iw https://wireless.wiki.kernel.org/en/users/documentation/hostapd