Alfa awus036ach kali linux

Purple Serendipity

Mais les braves gens n’aiment pas que l’on suive une autre route qu’eux

Get Alfa AWUS036ACH USB NIC running on Kali VM to attack wireless networks

For people in IT security who want to perform penetration testing on wireless networks, it is important to have a network adapter (NIC) which supports monitor mode and packet injection. A normal consumer NIC that you have in your laptop will most likely not support any of these features. Therefore, you would want to invest in an additional USB NIC.

A popular choice for penetration testing is a model called Alfa AWUS036ACH, because it supports a broad set of features needed for pentesting. At the same time it is rather inexpensive, so the bar to “just try it out” is low.

Kali Linux as most popular Linux distribution to perform such pentests does not support the Alfa AWUS036ACH out of the box. Especially when running Kali in a virtual machine you will have to keep in mind some additional details.

There are many questions online where people ask how to fix this issue. Many times answers are not provided or they are unnecessarily complicated. I used the following few steps for different setups and it always worked, so I hope this description will also be helpful for you.

When you connect the card to your computer and run iwconfig on call, you will not see your NIC:

Kali does provide the necessary driver in its repositories, but you will probably first have to download it.

  1. Make sure that your USB NIC is connected with your computer
  2. In your Kali Linux, type the commands to download the driver as suggested by the Kali website:
apt-get update apt install realtek-rtl88xxau-dkms

  1. If you are running Kali in a virtual machine, you will also need to allow the virtual machine to connect to the USB device. You can do this in the running machine, but in my tests, this did not work directly after having installed the driver. I therefore recommend to shut down your VM and set the permission to access the USB NIC in the permanent settings for the VM. In VirtualBox you therefor have to right click on your VM and add the NIC to your VM.

In case your Windows host system did not properly recognize the wireless adapter either, you can download and install drivers from the manufacturer’s website. You would then have to restart your computer and afterwards perform step 3 as described above.

Читайте также:  Минусы линукса перед виндовс

  1. In some tests just adding the interface via VirtualBox settings did still not suffice, but I had to restart VirtualBox completely. Since this is done quickly, I recommend to do so just in case.
  2. Now, open VirtualBox and start up your Kali VM. When you now run iwconfig, the new USB NIC will be properly shown:
  1. As you can see in the screenshot above, your adapter will be in “Auto” mode. So, before you start your penetration tests, you will still have to bring it to Monitor mode. This can be done easily using airmon-ng:

When you execute iwconfig once more, you will see that the adapter is now in Monitor mode.

  1. One last preparatory step before you can start with your penetration tests is to stop processes which might otherwise return your NIC into another mode than Monitor mode. As airmon-ng already indicated above, you can accomplish this using the following command:

Although airmon-ng had shown a warning message about “Network Manager” being a possibly problematic process that should be stopped, it does not seem to touch it. At least the process is not listed under “killing these processes”. However, if you look at the upper right corner of your Linux, you should see that the network manager symbol was replaced by something that is labelled as “networking disabled”. So, although it does not say it, apparently the service was stopped, nonetheless. If you want to be 100% sure, you can try to stop the process using:

systemctl stop network-manager

Now you are ready to perform your penetration tests using Alfa AWUS036ACH on your Kali Linux VM. The very useful aircrack-ng suite is already shipped along. Please keep in mind though that it is illegal to attack networks that you do not own or which you do not have permission to perform tests on.

This article was written by Fabian

13 thoughts on “Get Alfa AWUS036ACH USB NIC running on Kali VM to attack wireless networks”

Thank you for howto. How reliable has the adapter been so far? I’ve heard it’s not the most stable driver.

Hi Jonny, Thank you for your comment. I agree with the observation that it is not the most stable utility I was working with. Both with the vendor’s original driver on Windows, and on Kali Linux I had to restart the setup from time to time, since some features suddenly stopped working. Unfortunately I do not know how to avoid these glitches completely, but at the very least restarts are quickly performed in a VM… Good luck with your own tests! Best regards,
Fabian

Hi Erma, Thanks for your question! To be honest I don’t know exactly which component is the decisive one when it comes to interface naming. I understand that it either depends on the Kali version, or on the employed chipset:
“I know guides say it will change to “mon0″ but its either a distro or chipset variable. Mine changes to wlan0mon and it works as mon0 would.” -> https://www.reddit.com/r/HowToHack/comments/3klu9q/airmonng_displays_wlan0mon_instead_of_mon0/ “Both these methods place the wireless adapter into monitor mode except iwconfig keeps the monitor mode on wlan0 and airmon-ng starts monitor mode on mon0. ” -> https://forums.kali.org/showthread.php?28742-Difference-Between-quot-iwconfig-wlan0-mode-monitor-quot-and-quot-airmon-ng-start-wlan0-quot I recently relocated to another country and the majority of my books where I could gain a better understanding are not here yet. However, for the functionality of the monitor mode, the naming of the interface has no influence. If you found out which component eventually decides on the interface naming, it would be great to know! Sorry that I can not give you a more precise answer but I still hope it helped a bit… Cheers,
Fabian

Читайте также:  Linux print ip address

I followed these instructions and got to the point where the drivers are successfully installed. However, iwconfig still does not show wlan0. Does it matter that my Kali is 2020.4? Not sure what else to do.

Hi David, Josh, Sorry to hear that you have trouble setting up your NIC. I checked my old VMs and extracted some further build information for you. The setup as described in the tutorial here worked for the following configuration: lsb_release -a:
Release: 2020.1 hostnamectl:
Virtualization: oracle
Kernel: Linux 5.4.0-kali4-amd64
Architecture: x86-64 cat /proc/version:
gcc version 9.2.1 20200203 (Debian 9.2.1-28) #1 SMP Debian 5.4.19-1kali1 (2020-02-17) If you really can’t get in running on newer versions, you could try this older build.
Also, if I find time at some point, I’ll try with more recent releases of Kali. Would be great if you could post it here in case you succeed. Cheers,
Fabian

Hey, I have done the first steps in the howto. But my adapter is still not showing when I type iwconfig. It still seems like virtualbox is not recognizing my adapter(awus036ach). Thanks!

Hi, According to the NIC’s hardware specifications this will work, yes. Good luck and let me know about your experiences. Cheers,
Fabian

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Источник

Установка драйвера Alfa AWUS036ACH в Kali Linux

Чтобы двухдиапазонный Wi-Fi адаптер Alfa AWUS036ACH можно было использовать в операционной системе Kali Linux, необходимо установить драйвер.

Мы провели установку драйвера и проверили его работоспособность на следующем оборудовании:

  • Компьютер с установленной программой виртуализации VMware Workstation 12 Pro 12.5.5
  • Образ Kali Linux 32 bit VM PAE 2017.1 для VMware
  • Адаптер Alfa AWUS036ACH

Скачайте образ Kali-Linux-2017.1-vm-i686.7z (Torrent) для VMware и распакуйте его.

Запустите VMware Workstation, откройте меню File — Open и укажите путь к распакованному образу Kali Linux.

Открытие образа Kali Linux в VMware

Запустите ОС Kali Linux и в появившемся окне выберите I Copied It.

Копирование образа Kali Linix в VMware

При входе введите логин root и пароль toor.

Читайте также:  Все установленные ядра линукс

Стандартный логин и пароль в Kali Linux

Подключите Wi-Fi адаптер Alfa AWUS036ACH в USB порт компьютера. Если адаптер автоматически не подключился в VMware, то подключите его через меню VM — Removable Devices — Realtek 802.11n — Connect.

Подключение Wi-Fi адаптера Alfa AWUS036ACH в VMware

Приступаем к установке драйвера. Откройте терминал и выполните следующие команды:

git clone -b v4.3.21 https://github.com/astsam/rtl8812au.git # скачиваем драйвер из репозитория github или качаем с нашего сайта и распаковываем

cd rtl8812au # переходим в каталог со скачанным драйвером

make # компилируем драйвер

sudo make install # устанавливаем драйвер

Установка драйвера Alfa AWUS036ACH в Kali Linux

Теперь можно перезагрузить операционную систему или выполнить следующие команды, чтобы драйвер начал работать:

modprobe 8812au

airmon-ng check kill

Далее переведем Wi-Fi адаптер в режим monitor:

sudo ip link set wlan0 down # отключаем Wi-Fi интерфейс wlan0

sudo iwconfig wlan0 mode monitor # переводим интерфейс wlan0 в режим мониторинга

sudo iwconfig wlan0 txpower 30 # если нужно увеличиваем выходную мощность до 30 dBi

sudo ip link set wlan0 up # включаем Wi-Fi интерфейс wlan0

Проведем сканирование Wi-Fi сетей:

airodump-ng wlan0 —wps

Cканирование Wi-Fi сетей в Kali Linux с помощью Wi-Fi адаптера Alfa AWUS036ACH

Как видите, все работает. Остальной функционал из Kali Linux тоже работает 🙂

  • В VMware беспроводной адаптер иногда перестает сканировать Wi-Fi сети. В этом случае его нужно переподключить в виртуалке через меню VM — Removable Devices — Realtek 802.11n и заново ввести в режим monitor.
  • Встроенный в ОС Kali Linux визуальный сканер видит Wi-Fi сети, но подключиться к ним не может с правильным паролем. Постоянно переспрашивает пароль. Не подключается даже к открытым Wi-Fi сетям. Когда-то у меня была аналогичная ситуация в Ubuntu. Если кто-то знает, как это исправить, напишите в комментарии.

Источник

Alfa Network AWUS036ACH. Настройка работы с Kali Linux

выполните следующие действия, как есть.
Примечание: отключите адаптер Wi-Fi, пока вы делаете ниже.

‧ apt remove realtek-rtl88xxau-dkms && apt purge realtek-rtl88xxau-dkms
‧ apt update && apt upgrade
‧ apt autoremove && apt autoclean
‧ reboot

‧ apt-get dist-upgrade
‧ reboot

‧ git clone https://github.com/aircrack-ng/rtl8812au
‧ cd rtl8812au
‧ make && make install

‧ poweroff

Теперь включите компьютер и подключите адаптер Wi-Fi
Сейчас я использую Alfa AWUS036ACH RTL8812AU в Kali Linux 2019.4
Примечание: я подключил интернет через этот адаптер Wi-Fi

Kali Linux 2019.1, 2018.4, 2018.3, 2018.2 (supported)

ПРИМЕЧАНИЕ: протестированная версия ядра 4.15.0-kali2-amd64
ПРИМЕЧАНИЕ: протестированная версия ядра 4.17.0-kali1-amd64
ПРИМЕЧАНИЕ: протестированная версия ядра 4.18.0-kali3-amd64

Инструкции:
Шаг 1: Войдите в среду
Войдите в Kali Linux 2018.2 и откройте терминал от имени пользователя root.

Шаг 2: обновить ядро и установить пакет драйверов
Запустите следующую команду:


apt-get install linux-image-amd64

Перезагрузите компьютер. Откройте терминал пользователем root и выполните команду после перезагрузки:


apt-get install realtek-rtl88xxau-dkms

или выполните следующую команду, если существующий установленный пакет


apt-get install --reinstall realtek-rtl88xxau-dkms

Шаг 3: Вставьте драйвер и запустите.
Попробуйте одну из следующих команд:

Оборудование

Wi-Fi USB-адаптер ALFA Network AWUS036ACH - фото

Самый мощный на рынке в своей ценовой категории, используется для подключения ноутбука к беспроводным сетям в диапазоне 2.4/ 5 ГГц со скоростью до 1.2 Гбит/с по стандартам 802.11 a/b/g/n/ac на чипсете Realtek RTL8812AU

Источник

Оцените статью
Adblock
detector