use*_*456 4 wifi wifi-hotspot iwlwifi wpa-cli iw
是否可以将 IE 字段附加到我的 WiFi 热点,以便它出现在iwlist其他机器扫描它的输出中?
例子:
我选择1234567891011121314151617181920作为我的 wifi 热点的附加字段(MAC 地址11:22:33:44:55:66)
用户使用命令扫描我的 wifi 热点iwlist wlan0 scan,应该给出输出:
wlan0 Scan completed :
Cell 01 - Address: 11:22:33:44:55:66
[...]
IE: Unknown 1234567891011121314151617181920
[...]
Run Code Online (Sandbox Code Playgroud)IE 代表信息元素。它们作为信标帧的一部分传输,并携带各种信息,例如 SSID、支持的速率等。
\n\nInformation element Element ID Length (in octets)\n---------------------------------------------------------------------------\nSSID (see 7.3.2.1) 0 2 to 34\nSupported rates (see 7.3.2.2) 1 3 to 10\nFH Parameter Set (see 7.3.2.3) 2 7\nDS Parameter Set (see 7.3.2.4) 3 3\nCF Parameter Set (see 7.3.2.5) 4 8\nTIM (see 7.3.2.6) 5 6 to 256\nIBSS Parameter Set (see 7.3.2.7) 6 4\nCountry (see 7.3.2.9) 7 8 to 256\nHopping Pattern Parameters (see 7.3.2.10) 8 4\nHopping Pattern Table (see 7.3.2.11) 9 6 to 256\nRequest (see 7.3.2.12) 10 2 to 256\nBSS Load (see 7.3.2.28) 11 7\nEDCA Parameter Set (see 7.3.2.29) 12 20\nTSPEC (see 7.3.2.30) 13 57\nTCLAS (see 7.3.2.31) 14 2 to 257\nSchedule (see 7.3.2.34) 15 16\nChallenge text (see 7.3.2.8) 16 3 to 255\nReserved 17\xe2\x80\x9331\nPower Constraint (see 7.3.2.15) 32 3\nPower Capability (see 7.3.2.16) 33 4\nTPC Request (see 7.3.2.17) 34 2\nTPC Report (see 7.3.2.18) 35 4\nSupported Channels (see 7.3.2.19) 36 4 to 256\nChannel Switch Announcement (see 7.3.2.20) 37 5\nMeasurement Request (see 7.3.2.21) 38 5 to 16\nMeasurement Report (see 7.3.2.22) 39 5 to 24\nQuiet (see 7.3.2.23) 40 8\nIBSS DFS (see 7.3.2.24) 41 10 to 255\nERP Information (see 7.3.2.13) 42 3\nTS Delay (see 7.3.2.32) 43 6\nTCLAS Processing (see 7.3.2.33) 44 3\nReserved 45\nQoS Capability (see 7.3.2.35) 46 3\nReserved 47\nRSN (see 7.3.2.25) 48 36 to 256\nReserved 49\nExtended Supported Rates (see 7.3.2.14) 50 3 to 257\nReserved 51\xe2\x80\x93126\nExtended Capabilities 127 2 to 257\nReserved 128\xe2\x80\x93220\nVendor Specific (see 7.3.2.26) 221 3 to 257\nReserved 222\xe2\x80\x93255\nRun Code Online (Sandbox Code Playgroud)\n\n其中一些信息元素是特定于供应商的,这意味着它们可能会被其他供应商忽略。保留意味着它将来可能具有标准含义,实际上其中一些已经具有。(我正在查看旧标准。)您可以在hostapd.conf中配置它们
\n\n# Additional vendor specific elements for Beacon and Probe Response frames\n# This parameter can be used to add additional vendor specific element(s) into\n# the end of the Beacon and Probe Response frames. The format for these\n# element(s) is a hexdump of the raw information elements (id+len+payload for\n# one or more elements)\nvendor_elements=dd0411223301\nRun Code Online (Sandbox Code Playgroud)\n\n十六进制数据的结构如下:
\n\n\n\nElement ID 应为 dd,OUI 是IEEE分配的 3 字节数字,但好消息是 iwlist 将它们显示为未知,除了 WPA (0050f2) 和 WPA2 (000fac)。
\n