用bash获得wifi密码
在mac下,利用bash命令获得 password
wifi密码获取
mywifi
30:fc:68:67:30:a0 -37 13,-1 Y CN WPA(PSK/AES/AES) WPA2(PSK/AES/AES)
# 查询 ssid 列表
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I --getinfo -s
# 获取密码
sudo security find-generic-password -D "AirPort network password" -a YOUR_WIFI_SSID -g | grep password:
agrCtlRSSI: -41
agrExtRSSI: 0
agrCtlNoise: -92
agrExtNoise: 0
state: running
op mode: station
lastTxRate: 130
maxRate: 217
lastAssocStatus: 0
802.11 auth: open
link auth: wpa2-psk
BSSID: 30:fc:68:67:30:a0
SSID: ziroom201
MCS: 15
channel: 13
SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
yangxufeng 80:8f:1d:54:e9:57 -86 157 Y CN WPA(PSK/AES/AES) WPA2(PSK/AES/AES)
ASUS_5G 1c:87:2c:4b:6a:5c -86 153 Y -- WPA2(PSK/AES/AES)
GNB_5G 50:eb:f6:06:c3:44 -82 149 Y CN WPA2(PSK/AES/AES)
HHT_200_1_10_27_ ac:cf:23:b0:58:0c -41 11 Y -- WPA2(PSK/AES/AES)
gnb 50:eb:f6:06:c3:40 -73 9 Y CN WPA2(PSK/AES/AES)
ChinaNet-euVf f4:57:3e:03:36:aa -51 9 Y -- WPA(PSK/AES/AES) WPA2(PSK/AES/AES)
Tenda_3DECF0 c8:3a:35:3d:ec:f0 -39 6 Y -- WPA(PSK/AES/AES) WPA2(PSK/AES/AES)
CMCC-KARg 74:3c:18:a4:57:20 -68 1 Y CN WPA(PSK/TKIP,AES/TKIP) WPA2(PSK/TKIP,AES/TKIP)
mywifi 30:fc:68:67:30:a0 -37 13,-1 Y CN WPA(PSK/AES/AES) WPA2(PSK/AES/AES)
参考