This is an old revision of the document!


Laboratorul 11

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

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
Modul monitor
 # iw phy phy0 interface add mon0 type monitor flags control otherbss 
 # ifconfig mon0 up 
 # tcpdump -s0 -ni mon0 
  1. s0 capturează toată lungimea pachetelor
  2. n nu rezolvă DNS
  3. i indică interfața
 # tcpdump -s0 -ni mon0 -w ./m.pcap 
 # wireshark ./m.pcap 

examinați pachetele capturate și recunoașteți câmpurile

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

isrm/laboratoare/11.1558024203.txt.gz · Last modified: 2019/05/16 19:30 by dragos.niculescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0