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:
Code:

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

— Prepare kernel sources:
Code:

prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/
ln -s /usr/src/linux /lib/modules/2.6.39.4/build
apt-get install linux-headers
ln -s /usr/src/linux-headers-2.6.39.4/Module.symvers /usr/src/linux-source-2.6.39.4/Module.symvers

— Build and install drivers:
Code:

cd /usr/src/
wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2011-10-06.tar.bz2
tar jxpf compat-wireless-2011-10-06.tar.bz2
wget http://www.backtrack-linux.org/2.6.39.patches.tar
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
make install

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

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

— Unplug AWUS036NHR and any other if present
Code:

reboot

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

iwconfig

— Plug in AWUS036NHR
Code:

iwconfig
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!

Enjoy…

Note: I’ve edited with latest compat-wireless version and added linux-headers with a link to Module.symvers, it was needed:
Code:
WARNING: Symbol version dump /usr/src/linux-source-2.6.39.4/Module.symversΒ 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 http://linuxwireless.org/en/users/Drivers/carl9170 in “/lib/firmware” and it will load

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

  1. 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. HI,

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

    Hope for a good answer..

    Regards
    Skyrate

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

      EDIT:

      Here’s to outcome of mine…

      Interface Chipset Driver

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

  3. 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?

  4. WARNING: Symbol version dump /usr/src/linux-source-2.6.39.4/Module.symvers 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. 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. 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. 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 http://hakshop.com but I think you’ll also find them on ebay..

  5. 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. I use the 036NHR only for monitoring and testing.

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

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

        1. 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.

  6. 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!
    thanks

    1. 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,
      back2basic

  7. I AM GETTING SOME WIERD PROBLEM!

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

  8. 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!

  9. Well the monitor mode sais that its working.
    BUT THE WIFI ISN’T WORKING! HOW DO I GET THAT TO WORK?!

  10. 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. I normally only use it to monitor networks.
      Haven’t tried connecting to one…

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

  11. 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 πŸ™‚

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

  13. 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

  14. 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. 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. 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

  15. 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. Alfred,

      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 : – )

      Carlo

  16. 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

  17. Hi,

    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!

  18. 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

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

  20. 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. 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 *

*