• home
  • drivers & patch
  • tutorials
  • pentest-tools
  • wordlists
    • wordlists-tools
  
Tweet My status    Share

ALFA-­AWUS036H - ALFA-­AWUS050NH
Installing drivers RTL8187, r8187, rt2800usb on Ubuntu Intrepid & Jaunty

Driver RTL8187/Stacks mac80211 (ref. ALFA-AWUS036h WiFi card)

These wireless drivers, for surfing Internet, are more stable than r8187, and fully compatible with Network-Manager installed by default on Ubuntu 9.04/9.10 and 10.04.

Supports all WiFi encryption without problems. (open, wep and wpa/wpa2)

With Compat-Wireless, the "injection" working, but for support "Fragmentation Attack" (opt. -5) you need to install mac80211 fragmentation patch.

The RX sensitivity and packet injection is less, related to drivers r8187/ieee80211.

Driver r8187/Stacks-ieee80211 (ref. ALFA-AWUS036h WiFi card)

This wireless driver is recommended for use with the Suite of Aircrack-ng, but not particularly suitable for ADSL Internet Connections, as less stable and discontinuous at regular intervals.

The r8187 is compatible with Network-Manager 0.7, installed by default on Ubuntu 9.04, and supporting the Wireless encryption OPEN and WEP (not WPA/WPA2)

To establish Internet connections with your WiFi Access Point (ADSL router) using WPA/WPA2 encryption, require manual configuration of Wpa_Supplicant.

The "injection" and all "attacks" of Aireplay-ng, are supported after installing the appropriate "patch".

Driver rt2800usb/Stacks mac80211 (ref. ALFA-AWUS050NH)

This driver is NOT fully supported but with Compat-Wireless, the "injection" work partially and supported 4 "attacks" of Aireplay-ng.

Compatible with "Macchanger".

The RX sensitivity and packets injection is less, related to ALFA-AWUS036H.

The rt2800usb at the moment do not allow Internet connection. (for this purpose use RT2870sta or RT3070sta)


Note for Ubuntu Jaunty

To establish WiFi Internet connection and surfing Internet with ALFA-AWUS050NH WiFi-card with rt2870sta driver, you must use the Kernel "2.6.28-11-generic #42-Ubuntu", without change or updates the drivers modules or use Ralink utility.

Update your OS and install these ESSENTIAL and recommended package

NOTE: Before continuing, make sure NOT to be active in Synaptic the Repositories "Proposed" and "Backports"

Code:
sudo dpkg --configure -a && sudo apt-get install -f && sudo apt-get update
Code:
sudo apt-get install linux-headers-$(uname -r) build-essential make patch subversion openssl libssl-dev zlib1g zlib1g-dev libssh2-1-dev libnl1 libnl-dev gettext autoconf tcl8.5 libpcap0.8 libpcap0.8-dev python-scapy python-dev cracklib-runtime macchanger-gtk tshark ethtool
Install/update "IW"
(Wireless Configuration Utility for drivers based on Stacks-mac80211)

[Firt option] Install iw from Ubuntu Repository

Code:
sudo apt-get install iw

[RECOMMENDED OPTION] Alternatively compiling the latest version available from IW source

Code:
sudo mkdir /usr/src/drivers && cd /usr/src/drivers
sudo wget http://kernel.org/pub/software/network/iw/iw-3.10.tar.bz2 -O - | sudo tar -jxv
cd iw*
sudo make && sudo make install
Install RT28XX/RT30XX USB series (RT2870/RT2770/RT3572/RT3070) Firmware
Step ONLY for ALFA-AWUS050NH If NOT already present the RT2870 Firmware.
(not necessary on Jaunty/Karmic/Lucid because is already installed)

For check Firmware:
Code:
ls -l /lib/firmware/rt2870.bin -rw-r--r-- 1 root root 4096 2010-11-18 22:20 /lib/firmware/rt2870.bin

Download & Install Firmware RT2870_Firmware_V22
Code:
sudo unzip RT2870_Firmware_V22.zip && sudo mv RT2870_Firmware_V22/rt2870.bin /lib/firmware

NOTE: Before proceding, if installed, remove the previous version of Compat-Wireless or Backports-Modules using Synaptic or Terminal:
Code:
sudo dpkg --purge linux-backports-modules-jaunty

Installing Compat-Wireless + patch mac-80211 on Ubuntu Jaunty
(for use ALFA-AWUS050NH with rt2800usb & ALFA-AWUS036H with RTL8187 driver)

NOTE: this version of Compat-Wireless is compatible on Ubuntu Jaunty or BackTrack 4 Final
Code:
sudo cp /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist_orig.conf
echo "blacklist rtl8187" | sudo tee /etc/modprobe.d/blacklist_rtl8187.conf
echo "blacklist r8187" | sudo tee /etc/modprobe.d/blacklist_r8187.conf
echo "blacklist rt2870sta" | sudo tee /etc/modprobe.d/blacklist_rt2870sta.conf
echo "blacklist rt3070sta" | sudo tee /etc/modprobe.d/blacklist_rt3070ta.conf
echo "blacklist mac80211" | sudo tee /etc/modprobe.d/blacklist_mac80211.conf

Download & Install Compat-wireless-aircrack-alfa036h-050nh drivers

NOTE: Before removing the modules with "modprobe -r" command download the files needed, as during the installation should not be connected to the Internet or have any other card active
Code:
sudo modprobe -r rtl8187 zd1211rw iwl3945 ath5k rt73usb rt2800usb
sudo mkdir /usr/src/drivers && cd /usr/src/drivers
sudo wget http://download.aircrack-ng.org/drivers/compat-wireless-aircrack-alfa036h-050nh.tar.bz2 -O - | tar -xjv
cd compat-wireless-aircrack-alfa036h-050nh
sudo wget http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
cat mac80211_2.6.28-rc4-wl_frag+ack_v3.patch | sudo patch -Np1
sudo make && sudo make install && sudo make unload && sudo shutdown -r now

After restarting your computer, if not loaded during startup, loaded the preferred driver using "modprobe" command:

Code:
sudo modprobe driver_name

New Compat-Wireless already patched for Ubuntu Jaunty or BackTrack 4 Final
(tested with drivers rtl8187, zd1211rw, iwl3945, ath5k, rt73usb, rt2800usb)

Here are the tests: Test Compat-wireless-aircrack-jaunty-patched

Download & Install drivers Compat-wireless-aircrack-jaunty-patched
Code:
sudo modprobe -r rtl8187 zd1211rw iwl3945 ath5k rt73usb rt2800usb
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo tar -xjvf compat-wireless-aircrack-jaunty-patched.tar.bz2
cd compat-wireless-aircrack-jaunty-patched
sudo make && sudo make install && sudo make unload

Intalling driver r8187/Stacks­ ieee80211 on Ubuntu Jaunty
(or until Kernel 2.6.30)
(only for ALFA-­AWUS036H)

Installing driver r8187

IMPORTANT NOTE:
Do not make any changes to the package/driver downloaded because is already modified and patched.

Download & Install drivers r8187_linux_26.1010­-intrepid­-jaunty­-patched
Code:
sudo modprobe -r r8187 rtl8187
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo tar ­-xzvf r8187_linux_26.1010­-intrepid­-jaunty­-patched.tar.gz
sudo make
sudo make install

To load the driver and use your ALFA-AWUS036H wireless card, use this command

Code:
sudo modprobe -r rtl8187 && sudo modprobe r8187

IMPORTANT NOTE FOR THE PROPER USE

­ The drivers RTL8187 and r8187 used by ALFA­AWUS036H, works using different Stacks, (mac80211 and ieee80211) CAN NOT be used in the same time. (cause System CRASH or Kernel PANIC)
Remove and insert the "modules" with the appropriate commands.

For unload driver RTL8187/Stack ­mac80211

Code: Code:
sudo rmmod rtl8187 mac80211 cfg80211

For unload driver RTL8187/Stack ­mac80211

Code:
sudo modprobe -r rtl8187

For unload driver r8187/Stack ­ieee80211

Code:
sudo modprobe -r r8187

Or use the removal script contained in the folder of driver r8187

Code:
sudo sh /usr/src/drivers/r8187_linux_26.1010-intrepid-jaunty-patched/wlan0rmv

NOTE: Before using this script you need to make the file executable with this command.
Code:
sudo chmod +x /usr/src/drivers/r8187_linux_26.1010-intrepid-jaunty-patched/wlan0rmv

For unload driver rt2800usb, used by ALFA-­AWUS050NH

Code:
sudo modprobe -r rt2800usb

Testing with drivers already patched


TEST ALFA-AWUS036H with driver RTL8187/Stacks mac80211
    

TEST ALFA-AWUS036H with driver r8187/Stacks ieee80211 patched
    

TEST ALFA-AWUS050NH with driver RT2800usb for use Aircrack-ng
    

TEST ALFA-AWUS050NH with driver rt2870sta for Internet connections
    
Tutorial suggested
Improve the TX-Power of wireless card ALFA-AWUS036H changing the CRDA

Enjoy, Jano
Written: 22/Jun/2009
Updated: 08/May/2013
Disclaimer


Ubuntu Logo
Aircrack-ng Logo



 In this Site & Aircrack-ng


Help JanoWeb.NET pay for bandwidth

©2010-2012 JanoWeb.NET | All Rights Reserved | Terms & Policy |
Valid XHTML 1.0 TransitionalValid CSS 3Creative Commons Licenses WebSite Reputation