Note: Kali Linux system WIFI module can sometimes be due to environmental weather resulting in WIFI module does not recognize the problem and connected, because the router blacklist and reboot times or a misconfigured property changes caused by unstable network connections reason.
The first:
Change the network card configuration file:
Interfaces.d modify the configuration file:
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wireless.conf
Changing the DNS properties file:
Change the automatic processing blacklist file attributes:
Restart network services:
NetworkMannager.conf modify the configuration file:
managed=false | true
Controls whether interfaces listed in the 'interfaces' file are
managed by NetworkManager. If set to true, then interfaces
listed in NetworkManager are managed by
NetworkManager.
If set to false, then any interface listed in NetworkManager will be ignored by NetworkManager. Remember that
NetworkManager controls the default route, so because the inter‐
face is ignored, NetworkManager may assign the default route to
some other interface. When the option is missing, false value
is taken as default
注:重启结果失败!!!
第二种:
查看无线网卡:
root@kali:~# iwconfig
root@kali:~# ifconfig
注:显示本机地址,无线网卡开启失败!
重启无线网卡:
root@kali:~# ifconfig wlan0 up
搜索SSID及ESSID信号:
root@kali:~#iw dev wlan0 scan | grep SSID
root@kali:~# iwlist scanning | grep ESSID
连接无线网络ESSID:
root@kali:~# iwconfig wlan0 essid "TP-LINK_F74A"
root@kali:~# iwconfig wlan0 key "123456"
root@kali:~# iwconfig wlan0 ap auto
root@kali:~# iwconfig wlan0 192.168.01.104
root@kali:~# reboot
注:重启失效,无法开启WIFI模块!
第三种:
移出ideapad无线模块:
root@kali:~# sudo modprobe -r ideapad_laptop
杀掉所有进程:
root@kali:~# rfkill list all
如下提示:
2:phy0: Wireless LANSoft blocked: noHard blocked:no3:hci0: BluetoothSoft blocked: yesHard blocked: no
注:即WIFI模块工作正常
赋予属性文件权限:
root@kali:~# sudo chmod 777 /etc/rc.local
Add a profile:
root@kali:~# leafpad etc/rc.local
echo "123" |sudo modprobe -r ideapad_laptop
Note: When you execute sudo command to enter a password, the command must be run before the exit 0.
Restart:
root@kali:~# reboot
Fourth:
View routing address:
root @ times: ~ # ruote -n
Disabling network-manager:
root@kali:~# service network-manager stop
Configuring network interface cards:
root@kali:~# leafpad /etc/network/interfaces
Modify the configuration file:
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wireless.conf
ESSID generated keys:
root@kali:~# wpa_passphrase essid
/Etc/wpa_supplicant.con modify the configuration file:
root@kali:~# cat /etc/wpa_supplicant.conf
Modify the configuration file:
root @ times: ~ # Leafpad /etc/wpa_supplicant/wireless.conf
root@kali:~# service networking restart
Fifth:
Note: reinstall the system, restore WIFI module!
Reproduced in: https: //www.jianshu.com/p/067542a3da64