как установить драйвера на kali linux wifi
Kali linux настройка wifi адаптера
Привет! Установили себе чистую систему, но даже так Kali Linux не видит Wi-Fi адаптер? Обучение тестированию откладывается в дальний ящик, а зарождающийся талант начинающего безопасника попал на свалку? Ну ничего. Тоже приходилось сталкиваться с подобными проблемами на Кали. Вообще Wi-Fi и Linux старая больная тема, но именно на Kali она проявилась во всей красе от потребностей пользователей. Разберемся в этом!
Нашли ошибку? Есть своя история по этому вопросу? Оставьте свое мнение в комментариях к этой статье! Именно ваше слово может спасти кому-то уйму времени!
Для виртуальной машины
Актуально и для Virtual Box, и для VMWare Workstation.
Начнем с самого частого. Сам ставил себе виртуалку, а там главная проблема – виртуальная машина не видит встроенный модули Wi-Fi, хоть об стену разбейся. Многие годы бытует мнение, что и не увидит. А т.к. уровень виртуальной машины выше, чем установленной внутри нее Kali, то и сама Kali не увидит встроенного адаптера.
Решение простое – берется внешний USB адаптер, который успешно подключается к виртуалке.
Т.е. если вы хотите проводить тестирование своих Wi-Fi сетей через виртуальную машину – обязательно приобретите внешний модуль, в противном случае не тратьте свое время. А вот о совместимости адаптеров и возможных исправлениях – читайте ниже (чтобы не взять себе мертвый внешний адаптер Wi-Fi).
Из дополнения, возможно потребуется активировать сам адаптер в виртуальной среде. На примере Вари:
Для основы – драйверы и совместимость
На основной системе может возникнуть уже две проблемы – не видит USB адаптер и не видит встроенный адаптер. Основная причина здесь, по моему опыту – проблема с драйвером и совместимостью. Именно в этом случае не работает Wi-Fi на Kali Linux. Но обо всем по порядку.
Перед началом нашей операции рекомендую обновиться:
apt-get clean && apt-get update && apt-get upgrade
После этого предлагаю посмотреть список установленных устройств:
lsusb – для usb устройств
lspci – для встроенных модулей
В открывшемся большом списке ищем свою модель Wi-Fi модуля:
Т.е. если модуль не включается или просто не видит сети, а в списке этих устройств он есть – значит проблема точно в драйвере. Это и хорошо, и плохо. Обычно драйвер не включается в репозиторий по причине не полной совместимости. Например, отсутствия режима монитора как в случае с этим Броадкомом. Но для обыденных офисных задач нам ведь его можно использовать?
Далее появляются два пути:
Чтобы данное руководство совсем не было водяным, отмечу, что некоторым просто помогает установка WICD:
apt-get install wicd
service network-manager stop
update-rc.d network-manager disable
update-rc.d wicd enable
service wicd start
И вот еще видеоверсия установки конкретного драйвера, хотя в начале тоже ругалось, что адаптеры Wi-Fi не найдены:
После перезапуска системы мозги приходят к единому согласию. За сим заканчиваю. Свои истории стучания в бубен под бодрые завывания расскажите в комментариях ниже – пригодится и вам, и другим. До скорых встреч на нашем портале!
Параметры машины таковы:
Симптомы:
Любые операции начинаем с команды:
Для начала взглянем на список установленного оборудования для приёма и трансляции сигналов. Он не богат:
Теперь взглянем, что установлено на борту Lenovo B590 и работает ли (да работает, конечно; из-под второй, установленной на том же Lenovo B590 windows 7, wifi работает отлично). Введём команду просмотра всего оборудования, кто не помнит – запоминайте – пригодится:
lspci
А вот и установленный на Lenovo B590 этой версии модуль, из-за которого Кали Линукс не видит wifi:
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n
Что ж, ситуация знакома: модуль на месте, драйвера – нет. Обратившись к страничке поддержки драйверов (а тогда она выглядела именно так) этого семейства для Линукс, и присмотревшись к разноцветной табличке списка поддерживаемых устройств, обнаружил, что устройство в списке не без проблем:
Ну не сидеть же нам без wifi, и не покупать дешёвенький модуль на USB (не вздумайте купить без оглядки другой модуль для своего ноута – 99% вероятности, что конфигурация ноутбука этого вам просто не позволит сделать). А альфа-карты нам нужны для другого. Поехали в Debian за справкой и посмотрим, что есть для нас новенького. Оказывается, есть и давно. Тогда установим последние версии пакетов linux-image, linux-headers и broadcom-sta-dkms. Откроем терминал и пропишем знакомой уже командой (некоторые флаги могли устареть). Но предварительно добавим к Кали ещё один репозиторий:
Сюда пропишем новый адрес с новой строки:
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
А теперь установка:
На комментарии терминала на рисунке не смотрите, у меня всё уже стоит. Следите за синтаксисом команды (она не вся влезла в фото – поздно заметил). Поддержка динамического ядра модуля DKMS установит в Кали новое устройство с названием wl. Теперь выгрузим конфликтующие модули (если таковые имеются):
И, наконец, загружаем новообразованный модуль:
Если ошибок терминал не вернул, перезагружать не нужно. Проверим, что показывает NetworkManager Кали:
Менеджер заметил модуль wifi в нашем Lenovo B590. Проверим, есть ли он в списке устройств через терминал:
iwconfig
Привет… Новообразованный wlan6 режим мониторинга поддерживать не будет, однако для комфортной “официальной” работы его предостаточно. Если на каком-то из этапов терминал заругался, не примените перезагрузить Кали с командой на полное обновление:
GreenZo
»
Но при сборке выбивает ошибку
RX_ENC_FLAG_SHORTPRE
/root/mt7601u/mac.c:408:20: note: each undeclared identifier is reported only once for each function it appears in
/root/mt7601u/mac.c:417:19: error: ‘RX_FLAG_HT_GF’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT_GF;
^
RX_ENC_FLAG_HT_GF
/root/mt7601u/mac.c:420:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT;
^
RX_FLAG_HT_GF
/root/mt7601u/mac.c:429:19: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORT_GI;
^
RX_FLAG_SHORTPRE
/root/mt7601u/mac.c:432:24: error: ‘RX_FLAG_STBC_SHIFT’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_STBC_SHIFT’?
status->flag |= 1 flag |= RX_FLAG_40MHZ;
^
RX_FLAG_HT
make[4]: *** [/usr/src/linux-headers-4.17.0-kali3-common/scripts/Makefile.build:318: /root/mt7601u/mac.o] Ошибка 1
make[3]: *** [/usr/src/linux-headers-4.17.0-kali3-common/Makefile:1585: _module_/root/mt7601u] Ошибка 2
make[2]: *** [Makefile:146: sub-make] Ошибка 2
make[1]: *** [Makefile:8: all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.17.0-kali3-amd64»
make: *** [Makefile:8: default] Ошибка 2
Я ещё очень слабо понимаю в теме Linux, но мне очень интересно и я хочу развиваться. Прошу помощи.
»
Но при сборке выбивает ошибку
RX_ENC_FLAG_SHORTPRE
/root/mt7601u/mac.c:408:20: note: each undeclared identifier is reported only once for each function it appears in
/root/mt7601u/mac.c:417:19: error: ‘RX_FLAG_HT_GF’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT_GF;
^
RX_ENC_FLAG_HT_GF
/root/mt7601u/mac.c:420:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT;
^
RX_FLAG_HT_GF
/root/mt7601u/mac.c:429:19: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORT_GI;
^
RX_FLAG_SHORTPRE
/root/mt7601u/mac.c:432:24: error: ‘RX_FLAG_STBC_SHIFT’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_STBC_SHIFT’?
status->flag |= 1 flag |= RX_FLAG_40MHZ;
^
RX_FLAG_HT
make[4]: *** [/usr/src/linux-headers-4.17.0-kali3-common/scripts/Makefile.build:318: /root/mt7601u/mac.o] Ошибка 1
make[3]: *** [/usr/src/linux-headers-4.17.0-kali3-common/Makefile:1585: _module_/root/mt7601u] Ошибка 2
make[2]: *** [Makefile:146: sub-make] Ошибка 2
make[1]: *** [Makefile:8: all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.17.0-kali3-amd64»
make: *** [Makefile:8: default] Ошибка 2
Я ещё очень слабо понимаю в теме Linux, но мне очень интересно и я хочу развиваться. Прошу помощи.
и выложите вывод сюда под спойлер.
UPD. Все таки нашел ваше ядро в логе. Думаю Вам стоит читать описание того, что ставите (мало ли). Там написано, что если ядро выше версии 4.2, то ничего ставить не надо, все уже из коробки.
Вот
на пропиетарный (от производителя).
А зачем Вы хотите установить его? Судя по информации из Вашей ссылки адаптер должен работать в системе без проблем.
[Fixed] No WiFi Adapter Found in Kali Linux
When we install Kali Linux on Desktop or Laptop we didn’t connect it with Wi-Fi.
Sometimes internal WiFi adapter not found in our Kali Linux system. In this detailed post we learn how we can install Wi-Fi in Kali Linux.
If we have Desktop computer then we should use the Wi-Fi adopters. This usually doesn’t need to install drive, if need then we should go the manufacturer’s website searching for drives in Linux. Have a Laptop then try following.
Then we open a Terminal window and update our Kali Linux by using apt update command:
It require the root password to continue. After updating we use git clone command to clone Broadcom Installer.
Usually most of the laptop works with Broadcom Wi-Fi drivers and our command will be following:
After cloning it we go to the folder using cd command:-
Then before run the automated bash script we give it permissions to run by using following command:
Then we run the bash script by applying following command:
Now it will show us some options. Here we choose (1) Install WiFi driver to automatically install and setup everything for us.
This will take some time depending on our system performance and internet speed.
Sit back and take a coffee, because it take some time.
WiFi-Pumpkin3 on Kali Linux
In this tutorial we learned how we can install Wi-Fi driver in Kali Linux, specially on primary install in Laptop.
Using Kali Linux in daily basis? Then follow some special tips about it by reading our this article.
For more updates follow our GitHub and Twitter, and comment of any kind of problems and suggestion. We always replay.
You may like these posts
Comments
make sure about what you have bought. alpha is a fake company. Alfa is is right one. If you bought alfa then it should work smoothly. If it is not working then try it on friends computer (windows or Linux whatever). If it is still not working then sorry to say you might got a defective product.
I have a Intel Wifi-6 AX200 chip in my PC and it supports monitor mode but Kali Linux does not recognize it whatsoever even though it is built into the motherboard.
What type of Kali Installation you are using? WSL or VMWare?
Got this from HP’s website. Please follow the instructions
Realtek 8723DE wifi module & Bluetooth Linux driver available now. This is for Ubuntu but also work for Kali Linux
Hi
I am on an hp pavilion laptop and the wifi never worked after the reboot I retried several times. Not sure what to do.
Different laptop models have different types of WiFi hardware. So please try Googling this. I have found something for you.
You can use your laptop inbuilt Wi-Fi adapter to connect internet, just go to setting of your virtual machine and in network connection I think, choose Bridged Network, connect to your Wi-Fi and start your Kali VM.
WOW it works thank you very much(i was trying it for the last time)
I got Asus machine and tried that wireless process but it did work out
Try it again. If not worked then you need to download the Wi-Fi driver from manufacturers website.
hey man i have a toshiba laptop with this adapter «Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter» couldnt get it to work any ideas??
Here we found a fix for Ubuntu, we think this will work for Kali Linux also. Check This.
i installed the software, several times and my wifi stick is connected but i still dont have wifi
(im using a vm), and i connected over bridged network but i still cant connect to wifi on my kali linux and i dont know what the problem is
It ask for username and password, after cloning. Please what should I use??
It only asks for username and password when you have type wrong GitHub URL. So please check again and type it properly.
as you say i have done all that and successfully installed but its still not showing wifi option.i have hp laptop..plz tell me something about it
what is the wifi hardware of your laptop or tell us the model, then we can help you.
Realtek RTL8723BE 802.11bgn wifi adapter and laptop model is hp-82CUGEJQ
Try following commands one after another
If these does not works then try this for newer models
will this work in virtualbox kali linux?
This doesn’t requires in virtualbox we can simply use bridged networking to work on the same network as does your host machine.
its still no working will you give your whats app no so u can help me better plzzzzz
Hi Manish, Give your WhatsApp no. Our team members will contact you.
I am using Dell latitude, please I did as instructed, the WiFi is still not working
This tutorial is specially for broadcom wifi module (most of laptops come with this). But some model of brands may have other type of modules. In that case you need to contact your laptop manufacturing brand for the wifi driver of Linux.
help me. saya sudah install kali linux 3x.tetapi masih juga gagal masalah wifi nya. help me. whatsapp me.+62 87874343609
Can you please specify the brand and model number of your Wi-Fi adapter? By default external adapters goes in wlan1. Also you need to make sure that your Wi-Fi adapter supports monitor mode and packet injections. Some newer models of 802.11 doesn’t support monitor mode and packet injection (old is gold). So if you can tell us or search on internet that your brand and model is supported monitor mode and packet injection. Are you working on Virtual Machine or VMWare? Then wireless attacks doesn’t work.
Operation not permitted error comes when you don’t use sudo in your command. Thanks of giving your adapter’s model number. We found this on Kali forum. This describes everything you need. Hope it solve your problem. Thanks.
the link is not working
Superbbb post. Thank you all worked perfectly like thanos snap
Worked perfectly. Thank you.
Yes, this will work for you. But in a live boot install everything will be erased after shutdown the system. Your settings files created etc, on the next boot you found fresh Kali as it was in the first boot. Then again you need to do everything. In this case we suggest you to use Kali Live Persistence. For installing and use Bluetooth please go through our this tutorial
i have dell inspiron 3000 laptop i follwed all steps but still the wifi is not working
My USB now show up but will not connect to anything.
I am usding wifi adeptor with chip setrealtek 802.11n NIC. I was using it in windows and now I want to use it in kali linux installed in virtual box.I have done the usb activation part but when I use it in windows it works properly but as soon as I am staring kali linux wifi adeptor is got disconnected everytime.Please help me with the problem
Here we have stopped using Virtual machines but seems like the problem comes from the Kali machine’s side. You can try installing the drivers for your WiFi card on Kali.
Hey all..I can’t see my wifi after kali linux installation..My network adapter is Qualcomm Atheros QCA9377. Pls help
Hi Vignesh, Did you installed the drivers for your Atheros QCA93377? You can download and install the suitable binary files from here.
how to use in kali linux plessssss
Hi you!
You don’t know how confused I am when the problem appear to me and I don’t know what to do.
I almost gave up coz that problem (can not connect to wifi)..
But, this article really help me, dude.
I have no word to thank to you..
Amazing! Great work! May god bless you!
This worked for me also. This guy is working well for the community.
I have RTL8822CE and I can’t get it working, already tied couple of custom drivers but they do not work.
Glad that you fixed it by yourself.
In VM or Virtual machine you can’t use your in built WiFi hardware. You can use bridged networking to connect to either a wired or a wireless network from your windows host machine. To ethical hacking on nearby wifi connection you need an external wifi adapter that suooprts Kali Linux, Monitor mode and packet injection.
I even can’t connect to wireless network. I have lenovo ideapad 110 please helps me
after I am entering the command ifconfig it don’t show me the wireless card name to me as i want to do penetration test
Are you running Kali on WSL or VMWare? If you don’t have primary installation then it not work. Are you using internal wifi chipset? Do you got wifi icon on your top panel?
I tried this method in Kali linux 2019 but the broadcom doesn’t seem to work for my lenovo laptop. And it shows my wirless card as Intel wireless 2895. Please help
Try the following command and show us the large output please.
Hi, Veer it’s a model number of Laptop. But you need to find out about the wifi hardware. please show us the full output of following command:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter
Hi again Veer,
It looks that you are using «RTL8723DE 802.11b/g/n PCIe Adapter» on your HP laptop. Now you want a Linux driver. We just do google and found the solution on HP’s website. You should check this.