當用戶實施無線網絡滲透時,設置無線網卡爲監聽模式是必不可少的操做。大學霸IT達人信息安全技術大講堂一般狀況下,用戶會遇到各類問題,如網卡不支持,網絡接口找不到。對於網卡接口找不到問題,是由於啓動監聽模式後,接口名再也不是原來的wlanX,而是wlanXmon。若是網卡不支持,則多數是驅動安裝失敗。在設置監聽模式以前,用戶能夠先使用airmon-ng查看下無線網卡設備信息,已肯定其能夠正常工做。下面將介紹設置無線網卡爲監聽模式:安全
(1)查看本機的USB設備列表。執行命令以下所示:網絡
C:\root> lsusb less
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapterspa
從輸出信息能夠看到,成功列出了接入的USB無線網卡。接口
(2)查看網絡接口信息。以下所示:ip
C:\root> ifconfig ci
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500it
ether de:31:49:2a:3b:79 txqueuelen 1000 (Ethernet)io
RX packets 0 bytes 0 (0.0 B)sso
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
從輸出信息能夠看到,有wlan0接口信息。由此能夠說明,無線網卡已激活。
(3)查看無線網卡信息。以下所示:
C:\root> airmon-ng
PHY Interface Driver Chipset
phy2 wlan0 rt2800usb Ralink Technology, Corp. RT5370
從輸出信息能夠看到,成功識別出無線網卡的接口、驅動及芯片。由此能夠說明,該無線網卡能夠正常工做。
(4)查看無線網卡工做模式。以下所示:
C:\root> iwconfig
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short long limit:2 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
eth0 no wireless extensions.
從輸出的信息能夠看到,當前無線網卡工做模式爲Managed(管理模式)。
(5)設置無線網卡爲監聽模式。以下所示:
C:\root> airmon-ng start wlan0
Found 2 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode
PID Name
771 NetworkManager
2609 wpa_supplicant
PHY Interface Driver Chipset
phy2 wlan0 rt2800usb Ralink Technology, Corp. RT5370
(mac80211 monitor mode vif enabled for [phy2]wlan0 on [phy2]wlan0mon)
(mac80211 station mode vif disabled for [phy2]wlan0)
從輸出的信息能夠看到,成功啓動無線網卡監聽模式。其中,監聽模式接口爲wlan0mon。
(6)查看無線網卡工做模式。以下所示:
C:\root> iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0mon IEEE 802.11 Mode:Monitor Frequency:2.457 GHz Tx-Power=20 dBm
Retry short long limit:2 RTS thr:off Fragment thr:off
Power Management:off
從輸出的信息能夠看到,無線網卡接口模式爲Monitor(監聽模式)。