1. 安装 aircrack-ng
- 使用相应包管理工具安装,例如 Debian/Ubuntu 使用 apt 安装:
sudo apt install aircrack-ng
2. 查看可用的无线网卡
使用命令:airmon-ng
netcon@conwlt:~/workspace$ sudo airmon-ng
PHY Interface Driver Chipset
phy0 wlp8s0 iwlwifi Intel Corporation Centrino Wireless-N 2230 (rev c4)
根据以上输出,可用的无线网卡为 wlp8s0
。
3. 指定无线网卡开启监听模式。
使用命令:airmon-ng start <网卡名称>
netcon@conwlt:~/workspace$ sudo airmon-ng start wlp8s0
PHY Interface Driver Chipset
phy0 wlp8s0 iwlwifi Intel Corporation Centrino Wireless-N 2230 (rev c4)
(mac80211 monitor mode vif enabled for [phy0]wlp8s0 on [phy0]wlp8s0mon)
(mac80211 station mode vif disabled for [phy0]wlp8s0)
根据以上输出,已经把 wlp8s0 这块无线网卡开启监听模式,开启后名字是 wlp8s0mon
。