Awus036ach kali linux driver

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.

Читайте также:  Free windows 10 update from microsoft

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.

  • 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%)

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.

Читайте также:  Windows не загружается с диска при перезагрузке

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.

Источник

Установка драйвера 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. Если кто-то знает, как это исправить, напишите в комментарии.
Читайте также:  Mac os очистить кэш приложения

Источник

How to install ALFA AWUS036ACH, AWUS1900, AWUS036AC on Kali Linux 2020.3 w/ monitor mode & injection

October 16, 2020

The Alfa AWUS036ACH, AWUS1900, and AWUS036AC can run with monitor mode and injection support on Kali Linux 2020.3. But Github has a new driver package for Realtek RTL8812AU and RTL8814AU based devices that is different from past versions. We have a new video showing how to do the driver download and installation.

Comments

Nice howto video!

Glad you enjoy my drivers. There is a new driver available for 8814AU chipsets, it will be separated, so the repo for standalone driver is

i downloaded the driver but my awus1900 still doesnt work what should i do? im running kali linux 2020.03

HI, when will be update for Kali2020.4 ? I ’ve done everthing like in the video, but still i recieve mistakes:

/Downloads/rt2]
└─$ sudo make dkms_install
[sudo] password for kali:
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
make: dkms: No such file or directory
make: * [Makefile:2305: dkms_install] Error 127

Hi there. Thanks for all the great information.

Second the request for update for Kali 2020.4. The AWUS036ACH is totally broken on this version and no older versions are available anywhere.

So I’m dead in the water. Any assistance you can offer would be appreciated.

Follow the following steps using a freshly installed latest Kali 2020.4 and the latest rtl8812au (origin/v5.6.4.2).

/Code/rtl8812au]
└─$ uname -r
5.9.0-kali1-amd64

Note it’s outputting the kali1 and not kali4.

/Code/rtl8812au]
└─$ apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y
… … …

Once the update is done, REBOOT the computer.

/Code/rtl8812au]
└─$ uname -r
5.9.0-kali4-amd64

It’s not outputting the expected kali4.
The following command will now download the correct headers:

/Code/rtl8812au]
└─$ sudo apt-get install build-essential libelf-dev linux-headers-`uname -r`
… … …

Then make should now work well.

Install using sudo.

/Code/rtl8812au]
└─$ sudo make install
… … …

thx so much bro now i can use it.

Thanks for the fix
Also works in 5.9.0-kali5-amd64

Works on kali: 5.9.0-kali5-amd64

c0d3ki113r that worked!

virtualbox – Kali – 5.9.0-kali5-amd64

When i get to make and sudo make install, says no target…help plz.

It worked, thank you.

Hi,
Thanks for the Information . Kali 2020.4. and latest driver.
I tried the solution of c0d3ki113r but still i recieve mistakes.

/Downloads/rt]
└─$ uname -r
5.9.0-kali1-amd64

/Downloads/rt]
└─$ apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Any assistance you can offer would be appreciated.

try running “sudo bash” to escalate your privalages to the root user before running the update and upgrade commands. When the update is done, type “exit” to exit the root user and proceed with c0d3ki113r’s instructions.

No worries guys!

@Lint you should sudo those apt-get commands or switch to root as suggested. But keep in mind, with great power comes great responsibility. 🙂

anyone reading and still having issues try:

apt-get install realtek-rtl88xxau-dkms

Hi everyone
this is my kernel version 5.10.0-kali9-amd64
I have been trying to install the driver in a million different ways
it shows up, goes into monitor mode and finds networks and devices but the deauth doesn’t work so no package injection, it shows 0,0 ack
is it the kernel version? what can it be please?
im lost
thanks

Inbox me!

Sign up to our newsletter and we’ll keep you up to date with the latest arrivals

Источник

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