“iwlist wlan0 扫描”上的 n 模式

“iwlist wlan0 扫描”上的 n 模式

我知道如何确定扫描的 AP 是否使用 B 或 G 模式,但如何知道(使用“iwlist wlan0 scan”)它使用 N 协议?如果我使用“iw dev wlan0 scan”并查看单元是否具有“HT 功能”块。

好的。 “iw dev wlan scan”部分有效,但我无法获取有关信号质量、通道模式(是主模式还是临时模式)和安全选项的数据。我需要在一个命令中找到所有安全算法选项。

还有其他选择吗?比如第三方命令?有源代码黑客建议吗?

答案1

没有其他工具iw可以为您提供更多信息。iw已经提供了网络驱动程序提供的所有信息。如果某些信息丢失,请更新您的网络驱动程序(这意味着您的内核)和/或iw.

最新iw输出的示例:

BSS 42:42:42:42:42:42 (on w0)
    TSF: 4922636642679 usec (56d, 23:23:56)
    freq: 2437
    beacon interval: 102
    capability: ESS ShortPreamble ShortSlotTime (0x0421)
    signal: -80.00 dBm
    last seen: 600 ms ago
    Information elements from Probe Response frame:
    SSID: bestSSIDevar
    Supported rates: 1.0* 2.0* 5.5* 6.0 9.0 11.0* 12.0 18.0 
    DS Parameter set: channel 6
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    ERP: <no flags>
    Extended supported rates: 24.0 36.0 48.0 54.0 

要获得信号质量,只需查看线路即可signal:。 BSS 的类型在该capability:行中给出: ESS 表示这是较大网络的一部分(因此是 AP 模式),IBSS 表示网络是独立的,因此是 ad-hoc 模式。

安全选项是一种复杂的野兽,由多个信息元素给出。如果您Privacy在 中看到capabilities,则网络受到某种保护。如果您看到一个RSN信息元素,那么...网络受到鲁棒安全网络协议系列的保护,更多的非正式名称为 WPA2。如果您看到一个WPA信息元素,那么它就是 WPA1。如果您没有看到RSNWPA信息元素,但有Privacy,那么它就是旧的 WEP。

以下是同时支持 WPA 和 RSN、CCMP 和 TKIP(但仅适用于组的 TKIP)并使用 IEEE 802.1X(不是 PSK)的网络截图:

BSS 46:46:46:46:46:46 (on w0)
    TSF: 4923527793080 usec (56d, 23:38:47)
    freq: 2412
    beacon interval: 102
    capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
    signal: -59.00 dBm
    last seen: 872 ms ago
    Information elements from Probe Response frame:
    SSID: bestest
    Supported rates: 1.0* 2.0* 5.5* 6.0 9.0 11.0* 12.0 18.0 
    DS Parameter set: channel 1
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    ERP: <no flags>
    RSN:     * Version: 1
             * Group cipher: TKIP
             * Pairwise ciphers: TKIP CCMP
             * Authentication suites: IEEE 802.1X
             * Capabilities: 4-PTKSA-RC 4-GTKSA-RC (0x0028)
    Extended supported rates: 24.0 36.0 48.0 54.0 
    WPA:     * Version: 1
             * Group cipher: TKIP
             * Pairwise ciphers: TKIP
             * Authentication suites: IEEE 802.1X
             * Capabilities: (0x0000)

相关内容