赞
踩
在实体机上安装好kali后启动会自动加载内置的无线网卡可以正常上网,我想用双网卡来上网和监听,但当我插上另一个usb网卡时状态栏wifi连接就断了,提示wifi已通过硬件开关禁用,双网卡型号分别是AC 3168NGW和RT3070L
kali@kali:~/Desktop$ sudo iwconfig lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=22 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on wlan1 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=off Retry short long limit:2 RTS thr:off Fragment thr:off Encryption key:off Power Management:off kali@kali:~/Desktop$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 3: phy2: Wireless LAN Soft blocked: no Hard blocked: yes
可以看到新加的wlan1的Hard blocked是开的而且还导致wlan0无法使用。。
kali@kali:~/Desktop$ sudo rfkill unblock 3
kali@kali:~/Desktop$ sudo rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: phy2: Wireless LAN
Soft blocked: no
Hard blocked: yes
使用rfkill unblock命令解锁不了
去网上找了一些办法添加asus_nb_wmi.conf重启也没用,后来在我插拔usb网卡时发现刚插上去几秒的时候两个网卡竟然可以同时显示不过马上就没了,我觉得可能跟network-manager有关系,因为前几秒是network-manager加载新网卡的时候。。
首先service network-manager stop然后重新插上usb网卡
kali@kali:~/Desktop$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 7: phy6: Wireless LAN Soft blocked: no Hard blocked: yes kali@kali:~/Desktop$ sudo service network-manager stop kali@kali:~/Desktop$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 8: phy7: Wireless LAN Soft blocked: no Hard blocked: no
再启动network-manager
kali@kali:~/Desktop$ sudo service network-manager start
kali@kali:~/Desktop$ sudo rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
8: phy7: Wireless LAN
Soft blocked: no
Hard blocked: yes
。。。又被禁用了,问题就出在这里了,每次只要跟network-manager有关系的命令就总会把Hard blocked打开(比如重启服务,连接wifi,启用监听等操作)。
既然network-manager加载有问题会冲突那就不要加载了,,,
kali@kali:~/Desktop$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 4: phy3: Wireless LAN Soft blocked: no Hard blocked: yes kali@kali:~/Desktop$ sudo rfkill block 1 //先把本机网卡软阻塞打开 kali@kali:~/Desktop$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: yes Hard blocked: no 4: phy3: Wireless LAN Soft blocked: no Hard blocked: yes kali@kali:~/Desktop$ sudo rfkill list //然后插拔usb网卡 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: yes Hard blocked: no 5: phy4: Wireless LAN Soft blocked: no Hard blocked: no kali@kali:~/Desktop$ sudo airmon-ng start wlan1 //启动wlan1的监听模式 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 1460 wpa_supplicant 2025 NetworkManager PHY Interface Driver Chipset phy0 wlan0 iwlwifi Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10) phy4 wlan1 rt2800usb Ralink Technology, Corp. RT2870/RT3070 (mac80211 monitor mode vif enabled for [phy4]wlan1 on [phy4]wlan1mon) (mac80211 station mode vif disabled for [phy4]wlan1) kali@kali:~/Desktop$ sudo rfkill unblock 1 //关闭本机网卡软阻塞,这时候状态栏的wifi就可以正常连接了
舒服了。。最后再说下目前我只能用其中一个连接网络,不知道有没有别的办法让两个网卡都可以联网。。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。