PDA

View Full Version : Kali 2020.1 VMWARE installing Alfa AWUS036ACM



podeke2725
2020-02-02, 20:34
Hi,

I'm trying to install ALFA AWUS036ACM on Kali linux 2020.1 , I tried both vmware version of offensive security and the regular installation (running both in VMware) but I keep getting the same error when trying to do "make all / make" of any driver that I download.

The error that I can see in both installation is this:

"sh: 0: Can't open /usr/src/linux-headers-5.4.0-kali3-common/scripts/mkmakefile"

I've tried Mediatek drivers from here:
https://www.mediatek.com/products/broadbandWifi/mt7612u


I tried the instructions from here:
https://askubuntu.com/questions/178009/how-do-i-install-drivers-for-the-alfa-awus036h-usb-wireless-adapter



sudo apt-get install build-essential linux-headers-`uname -r`
cd Downloads/rtl8187L_linux_1041.0209.2012
make
sudo make install


and the following:

https://blog.alfa.com.tw/2018/09/17/awus036acm-alternative-linux-driver-information/

AK2012
2020-02-09, 16:30
I have the same issue. Did you find a solution to this yet?

Following the error message and navigating to the location - /usr/src/linux-headers-5.4.0-kali3-common/scripts I do not see any entry for "mkmakefile". This is the file that the error is referencing
I have performed and update and an upgrade and also, installed the latest headers but no luck.

raulsiles
2020-02-17, 19:57
There have been changes in Linux kernel 5.4.0 (from previous kernels, such as 5.3.0 or below). If the Makefile file you are using to run the make command is using the "SUBDIRS=" option, for example to compile an external kernel module, replace it by the "M=" option.

Example:

Replace:
...
all: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

By:
...
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules

Reason:

================= WARNING ================
'SUBDIRS' will be removed after Linux 5.3


If you are building an individual subdirectory
in the kernel tree, you can do like this:
$ make path/to/dir/you/want/to/build/
(Do not forget the trailing slash)

If you are building an external module,
Please use 'M=' or 'KBUILD_EXTMOD' instead
==========================================

Mister_X
2020-02-18, 22:38
You got the wrong driver (which is for an old 802.11g device), this is a mediatek chipset, and the driver is built in the kernel; you may just be missing the firmware, which would be indicated in dmesg (which is where any error would be logged).

lemon1924
2020-03-30, 03:39
I have the same issue. Did you find a solution to this yet?


a1 @ kali: ~ / RT3070 $ makemake -C tools
make [1]: enter the directory ?/ home / a1 / RT3070 / tools?
gcc -g bin2h.c -o bin2h
make [1]: exit the directory ?/ home / a1 / RT3070 / tools?
/ home / a1 / RT3070 / tools / bin2h
cp -f os / linux / Makefile.6 / home / a1 / RT3070 / os / linux / Makefile
make -C /lib/modules/5.4.0-kali4-686-pae/build SUBDIRS = / home / a1 / RT3070 / os / linux modules

make [1]: enter the directory ?/usr/src/linux-headers-5.4.0-kali4-686-pae?
ln: could not create symbolic link 'source': Access denied

make [3]: *** [/usr/src/linux-headers-5.4.0-kali4-common/MakefilePE12: outputmakefile] Error 1
/usr/src/linux-headers-5.4.0-kali4-common/Makefile:659: include / config / auto.conf.cmd: There is no such file or directory
make [2]: *** [/usr/src/linux-headers-5.4.0-kali4-common/Makefile:677: include / config / auto.conf.cmd] Error 2
make [1]: *** [/usr/src/linux-headers-5.4.0-kali4-common/Makefile:179: sub-make] Error 2
make [1]: exit the directory ?/usr/src/linux-headers-5.4.0-kali4-686-pae?
make: *** [Makefile: 276: LINUX] Error 2

mastpandey
2020-10-14, 05:54
I am not abele to edit the makefile. getting permission denied.

KingBennon
2020-12-05, 03:10
https://blog.alfa.com.tw/2018/09/17/awus036acm-alternative-linux-driver-information/

Darkforce16
2021-07-31, 00:58
I have the same issue. The make won't compile. Alfa says this is a plug and play after Kali 2018+, i tried on 2020.2 and it doesn't work.
does anyone have clear instructions on how to build the driver for AWUS036ACM?

Darkforce16
2021-08-03, 23:21
update: Tried kali 2021.2 using ISO install image with VMware player and device was seen by OS. however i could not get a stable connection to my wifi and keeps on disconnecting. Monitor mode does work on 5 Ghz and packet injection also works with this AWUS036ACM.

I had thought the issue was with Virtual Box, but today i re-launched the VM (Kali 2021.2), and it worked??? So this device is not stable at all, i don't recommend it. The firmware/driver from what i can tell is using mt7662, but its registered as "mt76x2u" ???

$dmesg
[ 67.435968] mt76x2u 1-1:1.0: ASIC revision: 76120044
[ 68.232048] mt76x2u 1-1:1.0: firmware: direct-loading firmware mt7662_rom_patch.bin
[ 68.232057] mt76x2u 1-1:1.0: ROM patch build: 20141115060606a
[ 68.786603] mt76x2u 1-1:1.0: firmware: direct-loading firmware mt7662.bin
[ 68.786610] mt76x2u 1-1:1.0: Firmware Version: 0.0.00
[ 68.786611] mt76x2u 1-1:1.0: Build: 1
[ 68.786612] mt76x2u 1-1:1.0: Build Time: 201507311614____
[ 73.034439] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 73.037895] usbcore: registered new interface driver mt76x2u

One thing i am noticing is that the device is super slow when connected to my Wifi. Normally i get a 30Mps and with this Alfa its 1-2 Mps. Its so slow that speedtest.net doesn't even work at times and times out. Not stable. There is a posting about using this in Linux and its "slowness", if i find it i'll share it.

DO NOT BUY THIS ALFA AWUS036ACM for Pentesting in Kali Linux (Parrot still doesn't work) ITS GARBAGE!!! My $15 TP-LINK (TL-WN722N) is 1000x better and 1/4 the price.