wifi命令

wifi命令

  • wpa_cli:

 wpa_cli -p /var/run/wlan0_supplicant -iwlan0 status 
 wpa_cli -p /var/run/wlan0_supplicant -iwlan0 scan
 wpa_cli -p /var/run/wlan0_supplicant -iwlan0  scan_result

wpa_cli -p /var/run/wlan0_supplicant -iwlan0 status


root@jabsco:/ipc/etc# wpa_cli -p /var/run/wlan0_supplicant -iwlan0 status 
bssid=34:96:72:0a:3e:8c
ssid=csb88888______
id=0
passphrase=lin123456!
psk=4dca50c76485b3ef7e12c3ca97be792a59e9c5cf37de99fb79458ac7a91f34
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.180.162
address=ec:3d:fd:dd:10:a2
signal_level=100

wpa_cli -p /var/run/wlan0_supplicant -iwlan0 scan #先scan一下然后
wpa_cli -p /var/run/wlan0_supplicant -iwlan0 scan_result #然后获取结果


root@jabsco:/ipc/etc# wpa_cli -p /var/run/wlan0_supplicant -iwlan0 scan 
OK

root@jabsco:/ipc/etc# wpa_cli -p /var/run/wlan0_supplicant -iwlan0 scan_result   #查询结果
bssid / frequency / signal level / flags / ssid
34:96:72:0a:3e:8c       2447    100     [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS]      csb88888______
28:f3:66:28:2f:e2       2412    100     [WPA2-PSK-TKIP+CCMP][ESS]       00666fab8bf7
4c:0f:c7:eb:d4:68       2484    100     [WPA2-PSK-TKIP+CCMP][ESS]       12345678
08:ea:40:f7:b7:ce       2462    100     [WPA2-PSK-TKIP+CCMP][ESS]       008803001BDF
08:ea:40:f4:4c:62       2442    96      [WPA2-PSK-TKIP+CCMP][ESS]       000000001

root@jabsco:~# cat /proc/net/rtl8188eu/wlan0/survey_info 
index  bssid               ch  RSSI  SdBm  Noise    age                              flag                              ssid
    1  f4:83:cd:d3:f3:d6    6  -44   -45     0    8551660                  [WPA][WPA2][ESS]                           zhangsq
    2  28:f3:66:28:2f:e2    1  -52   -47     0    8551930                  [WPA2][WEP][ESS]                      00666fab8bf7
    3  d8:32:14:cc:ed:28    1  -36   -45     0    8552160                  [WPA][WPA2][ESS]                热点枪机专用
    4  e0:b9:4d:fe:21:dc    3  -46   -46     0    8551790                  [WPA2][WEP][ESS]                   00667000b404eru
    5  4e:0f:c7:eb:d4:1c    8  -70   -63     0    8552150                  [WPA2][WEP][ESS]                      HSIPC-EBD41C
    6  4e:0f:c7:d0:75:39    1  -55   -51     0    8551940                  [WPA2][WEP][ESS]                      HSIPC-D07539
    7  f4:83:cd:d3:d8:96    1  -54   -49     0    8552040                  [WPA][WPA2][ESS]                       TP-LINK_wbz
    8  34:96:72:ce:83:8b    1  -54   -49     0    8552060                  [WPA][WPA2][ESS]                            TP-102

......省略

posted on 2017-11-02 14:53  游荡的鱼  阅读(870)  评论(0编辑  收藏  举报

导航