$ rfkill list all 0: phy0: Wireless LAN Soft blocked: no Hard blocked: yes
鎖定無線設備
$ rfkill block 0 $ rfkill list 0: phy0: Wireless LAN Soft blocked: yes Hard blocked: yes
解鎖無線設備
$ rfkill unblock all $ rfkill list all 0: phy0: Wireless LAN Soft blocked: no Hard blocked: yes
$ sudo iwlist wlan1 scanning |more wlan1 Scan completed : Cell 01 - Address: 04:A1:51:99:0A:25 Channel:1 Frequency:2.412 GHz (Channel 1) Quality=43/70 Signal level=-67 dBm Encryption key:on ESSID:"szgw-p5" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=0000000904486387 Extra: Last beacon: 1068ms ago IE: Unknown: 0007737A67772D7035 IE: Unknown: 010882848B960C121824 IE: Unknown: 030101 IE: Unknown: 0706434E20010D14 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: 2A0100 IE: Unknown: 32043048606C IE: Unknown: DD180050F20201018D0003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C33CE111BFFFF000000000000000000000000000000000000000000 IE: Unknown: 2D1ACE111BFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C34010D0A00000000000000000000000000000000000000 IE: Unknown: 3D16010D0A00000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD0900037F01010000FF7F IE: Unknown: DD0A00037F04010000004000
搜索SSID
$ sudo iwlist wlan1 scanning | grep ESSID ESSID:"product" ESSID:"wifi123456" ESSID:"ChinaNet-zNNs" ESSID:"ChinaNet-dqar" ESSID:"360WiFi-SEM" ESSID:"360\xE5\x85\x8D\xE8\xB4\xB9WiFi-A5" ESSID:"\xE5\x8F\x96\xE4\xB8\xAA\xE4\xBB\x80\xE4\xB9\x88\xE5\x90\x8D\xE5\xAD\x97\xE5\x91\xA2\xEF\xBC\x9F" ESSID:"" ESSID:""
$ sudo iwconfig eth1 essid <ESSID> key <PASSWORD>
$ cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
例 13.2. 命令行建立WiFi連結步驟
$ sudo rfkill unblock all $ sudo ifconfig wlan1 up $ sudo iwlist wlan1 scanning | grep ESSID $ sudo iwconfig wlan1 essid Netkiller key 66535215