this post is to document the alfa AWUS050NH 802.11a/b/g/n 500mW USB adapter's compatibility with the rt2x00 (specifically rt2800usb) linux driver from compat-wireless-2.6 in backtrack 4beta
[[ that was a mouthful ]]
be advised that the AWUS050NH adapter will work just fine with the rt2870sta driver
the BT4beta rt2870sta HOWTO resides here :: http://forums.remote-exploit.org/bt4...e-working.html
I started all over, fresh install of backtrack 4beta using a mixture of pureh@te's hard drive install tutorial + Virchanza's tutorial for Hard Disk Install : Just 1 Partition
-ok, ready to go-
linuxwireless.org's documentation explains everything, really...
- grab the latest compat-wireless-2.6 from Index of /kernel/compat-wireless-2.6 -- it turned out to be exactly ::
(( I hear you can also just grab http://wireless.kernel.org/download/...ss-2.6.tar.bz2 which is supposed to be the LATEST compat-wireless-2.6 "bleeding edge compat-wireless" ))
- you need the rt2870 USB FIRMWARE from Ralink corp. | Linux
direct link to RT2870_Firmware_V8.zip with rt2870 USB firmware included = http://www.ralinktech.com.tw/data/dr...irmware_V8.zip
** we will download+extract the rt2870.bin firmware file, and move it /lib/firmware **
- root@bt:~# cd
root@bt:~# unzip RT2870_Firmware_V8.zip
(( I got some strange warnings here - mismatching "local" filename - nothing that was fatal tho ))
root@bt:~# mv RT2870_Firmware_V8/rt2870.bin /lib/firmware
root@bt:~# tar jxvf compat-wireless-2009-06-11.tar.bz2root@bt:~# ls -al /lib/firmware/rt2870.bin
-rw-r--r-- 1 root root 4096 2008-04-25 18:38 /lib/firmware/rt2870.bin
root@bt:~# cd compat-wireless-2009-06-11
root@bt:~# make clean
root@bt:~# make install
root@bt:~# make unload
root@bt:~# modprobe rt2800usb
- I grabbed the newest version of the tool "iw" straight from the iw git repository
once you get to the iw git page, near the top in the "shortlog" category, I clicked the first "snapshot" link, which downloads the latest tarball of the iw git repository!
- root@bt:~/downloads# tar vxzf iw-aea5dbd2fe8f70be333b008e64788c4b8410cbfa.tar.gz
root@bt:~/downloads# cd iw
root@bt:~/downloads/iw# mv /usr/bin/iw /usr/sbin/OLDiw--OGbt4beta <<-- allows you to backup yr old version of iw
root@bt:~/downloads/iw# make install
root@bt:~/downloads/iw# cp -p iw /usr/sbin
it t`was quite simple really ... here is some info about the driver, etc ::
this adapter supports multiple virtual interfaces (with some restrictions) from the rt2x00 forumroot@bt:~# modinfo rt2800usb
description: Ralink RT2800 USB Wireless LAN driver.
***MANY alias: usb:* here*** (soo many that i got the "too many characters to post" error)
vermagic: 220.127.116.11 SMP mod_unload 486
parm: nohwcrypt:Disable hardware encryption. (bool)
[once your card is connected via USB] ... there should already be a single interface, say "wlan0". Now you can create a new interface with the iw tool (replace "wlan1" with a name, you like):
# iw dev wmaster0 interface add wlan1 type managedYou should now be able to see the interface with "iwconfig".
Configuration and association works just like with any other interface, but be aware, that the hardware currently does not support connection to different APs or mixed AP/Client mode. Multiple interfaces are thus only helpful for "monitor" interfaces and sniffing tools.-= systems tested/tester =-Allowed interface combinations:
1 Managed + x Monitor
1 Adhoc + x Monitor
y Master + x Monitor
Where y depends on the hardware:
rt61pci/rt73usb support up to 4 virtual AP interfaces
rt2800pci/rt2800usb support up to 8 virtual AP interfaces
::: overview of test results :::
- packet injection :: using the aircrack-ng tools suite, injection works out-of-the box *NO PATCH REQUIRED* with recent compat-wireless-2.6 (rt2x00/rt2800usb) linux drivers.
- mac address changing :: you can change your MAC address successfully using "macchanger".
- monitor mode :: "airmon-ng start wlan0" -OR- "iw phy phy0 interface add mon0 type monitor"
- scanning APs :: "iw dev wlan0 scan [passive]" -OR- "iwlist wlan0 scan"
***************BT4 pre final + rt2x00/rt2800usb driver info***************
turns out BT4 pre final ships with rt2870sta by default for the Alfa AWUS050NH adapter, which DOES WORK! but if you want to use the rt2x00/rt2800usb drivers documented here (which imho work a little better for me), you will need to make small amount of changes.
- rmmod rt2870sta <<-- unloads the rt2870sta driver from memory
- echo "blacklist rt2870sta" >> /etc/modprobe.d/blacklist
- follow the document from the very top and you should have operational rt2800usb drivers in no time flat!
IF you want to go BACK to the rt2870sta drivers while still in BT4 pre final ::
- comment out "blacklist rt2870sta" by adding a # to the front of the line in /etc/modprobe.d/blacklist
sed -i 's|blacklist rt2870sta|#blacklist rt2870sta|g' /etc/modprobe.d/blacklist
- then blacklist the rt2x00/rt2800usb drivers in /etc/modprobe.d/blacklist like so ::
echo "blacklist rt2800usb
blacklist led_class" >> /etc/modprobe.d/blacklist
- then remove the rt2x00/rt2800usb drivers from memory ::
rmmod rt2800usb rt2x00usb rt2x00lib mac80211 cfg80211 rfkill_backport input_polldev led_class
- lastly, call rt2870sta driver ::