- Установка драйвера Alfa AWUS036ACH в Kali Linux
- AWUS036AC (rtl8812au) driver setup in Kali Linux
- Hardware – AWUS036AC
- AWUS036AC (rtl8812au) Driver Installation
- Verify your device
- Update: 11/01/2021
- Ethical hacking and penetration testing
- InfoSec, IT, Kali Linux, BlackArch
- How to install the driver for W-Fi for cards with RTL8812AU/RTL8821AU chipsets (Alfa AWUS036ACH, Alfa AWUS036AC)
- What is the chipset in Alfa AWUS036ACH and Alfa AWUS036AC
- How to install the rtl8812au driver in Kali Linux
- How to install rtl8812au driver in Arch Linux, BlackArch
- How to install rtl8812au driver in Debian, Linux Mint, Ubuntu
- How to install rtl8812au driver in For Raspberry (RPI)
- Setting up TX power in rtl88xxau
- LED control in rtl88xxau
- NetworkManager
- How to set Alfa AWUS1900 into monitor mode
- Related articles:
- Recommended for you:
- 13 Comments to How to install the driver for W-Fi for cards with RTL8812AU/RTL8821AU chipsets (Alfa AWUS036ACH, Alfa AWUS036AC)
Установка драйвера 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 и в появившемся окне выберите I Copied It.
При входе введите логин root и пароль toor.
Подключите Wi-Fi адаптер Alfa AWUS036ACH в USB порт компьютера. Если адаптер автоматически не подключился в VMware, то подключите его через меню VM — Removable Devices — Realtek 802.11n — Connect.
Приступаем к установке драйвера. Откройте терминал и выполните следующие команды:
git clone -b v4.3.21 https://github.com/astsam/rtl8812au.git # скачиваем драйвер из репозитория github или качаем с нашего сайта и распаковываем
cd rtl8812au # переходим в каталог со скачанным драйвером
make # компилируем драйвер
sudo make install # устанавливаем драйвер
Теперь можно перезагрузить операционную систему или выполнить следующие команды, чтобы драйвер начал работать:
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
Как видите, все работает. Остальной функционал из Kali Linux тоже работает 🙂
- В VMware беспроводной адаптер иногда перестает сканировать Wi-Fi сети. В этом случае его нужно переподключить в виртуалке через меню VM — Removable Devices — Realtek 802.11n и заново ввести в режим monitor.
- Встроенный в ОС Kali Linux визуальный сканер видит Wi-Fi сети, но подключиться к ним не может с правильным паролем. Постоянно переспрашивает пароль. Не подключается даже к открытым Wi-Fi сетям. Когда-то у меня была аналогичная ситуация в Ubuntu. Если кто-то знает, как это исправить, напишите в комментарии.
Источник
AWUS036AC (rtl8812au) driver setup in Kali Linux
I am planning a number of articles which focus on using aircrack-ng and hashcast to recover WPA wireless security passwords. However to get into that you need to have a specific wireless device which supports monitor mode and packet injection. I decided on the Alfa AWUS036AC, but some work was required to get the drivers installed.
This guide is based on Kali Linux 2019.4 – but the drivers are certified for earlier versions of Kali and the kernel that 2019.4 uses. See updates below for getting this working on Kali 2020.4.
Hardware – AWUS036AC
My choice of hardware for WPA password recovery was the Alfa Networks AWUS036AC – https://amzn.to/34LlqXY
Increased Wireless Signal Penetration
With unmatched Wi-Fi signal strength and coverage. AWUS036AC not only has maximum WiFi range, it helps to penetrate walls, and eliminate Wi-Fi dead spots in your living space easily.
If you are conductin a wireless assessment, this is great news because you can conduct your testing from the comfort of your desk chair.
Chipset | Realtek RTL8812AU |
WiFi Standards | IEEE 802.11ac/a/b/g/n |
WiFi Frequency | Dual Band 2.4GHz or 5GHz |
Antenna Connector | RP-SMA female x 2 |
Antenna Type | 2.4G/5GHz Dual-Band 5dBi dipole antenna |
Wireless Performance | 802.11a: up to 54Mbps 802.11b: up to 11Mbps 802.11g: up to 54Mbps 802.11n: up to 300Mbps 802.11ac: up to 867Mbps |
Wireless Security | 64/128 bit WEP,WPA/WPA2,WPA-PSK/WPA2-PSK,WPS |
Interface | USB 3.0 |
OS Requirement | Windows XP, Vista, 7, 8/8.1 and Windows 10 32/64bit, macOS 10.5 to 10.14 or later Linux |
AWUS036AC (rtl8812au) Driver Installation
Assuming that you are loged into a terminal session on your kali linux machine as root, the following commands are required to download and install the drivers from source:
Clone the aircrack-ng git repository:
Enter the newly downloaded directory:
Build and install the source files:
Reboot the Kali instance to complete:
There are a number of other git repositories where you can obtain drivers for this usb wireless adaptor. My findings were that the aircrack-ng repo was the only place which supplied drivers supported in the current kernel version for Kali 2019.4 – kernel 5.3.9
Verify your device
To ensure that your device is available and ready to be used in Kali, you can run the following command to confirm that the OS can recognise the adapter:
Update: 11/01/2021
As you can see from the Github issue reports, https://github.com/aircrack-ng/rtl8812au/issues, there are a lot of active issues with these drivers.
As of 11/01/2021, I was able to get this chipset working on Kali with the following driver install method:
And just to verify, here is my curent Kali version:
…and here is proof of function with airodump-ng:
Some yummy WEP networks in there for my troubles!
Источник
Ethical hacking and penetration testing
InfoSec, IT, Kali Linux, BlackArch
How to install the driver for W-Fi for cards with RTL8812AU/RTL8821AU chipsets (Alfa AWUS036ACH, Alfa AWUS036AC)
What is the chipset in Alfa AWUS036ACH and Alfa AWUS036AC
The RTL8812AU chipset has the following W-Fi adapters:
They are especially loved by those who perform wireless security testing of Wi-Fi networks, since they are modern wireless adapters that support monitor mode and can perform wireless injections.
The difference between the RTL8812AU and RTL8814AU chipsets is the ability to support a different number of antennas. The RTL8812AU supports up to 2 antennas, and the Realtek RTL8814AU supports up to 4 antennas. In some cases, depending on the design of the device manufacturer’s circuitry or firmware, one antenna can be used only for transmitting, and the other only for receiving. Also, some devices work only in one band by choice, others – in two bands at the same time. This also needs to be considered when purchasing devices.
How to install the rtl8812au driver in Kali Linux
If you bought a dual-band (2.4GHz & 5.0GHz) adapter with RTL8812AU/21AU chipset, you need to install the rtl8812au driver. On Kali Linux, you can do this with the command:
After installation, reboot your system or disconnect/reconnect the adapter.
How to install rtl8812au driver in Arch Linux, BlackArch
Start by installing the pikaur program according to the “Automatic installation and update of AUR packages” article. The pikaur program is analogous to pacman, but for working with the AUR, it allows you to automatically install and update programs from the AUR. You will definitely love pikaur!
Then run the command:
How to install rtl8812au driver in Debian, Linux Mint, Ubuntu
Run the following commands to install the rtl8812au driver.
Download driver source code:
Install the driver as a DKMS module – this means that when updating the kernel, you do not have to manually recompile the driver for the new kernel version. This will be done automatically by the DKMS module. Also note that the make command is unnecessary since the compilation is done by the DKMS module.
DKMS reports that the installation is complete and that the status for 8814au is “installed”.
How to uninstall the driver
To remove a driver from your system, open a terminal in your source directory and run the following command:
How to install rtl8812au driver in For Raspberry (RPI)
Download driver source code:
Changes to the Makefile must be made to change the processor architecture.
For RPI 1/2/3/ and 0/Zero:
But for RPI 3B+ and 4B, you will need to run the other commands below, they build the Arch ARM64 driver:
Also, if you get an error about an unrecognized command line parameter “-mgeneral-regs-only” (for example Raspbian Buster), you need to run the following commands:
Install the driver as a DKMS module – this means that when updating the kernel, you do not have to manually recompile the driver for the new kernel version. This will be done automatically by the DKMS module. Also note that the make command is unnecessary since the compilation is done by the DKMS module.
Removing the driver
To remove a driver from your system, open a terminal in your source directory and run the following command:
Setting up TX power in rtl88xxau
Switching between USB modes in rtl88xxau
Where NUMBER can be:
- 0: do not use switch
- 1: switch from usb2.0 to usb 3.0
- 2: switch from usb3.0 to usb 2.0
LED control in rtl88xxau
You can control the LED statically by specifying a module parameter in /etc/modprobe.d/8812au.conf or a similar file, like this:
Values can be 0 or 1.
You can also control the LED dynamically by changing the values in /proc/net/rtl8812au/$(YOUR INTERFACE NAME)/led_ctrl, for example:
Values can be 0 or 1.
To check the current value:
NetworkManager
Newer versions of NetworkManager switch to a random MAC address. Some users would prefer to use a fixed MAC address. Just add these lines below at the end of your /etc/NetworkManager/NetworkManager.conf file:
and restart NetworkManager with the command:
How to set Alfa AWUS1900 into monitor mode
The main thing to learn by now is to use the “ip” and “iw” commands instead of “ifconfig” and “iwconfig” – this applies to all Wi-Fi adapters.
Related articles:
- How to install driver for Wi-Fi for adapters with RTL8814AU chipset (Alfa AWUS1900) (100%)
- How to increase TX-Power of Wi-Fi adapters in BlackArch in 2021 (82%)
- How to install driver for Wi-Fi Mediatek MT7921 and Mediatek MT7961 in Linux (71.6%)
- How to increase TX-Power of Wi-Fi adapters in Kali Linux in 2021 (65.6%)
- USB Wi-Fi Adapters with monitor mode and wireless injection (100% compatible with Kali Linux) 2021 (65.6%)
- How in Windows view the contents of a Linux disk and copy files from it (RANDOM — 16.4%)
Recommended for you:
13 Comments to How to install the driver for W-Fi for cards with RTL8812AU/RTL8821AU chipsets (Alfa AWUS036ACH, Alfa AWUS036AC)
rtl88xxau is not currently working on raspberry pi.5.4.72-v7l+
make produces error «gcc: error: unrecognized command line option \u2018-mgeneral-regs-only\u2019» despite dkms.conf was modified as indicated
make dkms_install installs the driver but it is not recognized by the device.
Few months ago this driver installed and worked with no problem.
On the other hand, you indicate to modify dkms-install.sh with
sed -i ‘s/^dkms build/ARCH=arm dkms build/’ dkms- install .sh
but dkms-install.sh is not in the repository anymore.
Hello! You are right about dkms-install.sh and I corrected it in the manual.
Take a close look at the error message and unrecognized command line option: “\u2018-mgeneral-regs-only\u2019”. It is weird, isn’t it? Maybe try deleting the source directory and trying to download and reinstall?
Did you try to install this driver using DKMS?
/rtl8812au]
└─$ sudo make dkms_install
mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:2303: dkms_install] Error 3
You need to remove the old version first:
sudo dkms remove 8812au/5.6.4.2_35491.20191025 —all
sudo make dkms_install
how fix this guys ?
It looks like this driver is already installed. Try to remove it first (if you need it):
Your kernel headers for kernel 5.4.83-v7+ cannot be found at
/lib/modules/5.4.83-v7+/build or /lib/modules/5.4.83-v7+/source.
I didn’t get it, sorry.
Try with:
sudo apt install linux-headers-generic
this is the error i keep receiving…… can you pls help with this
Error! Your kernel headers for kernel 4.4.0-19041-Microsoft cannot be found.
You use WSL, right? So none can help you. Think of WSL as a virtual machine with no hardware access.
I mean, even if you can compile the driver, you still won’t be able to use your Wi-Fi dongle.
This just short Tutorial for NEWBIE (like me!) for installing driver USB Wifi driver for Linux Debian and it’s derivatives (Debian, Ubuntu, Linux Mint, Pop! OS, Elementary OS, etc.)
When you’re switch to new OS distro or updating OS or accidently delete some part of software sometimes your Wifi driver are no support / no working and got blank your mind … Yup thats right !
# First STEP to do :
1. You only need YOUR SMARTPHONES and make sure also they have “Internet Mobile Data”.
2. Then you need to opened “Developer Options” on your smartphone to do that first before.
3. Open your phone “Settings” and find it “About Phone” and selected “Version Number” and then now repeated click up to (7x) seven times.
4. Inside “Developer Options” find it or scrolling to the “Network” and selected “Select USB Configuration” and then select again to the “USB Ethernet (RNDIS)”.
5. After this all you need is USB cable connected to your PC or Laptop and it’s done, now you ready online!
# Second STEP to do :
1. Installing GDebi (I’m using Geary on Pop! OS that are the same software). You can find GDebi in Ubuntu Software Center, just search for it and install it from there.
2. Then installing the latest “realtek-rtl88xxau-dkms” deb package from Kali’s repository.
3. After this just type in your linux terminal “sudo reboot” to rebooting your PC or Laptop.
4. It’s done , just try to check it out !
I’m trying many times using this method when i switching to new OS distros or update Linux Kernel. This really saving my times and work to do! Thanks for your time to read this !
Hello! Thank you very much for your escape method when the laptop is stuck offline.
Источник