# iw dev
phy#1
Interface wlan0
ifindex 4
type managed
# ip link show wlan0
4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 00:f1:40:40:06:26 brd ff:ff:ff:ff:ff:ff
# ifconfig wlan0 down
# ip link show wlan0
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 00:f1:40:40:06:26 brd ff:ff:ff:ff:ff:ff
# ip link set wlan0 up
# ip link show wlan0
4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 00:f1:40:40:06:26 brd ff:ff:ff:ff:ff:ff
# iw wlan0 link
Not connected.
iw wlan0 scan
# iw wlan0 scan
BSS c8:e7:d8:00:18:d0 (on wlan0)
TSF: 161672233865 usec (1d, 20:54:32)
freq: 2437
beacon interval: 100
capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
signal: -19.00 dBm
last seen: 2840 ms ago
SSID: rztec
Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
DS Parameter set: channel 6
Country: US Environment: Indoor/Outdoor
Channels [1 - 11] @ 30 dBm
ERP: <no flags>
Extended supported rates: 24.0 36.0 48.0 54.0
RSN: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
* Capabilities: 16-PTKSA-RC (0x000c)
WPA: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
# wpa_passphrase rztec >> /etc/wpa_supplicant.conf
rztec.12 #输出 WIFI 密码
root@kali:~# cat /etc/wpa_supplicant.conf
# reading passphrase from stdin
network={
ssid="rztec"
#psk="rztec.12"
psk=ba4e9c8c83e0c1531accf56d71bd8f59409da7653161fb871a85c252c88bdf3d
}
# iw wlan0 link
Connected to c8:e7:d8:00:18:d0 (on wlan0)
SSID: rztec
freq: 2437
RX: 5962 bytes (57 packets)
TX: 1159 bytes (29 packets)
signal: -19 dBm
tx bitrate: 58.5 MBit/s MCS 6
bss flags: short-preamble short-slot-time
dtim period: 0
beacon int: 100
# ip addr show wlan0
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:f1:40:40:06:26 brd ff:ff:ff:ff:ff:ff
inet 192.168.7.220/24 brd 192.168.7.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fd3e:92ad:2e16:0:2f1:40ff:fe40:626/64 scope global dynamic
valid_lft 6963sec preferred_lft 1563sec
inet6 fe80::2f1:40ff:fe40:626/64 scope link
valid_lft forever preferred_lft forever
# ping www.google.com
PING www.google.com (173.194.127.145) 56(84) bytes of data.
64 bytes from hkg03s13-in-f17.1e100.net (173.194.127.145): icmp_req=1 ttl=54 time=75.2 ms
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |