i've downloaded latest kali linux (amd64) and installed it on vmware workstation 10.
after installation i upgraded kali's kernel headers to the latest version.(now i have v3.16)

apt-get update && apt-get install build-essential linux-headers-$(uname -r)

now i want to install my Alfa-AWUS036H wireless usb device to kali.
my device chipset is : rt3070. -> ralink (mediatek) company

i went to this site for download latest ver of this chip : http://www.mediatek.com/en/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/

when you check extracted files of downloded driver you see many conditions for kernel 2.4 or 2.6 versions (mean it's an old driver and i think should change some codes in that project).

please help me step by step to install my wireless usb device on kali.

i also found this thread with no help :
when should i run this command (and why rt5370sta instead of rt3070):

modprobe rt5370sta

EDIT 1 :
What did i do?

apt-get update && apt-get install build-essential linux-headers-$(uname -r)

2- go to this path /os/linux/config.mk and change these lines:


3- go to this file /os/linux/rt_linux.c and change these :

/* pOSFSInfo->fsuid = current_fsuid(); */
/* pOSFSInfo->fsgid = current_fsgid(); */

pOSFSInfo->fsuid = *(int *) & current_fsuid();
pOSFSInfo->fsgid = *(int *) & current_fsgid();

i did these changes because of some errors during make command. did i do that right?

4- make

and it's result : http://textuploader.com/o49y

5- make install

and it's result : http://textuploader.com/o49b

EDIT 2 :
My Problems :

1-after update kali's kernel headers and connect usb device to kali i have ERROR for 802.11g WLAN usb wireless driver and nothing happens.

2- after these commands

make && make install

a file is copied to /etc/Wireless/RT2870STA/RT2870STA.dat
why RT2870 instead of RT3070?
also i had many warnings about unsigned variable and some errors during installation(before step 3) and because of those warnings and errors i did step 3 and after reboot and connect usb device to kali i still have ERROR for 802.11g WLAN usb wireless driver and nothing happens.

which parts of driver's project should i change and how can i load driver?
should i load driver manually or after connect it loads auto?
should i use X86 OS and change my OS?

thanks in advane

  • holly jesus christ. i find the solution. that was my usb driver... :) – SilverLight Oct 19 '14 at 6:40

your AWUS036H shouldnt be a ralink RT2870/RT3070 chipset. you got a cheap knock off the real AWUS036H uses the Realtek RTL8187 chipset

| improve this answer | |
  • damn those people, yes it's a fake one... – SilverLight Nov 5 '14 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.