PDA

View Full Version : New Alfa awus036ach help



fatfarm5
2015-10-03, 02:01
Hi all
Just bought the new Alfa awus036ach and been trying to enable it all day. My built in wireless card show up when enter ifconfig or any command but the USB adapter does not only under lsusb can I find it. lsusb list the chip set and info. So my question is how to enable the USB adapter? I'm running Kali Linux 4.0 Sana amd-64 fully updated. on my laptop dual boot with window (not a VM its DUAL BOOT). The adapter works great on windows but windows sucks I want it for Kali please help me. I'll be back in the morning. Thanks in advance!

kali2015
2015-10-03, 09:27
try https://github.com/csssuf/rtl8812au or https://github.com/gnab/rtl8812au


The Realtek 8812au USB driver is available from https://github.com/gnab/rtl8812au . As of 2015-05-04, this driver does not compile with Linux 4.0.0 and later. A Linux 4.0.0 compatible version of the 8812au driver is available from https://github.com/csssuf/rtl8812au .

fatfarm5
2015-10-03, 10:16
OK so I have them files from the CD sent with the adapter forgot to say that. Anyway what do I do with the files I'm a noon when it comes to command line and compiling please help.

fatfarm5
2015-10-03, 11:04
tried make command heres what it says:
root@hd:~/Desktop/rtl8812au-linux# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.0.0-kali1-amd64/build M=/root/Desktop/rtl8812au-linux modules
make[1]: *** /lib/modules/4.0.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1350: recipe for target 'modules' failed
make: *** [modules] Error 2

kali2015
2015-10-03, 13:48
check the automatic install script here https://wiki.gentoo.org/wiki/AC1200_Wireless_Adapters

fatfarm5
2015-10-03, 15:50
i did and download headers thought that might work but get error.
root@hd:~/Desktop/rtl8812au-master# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.0.0-kali1-amd64/build M=/root/Desktop/rtl8812au-master modules
make[1]: Entering directory '/lib/modules/4.0.0-kali1-amd64/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.0.0-kali1-amd64/build'
Makefile:1051: recipe for target 'modules' failed
make: *** [modules] Error 2

any help would be great. what am i doing wrong? anything else i need to look up on my system for you to better help me?

fatfarm5
2015-10-03, 16:48
root@hd:~/Desktop/AWUS036AC_036EAC_linux_v4.3.2_11100.20140411# insmod 8812au.koinsmod: ERROR: could not insert module 8812au.ko: Invalid module format

kali2015
2015-10-03, 17:01
also check here http://forums.debian.net/viewtopic.php?f=7&t=121127 or here http://blog.danielscrivano.com/installing-rtl8812au-on-linux-for-wireless-dual-band-usb-adapters/ ,maybe you need to add your device PID & VID (from lsusb) to sources you compile

fatfarm5
2015-10-03, 22:36
used the following commands it works now BUT both network cards turn on the alfa and my bulit in athros when i turn off the pci card the usb goes off too.:( also i try to put the alfa into mode monitor and system says
root@hd:~# ifconfig wlan1 down
root@hd:~# iwconfig wlan1 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan1 ; Invalid argument.

heres how i installed the driver AFTER reinstalling Kali fresh
apt-get install -y linux-headers-$(uname -r)
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
make
sudo make install
sudo modprobe 8812au

fatfarm5
2015-10-03, 22:37
Heres some of my system things
root@hd:~# lsusb
Bus 002 Device 005: ID 0c45:6a04 Microdia
Bus 002 Device 006: ID 0cf3:0036 Atheros Communications, Inc.
Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

fatfarm5
2015-10-03, 22:39
root@hd:~# ifconfig
eth0 Link encap:Ethernet HWaddr b8:2a:72:a8:21:d2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8528 (8.3 KiB) TX bytes:8528 (8.3 KiB)

wlan0 Link encap:Ethernet HWaddr 64:5a:04:3e:83:50
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:308 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36436 (35.5 KiB) TX bytes:60724 (59.3 KiB)

fatfarm5
2015-10-03, 22:41
root@hd:~# iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

fatfarm5
2015-10-03, 22:41
lo no wireless extensions.

wlan1 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0



any help would be great.btw i updated kali before doing the above commands.

kali2015
2015-10-04, 22:20
to enter monitor mode --> "airmon-ng check kill" then "airmon-ng start wlan0" (or wlan1, check it)
if something doesn't work try --> ifconfig wlan1 down, then ifconfig wlan1 up

fatfarm5
2015-10-05, 15:02
yeah i did that tried ifconfig wlan1 down iwconfig wlan1 mode monitor ifconfig wlan1 up<---all errors then tried airmon-ng which works airodump-ng goes into monitor but doesn't show any connections at all and seems to only scan 2.4g. i dont know just wiped my whole drive reinstalled windows 8 ill wait a few months until other ppl buy the new adapter and figure it out.btw the adapter works great on windows.. lol i was getting no connections with my built in card now get 6 with three bars:) there all 2.4g from about 2 blocks or more away know one seems to have 5g here.

fatfarm5
2015-10-20, 17:19
got the right driver now and i must say its working like a champ injects captures doest it all. super long range. download driver here https://github.com/abperiasamy/rtl8812AU_8821AU_linux.
edit sources.list with the following: deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

apt-get update
apt-get upgrade
apt-get install -y linux-headers-$(uname -r)
extact the driver open extract folder in terminal
type: make

after thats completes type: make install

plug in the Alfa adapter restart Kali

Good to go!

curious-ninja
2015-11-06, 00:05
got the right driver now and i must say its working like a champ injects captures doest it all. super long range. download driver here https://github.com/abperiasamy/rtl8812AU_8821AU_linux.
edit sources.list with the following: deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

apt-get update
apt-get upgrade
apt-get install -y linux-headers-$(uname -r)
extact the driver open extract folder in terminal
type: make

after thats completes type: make install

plug in the Alfa adapter restart Kali

Good to go!

I just ordered the Alfa AWUS036ACH.
Can you confirm, it is definitely able to inject using those drivers you linked to?

Thanks!

brew balls
2015-12-08, 17:55
I just ordered the Alfa AWUS036ACH.
Can you confirm, it is definitely able to inject using those drivers you linked to?

Thanks!


I just tried the steps that fatfarm5 mentioned on my 64bit VM, with no luck.

Receive the following when trying to put the card in monitor mode


airmon-ng start wlan3


PHY Interface Driver Chipset

phy0 wlan3 ?????? Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
cat: /sys/class/ieee80211/phy0/device/net/wlan3mon/type: No such file or directory

Newly created monitor mode interface wlan3mon is *NOT* in monitor mode.
Removing non-monitor wlan3mon interface...


Hoping someone figures this out as having an AC card capable of injection would be super awesome.

Scolder
2015-12-20, 21:34
"fatfarm commented on Nov 16
im using the alfa awus036ach on kali linux. the adapter does go into
monitor but wont inject packets.

"

Source (https://github.com/abperiasamy/rtl8812AU_8821AU_linux/issues/97).

vverloop
2016-05-30, 20:38
I have the same issue..does somebody has found the correct "patched" drivers?

vverloop
2016-05-30, 20:52
I have the same issue..does somebody has found the correct "patched" drivers?

I have bought this as replacement for my old AWUS036H card. It looks like it is not supported anymore by Kali developers and is end of life.
It should be nice if the Kali developers can implement the drivers into Kali, just like they did with the drivers for AWUS036H.

I there is another wifi card that is better, i like to know.

vverloop
2017-04-29, 13:10
Kali Linux 2017.1 release now supports RTL8812AU chipset (AWUS036ACH).

Installation:

apt-get update
apt install realtek-rtl88xxau-dkms

Usage:
No idea. Airmon-ng start wlan0 doesn't work. Can somebody help me with this?



root@kali:~# apt install realtek-rtl88xxau-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
realtek-rtl88xxau-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,522 kB of archives.
After this operation, 14.8 MB of additional disk space will be used.
Get:1 http://nl.mirror.babylon.network/kali kali-rolling/contrib amd64 realtek-rtl88xxau-dkms all 4.3.21~20170330-0kali1 [1,522 kB]
Fetched 1,522 kB in 0s (1,579 kB/s)
Selecting previously unselected package realtek-rtl88xxau-dkms.
(Reading database ... 324237 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_4.3.21~20170330-0kali1_all.deb ...
Unpacking realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Setting up realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Loading new realtek-rtl88xxau-4.3.21~20170330 DKMS files...
Building for 4.9.0-kali3-amd64
Building initial module for 4.9.0-kali3-amd64
Done.

8812au:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-kali3-amd64/updates/

8814au.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-kali3-amd64/updates/

depmod...

DKMS: install completed.
root@kali:~# airmon-ng start wlan0

Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to run 'airmon-ng check kill'

PID Name
535 NetworkManager
661 dhclient
5256 wpa_supplicant
5281 dhclient

PHY Interface Driver Chipset

phy0 wlan0 8812au Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
cat: /sys/class/ieee80211/phy0/device/net/wlan0mon/type: No such file or directory

Newly created monitor mode interface wlan0mon is *NOT* in monitor mode.
Removing non-monitor wlan0mon interface...

WARNING: unable to start monitor mode, please run "airmon-ng check kill"
root@kali:~# airmon-ng

PHY Interface Driver Chipset

phy0 wlan0 8812au Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter


UPDATE:

It works like this:



root@kali:~# ip link set wlan0 down
root@kali:~# iwconfig wlan0 mode monitor
root@kali:~# ip link set wlan0 up
root@kali:~# airmon-ng

PHY Interface Driver Chipset

phy0 wlan0 8812au Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter

root@kali:~# iwconfig
wlan0 IEEE 802.11 Mode:Monitor Frequency:5.745 GHz Tx-Power=18 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off

eth0 no wireless extensions.

lo no wireless extensions.

airhogger
2017-04-30, 14:06
Hey, awesome for you that it works. I get an error trying the commands you posted, with the same WiFi ACH card. I get the error:

"Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Operation not permitted."

after entering the commands:
ip link set wlan0 down
iwconfig wlan0 mode monitor

Any ideas? :)

UPDATE: Okay seems it didn't work because I tested in a VM. Tried on bare metal and that works. However 5GHz does not seem to work.

Soledge
2017-05-04, 19:48
i couldn't get the card into monitor mode using vverloop's post. The card thats featured in the kali blog iis useless without the ability to use monitor mode and injection. Anyone else have it working somehow?

airhogger
2017-05-06, 11:52
Hi Soledge,

I got the driver working with injection on an older Kali distro. But guess what, the new Kali release, comes til Linux 4.9.0 kali4 headers, and the installation of the driver asks for kali3 headers so it doesn't install properly.

I think the driver must be updated, or I need to understand something. Cause, it doesn't work.

Anyways, Soledge, don't use a VM because then it won't work.
If that doesn't work and you see an installation error message, then try an earlier Kali release.

kcdtv
2017-05-06, 15:46
The device works in virtual machine if you enable USB 3.0 support-
If you have problems with the dkms package you can always install the source.
The drivers used to build the dkms package are taken from there: https://github.com/astsam/rtl8812au
I just updated Kali Linux.

kcdtv@kalimuX0:~$ git clone -b v4.3.21 https://github.com/astsam/rtl8812au.git
Cloning into 'rtl8812au'...
remote: Counting objects: 2018, done.
remote: Compressing objects: 100% (659/659), done.
remote: Total 2018 (delta 301), reused 0 (delta 0), pack-reused 1354
Receiving objects: 100% (2018/2018), 6.54 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (1116/1116), done.
kcdtv@kalimuX0:~$ cd rtl*
kcdtv@kalimuX0:~/rtl8812au$ ls
clean hal include Makefile platform wlan0dhcp
core ifcfg-wlan0 Kconfig os_dep runwpa
kcdtv@kalimuX0:~/rtl8812au$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-kali3-amd64/build M=/home/kcdtv/rtl8812au modules
make[1]: se entra en el directorio '/usr/src/linux-headers-4.9.0-kali3-amd64'
CC [M] /home/kcdtv/rtl8812au/core/rtw_cmd.o
(... compilation with a cople of warning.... )
CC [M] /home/kcdtv/rtl8812au/core/rtw_mp.o
CC [M] /home/kcdtv/rtl8812au/core/rtw_mp_ioctl.o
CC [M] /home/kcdtv/rtl8812au/core/rtw_bt_mp.o
LD [M] /home/kcdtv/rtl8812au/8812au.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/kcdtv/rtl8812au/8812au.mod.o
LD [M] /home/kcdtv/rtl8812au/8812au.ko
make[1]: se sale del directorio '/usr/src/linux-headers-4.9.0-kali3-amd64'
kcdtv@kalimuX0:~/rtl8812au$ sudo make install
install -p -m 644 8812au.ko /lib/modules/4.9.0-kali3-amd64/kernel/drivers/net/wireless/
/sbin/depmod -a 4.9.0-kali3-amd64
kcdtv@kalimuX0:~/rtl8812au$

And injection is working
http://pix.toile-libre.org/upload/original/1494084611.png
About the naming problem, if you want the inetrface to ba called wlanXmon

sudo ifconfig wlan1 down
sudo ip link set wlan1 name wlan1mon
udo ifconfig wlan1mon up
And now you have wlan1mon in monitor mode... :D
http://pix.toile-libre.org/upload/original/1494085120.png

5Ghz does work!
pixiewps attack with the device and astsam's drivers against my ac access point
https://www.wifi-libre.com/img/members/3/crack_wps_5ghz_rtl8812au_3.jpg
PIN and Key are recovered immediately

You should go to the GitHub branch of astsam and read the closed issues and opened ones, a lot of things are explained.

Soledge
2017-05-06, 20:41
Thank you for providing this info. Im having troubles using the adapter to find APs. all of my other adapters find quite a few more than the one my ACH found.
I tested it on my Alfa NH, NHA and WN722N. all cards found at least six access points but the ACH. what gives?
I also adjusted the txpower to see if that would have any effect but it didnt seem to help

kcdtv
2017-05-07, 17:10
Be sure to clean any previous installation before installing the drivers you want to try.
You really have to use airmon-ng check kill or kill any process such as wpa_suppplicant, network-manager before using monitor mode.
I see what you mean, i don't know the exact reason, it can happens, i think when you start the PC with the USB plug-in. I am not really sure, i have been trying many drivers for more than one year in different distributions,
Anyway in latest kali, that what happened to me with airodump-ng
http://pix.toile-libre.org/upload/original/1494176171.png
Very bad! I should have a full shell of PA in less than 10 seconds. and i do not even have 15
So
1) I brought the interface down again ifconfig wlan1 down
2) Unpluged the USB device
3) Plug it again
4) enable mode monitor iwconfig wlan1 mode monitor
5) bring the interface up ifconfig wlan1 up
Now it works as it should:
http://pix.toile-libre.org/upload/original/1494176566.png
I did not even scanned for 4 seconds and my shell was full.
The day and the night... Don't ask me why. Network manager and System.d are bitches.

undersc0re
2017-05-08, 22:28
I tried installing the drivers for the awus036ach as well and am having issues, it works great on my windows10 though. My problem seems basic but I can not get it to install drivers properly. The system can see it as Bus 001 Device 004: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter. This is usb kali with persistence.
I get the following errors I have tried the instruction to install drivers for this on the kali website blog page talking about this adaptor. (apt-get update and then apt install realtek-rtl88xxau-dkms)
Just wondering if someone can point me in the right direction!

0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.6 MB of archives.
After this operation, 66.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 dkms all 2.3-2 [74.8 kB]
Get:2 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.25-1kali1 [456 kB]
Get:3 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-headers-4.9.0-kali4-common all 4.9.25-1kali1 [7,464 kB]
Get:4 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-kbuild-4.9 amd64 4.9.25-1kali1 [662 kB]
Get:5 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-headers-4.9.0-kali4-amd64 amd64 4.9.25-1kali1 [448 kB]
Get:6 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-headers-amd64 amd64 4.9+80+kali1 [6,352 B]
Get:7 http://kali.mirror.globo.tech/kali kali-rolling/contrib amd64 realtek-rtl88xxau-dkms all 4.3.21~20170330-0kali1 [1,522 kB]
Fetched 10.6 MB in 3s (3,240 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 321931 files and directories currently installed.)
Preparing to unpack .../0-dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package linux-compiler-gcc-6-x86.
Preparing to unpack .../1-linux-compiler-gcc-6-x86_4.9.25-1kali1_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.25-1kali1) ...
Selecting previously unselected package linux-headers-4.9.0-kali4-common.
Preparing to unpack .../2-linux-headers-4.9.0-kali4-common_4.9.25-1kali1_all.deb ...
Unpacking linux-headers-4.9.0-kali4-common (4.9.25-1kali1) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../3-linux-kbuild-4.9_4.9.25-1kali1_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.25-1kali1) ...
Selecting previously unselected package linux-headers-4.9.0-kali4-amd64.
Preparing to unpack .../4-linux-headers-4.9.0-kali4-amd64_4.9.25-1kali1_amd64.deb ...
Unpacking linux-headers-4.9.0-kali4-amd64 (4.9.25-1kali1) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../5-linux-headers-amd64_4.9+80+kali1_amd64.deb ...
Unpacking linux-headers-amd64 (4.9+80+kali1) ...
Selecting previously unselected package realtek-rtl88xxau-dkms.
Preparing to unpack .../6-realtek-rtl88xxau-dkms_4.3.21~20170330-0kali1_all.deb ...
Unpacking realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Setting up linux-compiler-gcc-6-x86 (4.9.25-1kali1) ...
Setting up dkms (2.3-2) ...
Setting up linux-kbuild-4.9 (4.9.25-1kali1) ...
Setting up linux-headers-4.9.0-kali4-common (4.9.25-1kali1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Loading new realtek-rtl88xxau-4.3.21~20170330 DKMS files...
Building for 4.6.0-kali1-amd64 4.9.0-kali4-amd64
Module build for kernel 4.6.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.0-kali4-amd64
Error! Bad return status for module build on kernel: 4.9.0-kali4-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/4.3.21~20170330/build/make.log for more information.
Setting up linux-headers-4.9.0-kali4-amd64 (4.9.25-1kali1) ...
/etc/kernel/header_postinst.d/dkms:
Error! Bad return status for module build on kernel: 4.9.0-kali4-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/4.3.21~20170330/build/make.log for more information.
Setting up linux-headers-amd64 (4.9+80+kali1) ...

airhogger
2017-05-08, 23:14
Hey undersc0re

It looks like "kernel headers for this kernel does not seem to be installed." You should install kernel headers.

apt-get install -y linux-headers-$(uname -r)

undersc0re
2017-05-09, 00:18
Hey undersc0re

It looks like "kernel headers for this kernel does not seem to be installed." You should install kernel headers.

apt-get install -y linux-headers-$(uname -r)

Yes I tried that with this result. I might have messed up something along the way in my desperation to get something to work lol. I am not sure why it looks for those old packages, does not seem right to me. Why it trys the 4.6 I have NO idea heh, i fully updated and sources list is good....I hate to have to redo my persistence stick all over again with a new weekly image or at least the latest image because of something that seems simple...I can not tell where it tells it to look for 4.6 when it should be 4.9 I assume. Even manually installed latest linux-header and linux-image...just trys looking for 4.6 and uname shows 4.6 heh, my persistence stick must be the issue, I think its time forma redo :(

apt-get install -y linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'

Edit=
Grabbed the latest weekly image and did up a new persistence stick and it works great now!

kcdtv
2017-05-09, 13:34
Guys!
I have been trying with the drivers from the new branch from astsam .
And everything is going more smoothly both in managed and monitor mode.
The drivers are not the one in the dkms package, you have to install them from Git Hub repository.

If you don't know how to use git hub, steps would be:
1) install git

sudo apt install git
2) download branch 5.1.5 from astsam repository

git clone -b v5.1.5 https://github.com/astsam/rtl8812au.git
3) locate your shell in the branch

cd rtl8812au
4) Complie

make
5) install

sudo make install

Before doing that make sure:
1) if you installed previously a driver from git hub, you have to erase any previous module 8112au.ko
It is located in an actualized system in

/lib/modules/4.9.0-kali4-amd64/kernel/drivers/net/wireless/
If you have a module for rtl812au there, erase it
sudo rm -r /lib/modules/4.9.0-kali4-amd64/kernel/drivers/net/wireless/8812au.ko and unload the module in case it is active
sudo modprobe -r 8812au.ko.
2) If you installed the driver with the dkms package provided by Offensive security simply use aptitude to remove it and maybe restart your computer to avoid any troubles installing version 5.1.5

sudo apt autoremove realtek-rtl88xxau-dkms && sudo systemctl reboot
You will see that with this new drivers airdoump-ng windows populate much more quickly; really at full speed.
Try them, They really worth it!
Do feedback: if they work better for you too i will reopen the bugtrack ticket to ask for upgrading the dkms package from 4.3.21 to 5.1.5

undersc0re
2017-05-09, 14:36
kcdtv, I tried your instructions and get this error, at this step. I did an uninstall of previous driver as instructed. It worked with kali's drivers before but slow like you mentioned.

I am using the latest weekly image on my persistence stick, unfortunately I updated/upgraded kali before trying your guide which seems in my case to make some driver installs get errors, and the kernel header problems pop up etc.

~/rtl8812au# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-kali4-amd64/build M=/root/rtl8812au modules
make[1]: *** /lib/modules/4.9.0-kali4-amd64/build: No such file or directory. Stop.
Makefile:1855: recipe for target 'modules' failed
make: *** [modules] Error 2

kcdtv
2017-05-09, 20:35
This is because you still don't have the linux headers ;)

sudo apt install linux-headers-amd64

Soledge
2017-05-10, 12:58
Okay, so i followed kcdtv's post to get the version 5 branch drivers installed. When I run airmon-ng it shows ??????? as my driver now. did i miss something? I'm getting the impression that something didn't install properly. the adapter has also been acting finicky. It wont turn back on if unplugged and plugged back in, and it no longercomes up with ANY Access Points in airodump-ng.
http://imgur.com/a/fmsjf

I hope somebody can help.

Update::
Flashing my system with kali image and installing drivers worked!
I had to do an os update to get headers to install.

undersc0re
2017-05-10, 20:15
This is because you still don't have the linux headers ;)

sudo apt install linux-headers-amd64

yes you were right about that, updating the headers worked this time with the brand new kali install, thx.
now I just need the adapter to work, it will see it in lsusb, I must have missed something somewhere, I will keep trying!

EDIT - Kept trying, reinstalled persistence again lol, but did not install the kali drivers first from the new blog how to this time...instead installed yours right off the bat and voila! Thanks!

kcdtv
2017-05-11, 15:09
Hi guys! :)
@ undersc0re
I think that it would have been enough just to "apt autoremove dkms" too after removing the module rtl81xxau in order to totally get rid off anything linked to the old drivers.
Glad to know that you got there!
Did you noticed too that the USB is working much more "fluently" with this drivers?
@ Soledge
If you installed the dkms package previously, try to remove dkms itself and restart your system.

Soledge
2017-05-11, 22:03
I did a kali 2017.1 flash on my pc and now things are working much better with the version 5 drivers. its still not perfect but its a lot better than before.
I hope the developer continues to work on getting things like txpower adjusting fixed. right now i think its the best driver so far.

undersc0re
2017-05-11, 22:57
Hi guys! :)
@ undersc0re
I think that it would have been enough just to "apt autoremove dkms" too after removing the module rtl81xxau in order to totally get rid off anything linked to the old drivers.
Glad to know that you got there!
Did you noticed too that the USB is working much more "fluently" with this drivers?
@ Soledge
If you installed the dkms package previously, try to remove dkms itself and restart your system.

Yes working much better! Just have to start it to monitor mode manually for things but no big deal! Thanks for the tips.

undersc0re
2017-05-16, 18:52
what is everyone getting for tx power in monitor mode using the new branch astsam drivers installed? I get 12 db as installed with no modifications after.
is it lower tx while testing so the usb is not overloaded?

TheHackingDon
2017-05-29, 08:51
[QUOTE=kcdtv;

method worked for me i am using the netgear a6100 but of course they possess the 8812au chipset, i cant set monitor mode with airmon-ng i have to set it manually in terminal, but it is working again tx mode is only 12 setting freq to 5G works as well. injection doesnt seem too good and kind of takes longer to connect back to wifi than 4.3.21 after setting mode back to managed and service network-manager start but overall it does work.

j1nxd071r
2017-06-02, 15:32
Hello there!
This issue is driving me crazy for a week now... hope you have a solution for me!
I am trying to install drivers for my brand new Alfa AWUS036ACH but I am running out of ideas here, I cant manage to make the "make" tool to work nor my dkms install.
Here is what I did so far:


Fresh kali 2017.1 install > OK
apt update > OK
uname -r > OK (4.9.0-kali3-amd64)
apt full-upgrade > OK
apt install dkms > OK
apt update > OK
apt full-upgrade > OK
git clone -b v5.1.5 https://github.com/astsam/rtl8812au.git > OK
cd rtl8812au > OK
make > FAILED:


make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-kali3-amd64/build M=/root/rtl8812au modules
make[1]: *** /lib/modules/4.9.0-kali3-amd64/build: No such file or directory. Stop.
Makefile:1855: recipe for target 'modules' failed
make: *** [modules] Error 2

apt install realtek-rtl88xxau-dkms > FAILED:


apt install realtek-rtl88xxau-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
realtek-rtl88xxau-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,522 kB of archives.
After this operation, 14.8 MB of additional disk space will be used.
Get:1 http://archive-4.kali.org/kali kali-rolling/contrib amd64 realtek-rtl88xxau-dkms all 4.3.21~20170330-0kali1 [1,522 kB]
Fetched 1,522 kB in 10s (143 kB/s)
Selecting previously unselected package realtek-rtl88xxau-dkms.
(Reading database ... 333086 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_4.3.21~20170330-0kali1_all.deb ...
Unpacking realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Setting up realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Loading new realtek-rtl88xxau-4.3.21~20170330 DKMS files...
Building for 4.9.0-kali3-amd64 4.9.0-kali4-amd64
Module build for kernel 4.9.0-kali3-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.0-kali4-amd64
Error! Bad return status for module build on kernel: 4.9.0-kali4-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/4.3.21~20170330/build/make.log for more information.

Thank you very much for your time :)

aeon4326
2017-06-05, 17:43
Hello there!
This issue is driving me crazy for a week now... hope you have a solution for me!
I am trying to install drivers for my brand new Alfa AWUS036ACH but I am running out of ideas here, I cant manage to make the "make" tool to work nor my dkms install.
Here is what I did so far:


Fresh kali 2017.1 install > OK
apt update > OK
uname -r > OK (4.9.0-kali3-amd64)
apt full-upgrade > OK
apt install dkms > OK
apt update > OK
apt full-upgrade > OK
git clone -b v5.1.5 https://github.com/astsam/rtl8812au.git > OK
cd rtl8812au > OK
make > FAILED:


make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-kali3-amd64/build M=/root/rtl8812au modules
make[1]: *** /lib/modules/4.9.0-kali3-amd64/build: No such file or directory. Stop.
Makefile:1855: recipe for target 'modules' failed
make: *** [modules] Error 2

apt install realtek-rtl88xxau-dkms > FAILED:


apt install realtek-rtl88xxau-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
realtek-rtl88xxau-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,522 kB of archives.
After this operation, 14.8 MB of additional disk space will be used.
Get:1 http://archive-4.kali.org/kali kali-rolling/contrib amd64 realtek-rtl88xxau-dkms all 4.3.21~20170330-0kali1 [1,522 kB]
Fetched 1,522 kB in 10s (143 kB/s)
Selecting previously unselected package realtek-rtl88xxau-dkms.
(Reading database ... 333086 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_4.3.21~20170330-0kali1_all.deb ...
Unpacking realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Setting up realtek-rtl88xxau-dkms (4.3.21~20170330-0kali1) ...
Loading new realtek-rtl88xxau-4.3.21~20170330 DKMS files...
Building for 4.9.0-kali3-amd64 4.9.0-kali4-amd64
Module build for kernel 4.9.0-kali3-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.0-kali4-amd64
Error! Bad return status for module build on kernel: 4.9.0-kali4-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/4.3.21~20170330/build/make.log for more information.

Thank you very much for your time :)

I tried your methods in order to set my own adapter the firs one from github didn't work as well but your 2nd method worked well when i use uname -r i get: 4.9.0-kali4-amd64 and not 3 like yours
i don't know if that's the issue but it worth trying

j1nxd071r
2017-06-06, 00:03
I tried your methods in order to set my own adapter the firs one from github didn't work as well but your 2nd method worked well when i use uname -r i get: 4.9.0-kali4-amd64 and not 3 like yours
i don't know if that's the issue but it worth trying

Second method (dkms way) should be the good one now that kali 2017.1 allows it.
Sadly for me, my uname output keeps being 4.9.0-kali3-amd64. I still have no idea how to switch to the new kernel (kali4) at this point, or how to manage to finally light the little blue light inside the wireless card.

kcdtv
2017-06-06, 16:07
. I still have no idea how to switch to the new kernel (kali4) at this point,

sudo -i && apt update && apt upgrade && apt dist-upgrade && systemctl reboot
Have a look at debian documentation from time to time for this kind of things.... I guess you did not use apt dist-upgrade

SaPra
2017-10-24, 11:03
Hi kcdtv,

I see, you are replying to everyone with passion. Thank you for that help.
Alfa awus036ach was also not getting installed on Kali (dual boot). Your last suggestion about apt dist-upgrade has possibly worked.
I repeated the dkms package installation after uninstall.
Suggestion on Kali site is this which i used:
apt update
apt install realtek-rtl88xxau-dkms


Thank you

TschuPau
2017-12-13, 14:20
Hi,
I also get the following error with the current 4.14.0-kali1-amd64 version:
...

/usr/src/linux-headers-4.14.0-kali1-common/scripts/Makefile.build:319: recipe for target '/tmp/rtl8812au/os_dep/linux/ioctl_cfg80211.o' failed
make[4]: [/tmp/rtl8812au/os_dep/linux/ioctl_cfg80211.o] Error 1
/usr/src/linux-headers-4.14.0-kali1-common/Makefile:1520: recipe for target '_module_/tmp/rtl8812au' failed
make[3]: [_module_/tmp/rtl8812au] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.0-kali1-amd64'
Makefile:1855: recipe for target 'modules' failed
make: [modules] Error 2

Thanks in advance and bye.

re4son
2017-12-14, 10:47
I've had no problems installing the dkms package today after an "apt update && apt upgrade". It installed without a hitch. Maybe run another update and try again.
Don't get too excited if you get it installed, because the driver doesn't seem to be compatible with the latest kernel versions.

You can check out this post (https://forums.kali.org/showthread.php?36814-How-to-install-AWUS036ACH-Drivers-and-getting-it-running&p=76136&viewfull=1#post76136)for a solution.
Hope that helps and please let us know how you go