Page 1 of 2 12 LastLast
Results 1 to 10 of 54

Thread: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04)

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    Cairo, Egypt
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04)

    This guide uses p_larbig's RT73 USB enhanced drivers instead of the serialmonkey drivers because p_larbigs's are based off of the serialmonkey drivers, but have been already patched for Injection & Fragmentation Attacks, so you can utilize aireplay-ng in Aircrack-ng to its fullest.
    The guide also helps you build and install the module with DKMS (which is natively supported in Jaunty 9.04), so that if you recompile your kernel or upgrade it later, the module will be automatically rebuilt and installed for you, by DKMS

    For more info on p_larbig's RT73 USB driver sources:
    http://homepages.tu-darmstadt.de/~p_larbig/wlan/

    Notes about this version (3.0.3) from the author's site:
    Version 3.0.3 provides kernel version 2.6.29 compatibility. It uses default kernel memory allocation for devices' private data area. This may fail on 64bit platforms (according to RaLink). In previous versions the driver allocated its own memory and hacked it into the netdev structure. This hack failed in 2.6.29 and has been removed. However, the new mode works for me quite well. Please report if any problems occur.
    The wireless card I tested this on is a DLink DWA-110 USB, the system I tested this on is a clean install of Ubuntu Jaunty 9.04 with all updates as of 17/7/2009 (including the stock kernel 2.6.28-13).

    Blacklist the mac80211-based rt73usb & rt* drivers to avoid conflicts
    create a new file in /etc/modprobe.d called blacklist-rt73.conf
    Code:
    sudo nano /etc/modprobe.d/blacklist-rt73.conf
    and paste the following in it:
    Code:
    # Blacklist rt73usb (mac80211) as it's beta and conflicts with the 
    #  stable ieee80211 based rt73 module
    blacklist rt73usb
    
    # Other modules that possibly conflict with rt73
    blacklist rt2500usb
    blacklist rt2x00lib
    blacklist rt2x00usb
    Download the latest version of the RT73 USB Enhanced Driver
    (in your home directory or in /tmp or wherever you like, it will no longer be needed after)
    Code:
    wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/rt73-k2wrlz-3.0.3.tar.bz2
    tar xjf rt73-k2wrlz-3.0.3.tar.bz2
    cd rt73-k2wrlz-3.0.3
    you should now be in the top-level directory you just extracted ( rt73-k2wrlz-3.0.3 )

    Prepare DKMS config
    create a file in rt73-k2wrlz-3.0.3 directory, called dkms.conf
    Code:
    nano dkms.conf
    and paste the following in it:
    Code:
    PACKAGE_NAME="rt73-k2wrlz"
    PACKAGE_VERSION="3.0.3"
    
    # make sure kernel is 2.6.27 or newer, just in case
    # http://homepages.tu-darmstadt.de/~p_larbig/wlan/
    BUILD_EXCLUSIVE_KERNEL="2.6.(27|28|29|[3-9][0-9])"
    
    MAKE[0]="make -C Module"
    CLEAN="make -C Module clean"
    
    BUILT_MODULE_NAME[0]="rt73"
    BUILT_MODULE_LOCATION[0]="Module"
    DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
    
    AUTOINSTALL="yes"
    Create a traball archive of the source directory (with our dkms.conf in it)
    Code:
    tar czf rt73-k2wrlz-3.0.3-dkms.tar.gz rt73-k2wrlz-3.0.3
    Load the rt73-k2wrlz tarball to DKMS source tree
    Code:
    sudo dkms ldtarball --archive=rt73-k2wrlz-3.0.3-dkms.tar.gz
    Build rt73 module with DKMS
    Code:
    sudo dkms build -m rt73-k2wrlz -v 3.0.3
    Install rt73 module with DKMS
    Code:
    sudo dkms install -m rt73-k2wrlz -v 3.0.3
    Insert you RT73 USB Wifi adapter and it should be automatically detected, and automatically configured for you by NetworkManager or WICD (whichever one you use) if you have either installed. I use NetworkManager, and it automatically detected my DLink DWA-110 USB soon after I plugged it in
    Or alternatively you could install RutilT
    Code:
    sudo apt-get install rutilt
    Author's site: http://bonrom.cbbknet.com/
    RutilT is a Gtk+2 utility for Linux that helps you configure your wireless devices. It should play nicely with the "legacy drivers" from the rt2x00 project. I initially intended to support rt2x00 itself, however due to real life constraints, I am no longer doing much development, only maintenance.
    More info on making RutilT run in startup:
    http://ubuntuforums.org/showthread.php?t=502526

    Hope this helps anyone
    Last edited by jasmineaura; October 8th, 2009 at 10:00 AM.
    Frankly, if you're connected to the internet, there's simply no excuse for this level of ignorance. It's willful. - tsm_sf on /.

  2. #2
    Join Date
    Jul 2009
    Location
    Ithaca, NY
    Beans
    1
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    This was extremely helpful and accurate. Thank you!

  3. #3
    Join Date
    Aug 2009
    Beans
    1

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Hi i am a linux nubbie when i do
    # sudo dkms build -m rt73-k2wrlz -v 3.0.3
    i get this


    Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
    does not match this kernel/arch. This indicates that it should not be built.

  4. #4
    Join Date
    Apr 2006
    Location
    UK
    Beans
    6,646
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    My Edimax EW-7318USG uses the rt73usb device.

    With the default rt73usb, I have to blacklist rt2500usb, which seems to interfere with it. However, I have found the connection to be very unstable with rt73usb.

    With this driver linked above (new RT73), my WPA router is not correctly recognised by Network Manager (seen as WEP); hence it doesn't work.

    In case anyone else wants to remove it:
    Code:
    sudo dkms remove -m rt73-k2wrlz -v 3.0.3 --all
    Last edited by ugm6hr; August 1st, 2009 at 07:31 PM.

  5. #5
    Join Date
    Jul 2009
    Location
    Cairo, Egypt
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Quote Originally Posted by ugm6hr View Post
    My Edimax EW-7318USG uses the rt73usb device.

    With the default rt73usb, I have to blacklist rt2500usb, which seems to interfere with it. However, I have found the connection to be very unstable with rt73usb.

    With this driver linked above (new RT73), my WPA router is not correctly recognised by Network Manager (seen as WEP); hence it doesn't work.

    In case anyone else wants to remove it:
    Code:
    sudo dkms remove -m rt73-k2wrlz -v 3.0.3 --all
    Wow, the detachable 4dBi High Gain Aerial Antenna on that thing looks sweet, and it supports WPA2+AES

    Anyway, this can happen a lot of times with a lot of cards with several wifi drivers.. Heck, it even happens under windows

    Try the following:

    Method 1:

    1. Try stopping Network Manager before inserting your wireless USB
    Code:
    sudo /etc/init.d/NetworkManager stop
    2. Insert your wireless USB, start Network Manager, and give it a few seconds to initiate and scan for your AP again
    Code:
    sudo /etc/init.d/NetworkManager start
    If your wireless is still not showing up as WPA, try setting it to WPA manually in Network Manager. Right click your NM tray icon, click Edit Connections, go to wireless tab, add/edit your ESSID, uncheck "connect automatically" if it was previously added, go to authentication, choose WPA manually, enter your password, then connect manually.

    If that doesn't cut it, try Method 2.

    Method 2 (special support):

    1. Install RutilT
    Code:
    sudo apt-get install rutilt
    2. Stop Network Manager
    Code:
    sudo /etc/init.d/NetworkManager start
    3. Bring up your interface (you can also do this in step #4 from within RutilT itself after you switch to priviliged mode to be able to toggle "interface up/down"
    Code:
    sudo ifconfig rausb0 up
    4. Start RutilT from the menu, or from command line `rutilt`
    5. Click the tray icon for RutilT, choose your rausb0 interface if it pops up (happens usually if you have another wifi interface built-in/connected) asking you to choose interface (it should say something like "special support" next to it)
    6. Go to the "Site Survey" tab and click scan, and see if your AP ESSID shows up with the correct Auth/Cipher..
    7. Add a profile for it, which should show up in Profiles tab, and choose that to connect to your AP with that profile (dont rembember exactly the steps, as I'm not at my laptop right now)

    Screenshots:









    Hope this helps...

  6. #6
    Join Date
    Apr 2006
    Location
    UK
    Beans
    6,646
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Quote Originally Posted by jasmineaura View Post
    Hope this helps...
    Thanks for the work. But...

    NM still only sees it as WEP, irrespective of what I try.

    Rutilt sees WPA, and connects correctly. However, the connection is even more unstable than NM + rt73usb driver

    Still looking at other options. Ralink have an RT2501 driver here: http://www.ralinktech.com/ralink/Hom...ort/Linux.html
    But this doesn't appear any better either (so far).

  7. #7
    Join Date
    Jul 2009
    Location
    Cairo, Egypt
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Quote Originally Posted by dr_jk View Post
    Hi i am a linux nubbie when i do
    # sudo dkms build -m rt73-k2wrlz -v 3.0.3
    i get this


    Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
    does not match this kernel/arch. This indicates that it should not be built.
    You're probably running too old of a kernel...

    If you still want to ignore this and try to compile it on your old kernel, comment out the BUILD_EXCLUSIVE line in /var/lib/dkms/rt73-k2wrlz/3.0.3/build/dkms.conf

  8. #8
    Join Date
    Sep 2009
    Beans
    1

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Quote Originally Posted by jasmineaura View Post
    This guide uses p_larbig's RT73 USB enhanced drivers instead of the serialmonkey drivers because p_larbigs's are based off of the serialmonkey drivers, but have been already patched for Injection & Fragmentation Attacks, so you can utilize aireplay-ng in Aircrack-ng to its fullest.
    The guide also helps you build and install the module with DKMS (which is natively supported in Jaunty 9.04), so that if you recompile your kernel or upgrade it later, the module will be automatically rebuilt and installed for you, by DKMS

    For more info on p_larbig's RT73 USB driver sources:
    http://homepages.tu-darmstadt.de/~p_larbig/wlan/

    Notes about this version (3.0.3) from the author's site:
    The wireless card I tested this on is a DLink DWA-110 USB, the system I tested this on is a clean install of Ubuntu Jaunty 9.04 with all updates as of 17/7/2009 (including the stock kernel 2.6.28-13).

    Blacklist the mac80211-based rt73usb & rt* drivers to avoid conflicts
    create a new file in /etc/modprobe.d called blacklist-rt73.conf
    Code:
    sudo nano /etc/modprobe.d/blacklist-rt73.conf
    and paste the following in it:
    Code:
    # Blacklist rt73usb (mac80211) as it's beta and conflicts with the 
    #  stable ieee80211 based rt73 module
    blacklist rt73usb
    
    # Other modules that possibly conflict with rt73
    blacklist rt2500usb
    blacklist rt2x00lib
    blacklist rt2x00usb
    Download the latest version of the RT73 USB Enhanced Driver
    (in your home directory or in /tmp or wherever you like, it will no longer be needed after)
    Code:
    wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/rt73-k2wrlz-3.0.3.tar.bz2
    tar xjf rt73-k2wrlz-3.0.3.tar.bz2
    cd rt73-k2wrlz-3.0.3
    you should now be in the top-level directory you just extracted ( rt73-k2wrlz-3.0.3 )

    Prepare DKMS config
    create a file in rt73-k2wrlz-3.0.3 directory, called dkms.conf
    Code:
    nano dkms.conf
    and paste the following in it:
    Code:
    PACKAGE_NAME="rt73-k2wrlz"
    PACKAGE_VERSION="3.0.3"
    
    # make sure kernel is 2.6.27 or newer, just in case
    # http://homepages.tu-darmstadt.de/~p_larbig/wlan/
    BUILD_EXCLUSIVE_KERNEL="2.6.(27|28|29|[3-9][0-9])"
    
    MAKE[0]="make -C Module"
    CLEAN="make -C Module clean"
    
    BUILT_MODULE_NAME[0]="rt73"
    BUILT_MODULE_LOCATION[0]="Module"
    DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
    
    AUTOINSTALL="yes"
    Create a traball archive of the source directory (with our dkms.conf in it)
    Code:
    tar czf rt73-k2wrlz-3.0.3-dkms.tar.gz rt73-k2wrlz-3.0.3
    Load the rt73-k2wrlz tarball to DKMS source tree
    Code:
    sudo dkms ldtarball --archive=rt73-k2wrlz-3.0.3-dkms.tar.gz
    Build rt73 module with DKMS
    Code:
    sudo dkms build -m rt73-k2wrlz -v 3.0.3
    Install rt73 module with DKMS
    Code:
    sudo dkms install -m rt73-k2wrlz -v 3.0.3
    Insert you RT73 USB Wifi adapter and it should be automatically detected, and automatically configured for you by NetworkManager or WICD (whichever one you use) if you have either installed. I use NetworkManager, and it automatically detected my DLink DWA-110 USB soon after I plugged it in
    Or alternatively you could install RutilT
    Code:
    sudo apt-get install rutilt
    Author's site: http://bonrom.cbbknet.com/
    More info on making RutilT run in startup:
    http://ubuntuforums.org/showthread.php?t=502526

    Hope this helps anyone

    sorry for Asking guys...
    im new in linux...
    im using linksys wusb54gc that using RT2573 chipset...
    can i use all this commands in backtrack 4 beta??
    im completely noob in this!!!
    thanks 4 ur help guys...
    im really appreciate it...

  9. #9
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    anyone tried this in 2.6.31 kernel? (karmic maybe?)
    does it still work?
    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

  10. #10
    Join Date
    Jul 2009
    Location
    Cairo, Egypt
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ralink RT73 USB Wifi Driver (patched for injection & frag) + DKMS in Jaunty (9.04

    Quote Originally Posted by Gourgi View Post
    anyone tried this in 2.6.31 kernel? (karmic maybe?)
    does it still work?
    From my post #13 above, if you cared to read it at all:

    For it to compile on Kernel 2.6.29, 2.6.30, etc.., in case you custom compile 2.6.30 like I did, you need to make sure you have the following kernel config option enabled:

    "Networking Options" -> "Enable older network device API compatibility"
    Code:
    CONFIG_COMPAT_NET_DEV_OPS=y
    So it *should* work in 2.6.31, since I've tested it with 2.6.30 with the above added kernel config option.

    If you're running a generic 2.6.31 kernel in karmic, check to see if it is enabled by default. For instance:

    Code:
    grep CONFIG_COMPAT_NET_DEV_OPS /boot/config-2.6.31-10-generic
    If it's not in there, then you will have to compile a new kernel to add it.
    See: https://help.ubuntu.com/community/Kernel/Compile
    and: http://blog.avirtualhome.com/2009/09...aunty-revised/

    Good luck..
    Last edited by jasmineaura; September 23rd, 2009 at 01:19 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •