Install ALFA AWUS036NHR – chipset RTL8188RU – compat-wireless driver on Backtrack 5

ALFA AWUS036NHR – chip RTL8188RU – compat-wireless driver.

— Tested on Backtrack 5 R1 Gnome 32 & 64bit fresh install:
— Upgrade:

apt-get update
apt-get dist-upgrade
apt-get autoremove

— Prepare kernel sources:

cd /usr/src/linux
cp -rf include/generated/* include/linux/
ln -s /usr/src/linux /lib/modules/
apt-get install linux-headers
ln -s /usr/src/linux-headers- /usr/src/linux-source-

— Build and install drivers:

cd /usr/src/
tar jxpf compat-wireless-2011-10-06.tar.bz2
tar xpf 2.6.39.patches.tar
cd compat-wireless-2011-10-06
patch -p1 < ../patches/mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
patch -p1 < ../patches/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < ../patches/zd1211rw-2.6.28.patch
patch -p1 < ../patches/ipw2200-inject.2.6.36.patch
make install

— I don’t want udev persistent rules on my cards…

mv /lib/udev/write_net_rules ~
mv /etc/udev/rules.d/70-persistent-net.rules ~

— Unplug AWUS036NHR and any other if present


— Test it: (I have two wlan, wlan1 is ALFA AWUS036NHR, wlan0 is the one I’ll use to determine which attacks it supports)


— Plug in AWUS036NHR

airmon-ng check kill
airmon-ng start wlan0
airmon-ng start wlan1 (just to be shure it works even in monitor mode)
aireplay-ng -9 -i mon0 wlan1

–I get:
Trying broadcast probe requests…
No Answer…
Found 0 APs

Trying card-to-card injection…
Attack -0: OK
Attack -1 (open): OK
Attack -1 (psk): OK
Attack -2/-3/-4/-6: OK
Attack -5/-7: OK
Injection is working!


Note: I’ve edited with latest compat-wireless version and added linux-headers with a link to Module.symvers, it was needed:
WARNING: Symbol version dump /usr/src/linux-source-Β is missing; modules will have no dependencies and modversions. feel free to check if it is ok

Note2: After this upgrade, “FRITZ!WLAN USB STICK N”, (based on Atheros AR9170 Chipset, using carl9170 driver) stop load his firmware. So.. download newer “carl9170-1.fw” (now is 1.9.4) from here in “/lib/firmware” and it will load

41 thoughts on “Install ALFA AWUS036NHR – chipset RTL8188RU – compat-wireless driver on Backtrack 5

  1. jazzy82slave says:

    First off, thanks for the great tut. I’ve had a headache trying to get this adapter working on BT5. One question though, does this method allow the 036nhr to enter monitor mode? I bought this adapter specifically for monitor mode, and as yet have been unable to achieve it.
    Thanks again.

  2. back2basic says:

    Monitor mode and packect injection works πŸ˜‰ have fun hacking …..

  3. LinSkyrate says:


    Thnx for a great tutorial πŸ™‚
    Is it normal to get chipset unknown in airmon-ng start wlan0?

    Hope for a good answer..


    1. back2basic says:

      I’m not @ home right now ….
      Will check it this weekend and post back here πŸ˜‰


      Here’s to outcome of mine…

      Interface Chipset Driver

      wlan0 Unknown rtl8192cu – [phy0]
      (monitor mode enabled on mon0)

  4. jackin4 says:

    thanks for this useful post! I can finally get my card to inject, however during airodump-ng all my BSSIDs are not associated. Are you getting this too?

    1. back2basic says:

      I noticed that too… as soon as I have found a sollution for it I’ll post it here…

  5. tebo says:

    WARNING: Symbol version dump /usr/src/linux-source- is missing; modules will have no dependencies and modversions. feel free to check if it is ok, i got this msj, i trying to do the last steps, show me “aireplay-ng -9 -i mon0 wlan1” what should i do now?

    1. back2basic says:

      To process the last line you need 2 adapters that are compattible with backtrack 5
      mon0 is my ALFA AWUS036N
      wlan1 is the ALFA AWUS036NHR

      I don’t know whats causing the error on your system… are running the r1 or r2 ?

      1. tebo says:

        im running r1 in a virtual machine, i’ll try it to do it again and doesn’t work!, show me that same msj, do you think i should buy a compatible wireless adapter ? i have a satellite Toshiba laptop, i don’t know if my wireless card insade of computer have injection. can you give the best choice or explain me what i should do first , thanks for you time and help.

        1. back2basic says:

          If you have a couple of $$$ to spend the best thing to do is buy a wireless adapter that is 100% supported like the realtek RTL8187 chipset.
          I bought mine here but I think you’ll also find them on ebay..

          1. tebo says:

            ok thanks!

  6. Walky says:

    Hello there, thanks for this great tutorial, i started to become mad trying to connect my 036nhr.
    My computer recognize the alpha and the monitor mode works..but, as i’m always unlucky during informatics difficulties, all the injections failed with aireplay-ng -9 -i and i don’t know why…
    I’ve done all what you say, except your ending note because i don’t understand it :s
    What I should do please?

    What i get from aireplay-ng -9 -i :
    19:37:03 Trying broadcast probe requests…
    19:37:03 Injection is working!
    19:37:04 Found 20 APs

    19:37:04 Trying directed probe requests…
    19:37:04 6A:A1:D7:37:54:4D – channel: 1 – ‘SFR WiFi Public’
    19:37:10 0/30: 0%

    19 APs later==>

    19:39:05 Trying card-to-card injection…
    19:39:09 Attack -0: Failed
    19:39:13 Attack -1 (open): Failed
    19:39:17 Attack -1 (psk): Failed
    19:39:22 Attack -2/-3/-4/-6: Failed
    19:39:26 Attack -5/-7: Failed

    Many thanks for your tips πŸ™‚

    1. back2basic says:

      I use the 036NHR only for monitoring and testing.

      When I need to do some injecting I use a a RTL8187 πŸ˜‰

      1. Walky says:

        Ok! Thanxs for information! I hope I will install the RTL8187 pilot πŸ™‚ Can you tell me how have you done it please?

        1. back2basic says:

          The RTL8187 is a other wireless adapter that is 100% compatible with backtrack and doesn’t need driver installation. It works out of the box.

  7. tebo says:

    hey , hi again
    i bought my adapter card and i follow step by step and still no working! show me this mjs (ioctl(siocgififindex) failed no such device, what i should do! this is crazy! help please!

    1. back2basic says:

      Hello there,

      What adapter card did you bought ?
      can you post your outcome of you iwconfig and your airmon-ng output and I’ll try to help you.
      Please keep in mind that I’m just another user and not an expert in this.

      Kind regards,

      1. tebo says:

        i got it! thanks, πŸ™‚

  8. Yololol says:


    I get “error 2” after I type in “install” for the first time?
    Can anyone help me?

  9. Edward says:

    After I type “make”, this is whats happening!

    make -C /lib/modules/3.2.6/build M=/usr/src/compat-wireless-2011-10-06 modules
    make[1]: Entering directory `/usr/src/linux-source-3.2.6′

    WARNING: Symbol version dump /usr/src/linux-source-3.2.6/Module.symvers
    is missing; modules will have no dependencies and modversions.

    make[3]: *** No rule to make target `/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom/eeprom_93xx46.c’, needed by `/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom/eeprom_93xx46.o’. Stop.
    make[2]: *** [/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom] Error 2
    make[1]: *** [_module_/usr/src/compat-wireless-2011-10-06] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-3.2.6′
    make: *** [modules] Error 2

    Need help!

    1. back2basic says:

      Try installing the 5 r2 from Backtrack…
      It should work out of the box…


  10. Yololol says:

    Well the monitor mode sais that its working.

    1. back2basic says:

      Dunno dude sorry … I use it only to monitor network πŸ˜‰


  11. NW says:

    i’m using balcktrack 5 r2, after install the driver, i can scan the AP, and they are show up, but when i connect, it always say bad password, i try on couple different Ap, all some error, when i refresh the list, then it say no wireless network card.

    please help

    1. back2basic says:

      I normally only use it to monitor networks.
      Haven’t tried connecting to one…

      I’ll try to find a solution for it ..

  12. Boris The Blade says:

    It seems to work for in monitor mode fine for me but when i try to connect to a nearby AP i can usally connect to it will not connect.
    is there any new drivers that would specifically make browsing the internet etc possible?
    This would be a great card if it could only connect to AP properly.
    Your help would be appreciated πŸ™‚

  13. Boris The Blade says:

    Oh btw im using my alfa awus 036 nhr on Backtrack 5 R2 (updated)
    Is there possibly a new driver i cant find?

  14. xerxer says:

    Hey, its working out of the box with bt5 r2 :))))
    monitoring mode etc.

    only the APs of the connect clients appears (not associated) help pls ? :S

  15. Tony says:

    Hi, I’m trying to install this driver in backtrack 5 r2 on VMware player since it has no wireless chipset adapter and I can’t get pass prepare-kernel-sources. I type in cd /usr/src/linux and it says “no such file or directory” how do you create it ?

    1. back2basic says:

      It should work out of the box on BT 5 r2.

      If you have problems updating BT5 connect a lan from your pc to the virtual machine πŸ˜‰

      1. Dwayne says:

        Im having a problem with my alfa awus036nhr….I from Jamaica where hacking a wifi network password is totally legal but when im using the lastest version of ALFA adapter which is the 036nhr im getting alot of erros….im using BT5 which i havnt loaded on my windows 7 pc i boot BT5 from the boot CD method….could u please tell me if there is a way to get my 036nhr work or is there a version of Back track that is compatible with the ALFA 036nhr so i can crack some wpa password for internet access or is it a case where im gonna have to purchase a different ALFA Adapter…..Thanks in advance for your any assistance

  16. Alfred says:

    Hey back2basic

    I am running ubuntu and all I want to do is increase tx-power to 33 dbm or at least 30. It errors out if I try to set it to anything over 20 which I believe is 5% of the stated power. Do you know how I can fix this? I’ll install Backtrack if I have to. Any help would be greatly appreciated!

    1. Carlo Marks says:


      I just happened upon this very old thread while looking for data on the Alfa AWUS036NHR.

      In order to change tx power, you first need to change the iw reg to a regulatory domain where <20 dbm is permitted. The Linux kernel BT5 is based on has all country presets.

      Bolivia is a good choice:
      iw reg set BO

      I'm sure you live in Bolivia and your card is just not yet properly configured : – )


  17. remus says:

    make -C /lib/modules/3.2.6/build M=/usr/src/compat-wireless-2011-10-06 modules
    make[1]: Entering directory `/usr/src/linux-source-3.2.6′

    WARNING: Symbol version dump /usr/src/linux-source-3.2.6/Module.symvers
    is missing; modules will have no dependencies and modversions.

    make[3]: *** No rule to make target `/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom/eeprom_93xx46.c’, needed by `/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom/eeprom_93xx46.o’. Stop.
    make[2]: *** [/usr/src/compat-wireless-2011-10-06/drivers/misc/eeprom] Error 2
    make[1]: *** [_module_/usr/src/compat-wireless-2011-10-06] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-3.2.6′
    make: *** [modules] Error 2

  18. MD says:


    Hoping to get a response still here even when this is quite the necro. Any chance you could remake this guide for BT5 R3? I got myself the AWUS036NHR with all the drivers on the disk (and same ones online), but getting it working on BT5 R3 seems to be quite troublesome…

    Kind regards!

  19. I need long range antenna

  20. anas says:

    i have alfa awus 036nhr but i don’t know how can i do this command in back track 5r3 any one can help me plz thank’x

  21. mr dude says:

    Great tut dude.
    Could u possibly update it for the awus036nhr v.2? and kali linux instead of bt5? that would be cool.

  22. tjedude says:

    I second the request of “mr dude” to get v2 working out of the box with Kali linux. I want to ask also if the chipset RTL8188RU supports promiscuous mode.

    1. back2basic says:

      I don’t know if it possible on the v2… I don’t own one so I can’t tell you…
      I could see ifIi can pushase one in the future.. but don’t count on it in a short term..

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.