Results 1 to 8 of 8

Thread: MediaTek USB Wireless Card - Looking for Support

  1. #1
    Join Date
    2013-Jul
    Location
    United States
    Posts
    520

    MediaTek USB Wireless Card - Looking for Support

    So I recently bought one of those generic eBay USB network cards which is available here: http://www.ebay.com/itm/New-802-11n-...item4869d1d3bd
    I bought it because it is not as shady as using an Alfa card in public and its a bit more convenient. The problem is, it is using a MediaTek chipset which does not appear to be supported out of the box. I tested the device on Windows 8.1 64-bit and the little guy pulls in some good signals for its cheap price and small size. The device is not recognized in airmon-ng etc.

    -I am using Kali 1.1.0 64-bit
    -VirtualBox install

    lsusb - Notice how it labels the device as Ralink
    Code:
    root@Kali:~# lsusb
    Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    lsusb detailed information
    Code:
    root@Kali:~# lsusb -D /dev/bus/usb/001/002
    Device: ID 148f:7601 Ralink Technology, Corp. 
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.01
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      idVendor           0x148f Ralink Technology, Corp.
      idProduct          0x7601 
      bcdDevice            0.00
      iManufacturer           1 MediaTek
      iProduct                2 802.11 n WLAN
      iSerial                 3 1.0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           74
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              160mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           8
          bInterfaceClass       255 Vendor Specific Class
          bInterfaceSubClass    255 Vendor Specific Subclass
          bInterfaceProtocol    255 Vendor Specific Protocol
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x84  EP 4 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x85  EP 5 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x08  EP 8 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x04  EP 4 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x05  EP 5 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x06  EP 6 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x07  EP 7 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x09  EP 9 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
    Device Status:     0x0000
      (Bus Powered)
    I havent been able to find anywhere that lists the exact chipset, but I think it may be the MT7601U, based on my Wikidevi search: https://wikidevi.com/wiki/MediaTek

    Many sources say that it is very similar to the RT2870: http://www.arnelborja.com/compiling-...ver-in-fedora/

    I have also tried compiling MediaTek's official drivers: http://www.mediatek.com/en/downloads/mt7601u-usb/ but apparently Kali's kernel version is too new. I have also seen a few patches: https://github.com/porjo/mt7601 but haven't had much success.

    There doesn't seem to be much linux support (specifically monitor + injection etc.) so I decided I'd post here. I'd really love to see this working and it has pretty dang good range for $5 and its nice and compact. I can grab more info if you'd like, just let me know. Thanks
    Last edited by soxrok2212; 2015-04-25 at 18:56.

  2. #2
    Join Date
    2013-Jul
    Posts
    843
    To Soxrox2212

    Only wish to note that our Android Mobile Phone uses Media Tek. The only mac changer that worked on a rooted phone was ChameleMAC. We tried all sorts of methods to include rewriting in hex but nothing worked till we found this program. Possibly writing the author of this apk might generate some leads.

    MTeams

  3. #3
    Join Date
    2015-Mar
    Posts
    19
    Use zanti or pry fi change mac

  4. #4
    Join Date
    2013-Jul
    Location
    United States
    Posts
    520
    I'm looking for monitor mode support with injection... not mac changing XD

  5. #5
    Hi soxrok2212,

    Mediatek's site is a bit messy since they show wrong Released Notes for the actual drivers:
    page http://www.mediatek.com/en/downloads/mt7610u-usb/
    release note [20130725] DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 Version: v3.0.0.4
    downloaded driver http://www.mediatek.com/AmazonS3/Dow...130916.tar.bz2

    page http://www.mediatek.com/en/downloads/mt7601u-usb/
    release note [20130916] mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2 Version: v3.0.0.2
    downloaded driver http://www.mediatek.com/AmazonS3/Dow...130913.tar.bz2


    I believe this might be your type of wlan card with that mt7601u chipset:
    http://en.ogemray.com/goods/detail/59.htm

    They have linux drivers (yours is mt7601Usta) that also include some nice (confidential) programming guides from Mediatek:
    http://en.ogemray.com/include/upload...01%20linux.zip

    Try this modded drivers from kuba-moo:
    https://github.com/kuba-moo/mt7601u

    Also be sure to check out this guy saltwaterc that started a database on wlan cards and chipsets supporting injection with aircrack suite
    https://saltwaterc.github.io/aircrack-db/

    Other tips:
    - always try to make clean installs
    - blacklist modules unneeded or conflictual
    - run Kali live or try other virtual software like VMWare since VirtualBox might be troublesome with usb devices

  6. #6
    Join Date
    2013-Jul
    Location
    United States
    Posts
    520
    Quote Originally Posted by reversetheg@p View Post
    Hi soxrok2212,

    Mediatek's site is a bit messy since they show wrong Released Notes for the actual drivers:
    page http://www.mediatek.com/en/downloads/mt7610u-usb/
    release note [20130725] DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 Version: v3.0.0.4
    downloaded driver http://www.mediatek.com/AmazonS3/Dow...130916.tar.bz2

    page http://www.mediatek.com/en/downloads/mt7601u-usb/
    release note [20130916] mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2 Version: v3.0.0.2
    downloaded driver http://www.mediatek.com/AmazonS3/Dow...130913.tar.bz2


    I believe this might be your type of wlan card with that mt7601u chipset:
    http://en.ogemray.com/goods/detail/59.htm

    They have linux drivers (yours is mt7601Usta) that also include some nice (confidential) programming guides from Mediatek:
    http://en.ogemray.com/include/upload...01%20linux.zip

    Try this modded drivers from kuba-moo:
    https://github.com/kuba-moo/mt7601u

    Also be sure to check out this guy saltwaterc that started a database on wlan cards and chipsets supporting injection with aircrack suite
    https://saltwaterc.github.io/aircrack-db/

    Other tips:
    - always try to make clean installs
    - blacklist modules unneeded or conflictual
    - run Kali live or try other virtual software like VMWare since VirtualBox might be troublesome with usb devices
    Awesome thanks! I'll give it a go.

    -Update: Unfortunately, the new drivers need kernel 3.19 and Kali is currently on 3.18.... I'll have to wait a bit longer because I get compiling errors :P Looks very promising though! And just in case you were wondering:
    Code:
    root@Kali:~/mt7601u-master# make
    make -C /lib/modules/`uname -r`/build M=$PWD
    make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-amd64'
      CC [M]  /root/mt7601u-master/main.o
    /root/mt7601u-master/main.c:21:2: error: #error Your kernel is too old, please upgrade to at least 3.19
    /root/mt7601u-master/main.c:412:2: error: initialization from incompatible pointer type [-Werror]
    /root/mt7601u-master/main.c:412:2: error: (near initialization for ‘mt7601u_ops.sw_scan_start’) [-Werror]
    /root/mt7601u-master/main.c:413:2: error: initialization from incompatible pointer type [-Werror]
    /root/mt7601u-master/main.c:413:2: error: (near initialization for ‘mt7601u_ops.sw_scan_complete’) [-Werror]
    /root/mt7601u-master/main.c:416:2: error: unknown field ‘sta_rate_tbl_update’ specified in initializer
    /root/mt7601u-master/main.c:416:2: error: initialization from incompatible pointer type [-Werror]
    /root/mt7601u-master/main.c:416:2: error: (near initialization for ‘mt7601u_ops.get_survey’) [-Werror]
    cc1: all warnings being treated as errors
    make[4]: *** [/root/mt7601u-master/main.o] Error 1
    make[3]: *** [_module_/root/mt7601u-master] Error 2
    make[2]: *** [sub-make] Error 2
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali3-amd64'
    make: *** [default] Error 2
    Last edited by soxrok2212; 2015-05-04 at 16:59.

  7. #7
    Join Date
    2016-Jan
    Posts
    2
    This might help.

    1. Update repository list
    vim /etc/apt/sources.list
    #add repository and source repository
    #for e.g. of Kali 2
    deb http://http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security sana/updates main contrib non-free
    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    2. apt-get update
    3. apt-get install linux-headers-$(uname -r) build-essential git
    4. git clone https://github.com/porjo/mt7601.git
    5. cd mt7601/src
    6. make clean
    7. make
    8. make install
    9. mkdir -p /etc/Wireless/RT2870STA/
    10.mkdir -p /etc/Wireless/RT2870STA/
    11.cp RT2870STA.dat /etc/Wireless/RT2870STA/
    12.modprobe mt7601Usta

    *run command in root mode or use sudo

  8. #8
    Join Date
    2016-May
    Posts
    1
    I am running 32 bit Kali. I have tried a number of sites for installing this adapter, but so far all of them are 64 bit. do any of these sites, or any others, have code for compiling a 32 bit version? Thanks.

Similar Threads

  1. Wireless authentication required after setting wireless card to monitor
    By TheRussianBear in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-09-15, 21:10
  2. Replies: 0
    Last Post: 2013-11-27, 08:38

Posting Permissions

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