Results 1 to 3 of 3

Thread: Edimax WLAN-Stick N150 Nano EW-7811UN monitor-mode not working

  1. #1
    Join Date
    2015-Sep
    Posts
    2

    Edimax WLAN-Stick N150 Nano EW-7811UN monitor-mode not working

    Hello,
    I know that there are a lot of problems with with wifi-sticks which don't support monitor mode, but I am able to put the same adapter into monitor mode on my laptop with kali-linux 1.1.0a and 2.0. My problem now is that on my raspberry pi 2 with kali-linux 2.0 installed I can't get the adapter into monitor mode.

    Here are some of the command outputs on my laptop:

    dmesg
    Code:
    [ 1339.932739] rtl8192cu: Chip version 0x10
    [ 1339.964462] rtl8192cu: MAC address: 80:1f:02:e4:ca:af
    [ 1339.964467] rtl8192cu: Board Type 0
    [ 1339.964539] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
    [ 1339.964567] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
    [ 1339.964709] ieee80211 phy4: Selected rate control algorithm 'rtl_rc'
    [ 1339.965111] usb 2-7: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
    [ 1340.021552] rtl8192cu 2-7:1.0 wlan2: renamed from wlan1
    [ 1340.035212] rtl8192cu: MAC auto ON okay!
    [ 1340.047448] rtl8192cu: Tx queue select: 0x05
    [ 1340.419908] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
    lsusb
    Code:
    Bus 002 Device 009: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
    airmon-ng
    phy interface driver chipset
    Code:
    phy2	wlan2		rtl8192cu	Edimax Technology Co., Ltd EW-7811Un 802.11n [Realtek RTL8188CUS]
    Now the output on my pi:

    dmesg
    Code:
    [18512.897817] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
    [18512.999480] usb 1-1.5: New USB device found, idVendor=7392, idProduct=7811
    [18512.999508] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [18512.999527] usb 1-1.5: Product: 802.11n WLAN Adapter
    [18512.999544] usb 1-1.5: Manufacturer: Realtek
    [18512.999561] usb 1-1.5: SerialNumber: 00e04c000001
    [18514.253660] rtl8192cu 1-1.5:1.0 wlan1: renamed from wlan0
    [18514.298433] systemd-udevd[967]: renamed network interface wlan0 to wlan1
    lsusb
    Code:
    Bus 001 Device 007: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
    airmon-ng
    phy interface driver chipset
    Code:
    null	wlan1		rtl8192cu	Edimax Technology Co., Ltd EW-7811Un 802.11n [Realtek RTL8188CUS]

    As you can see airmon-ng can't find the phy interface for the adapter. The driver seams to be the same but for some reason the the chipset text is slightly different, but i guess thats not a problem. The lsusb output is the same. The dmesg output of my laptop mentions, that a special firmware is loaded etc. All this stuff is missing in the dmesg output of my pi. It seams, that my laptop referes to the adapter as the rtl8192cu adapter that it is, but my pi refers to it just as a general usb device.


    I think there is a problem with the drivers (it's every time a driver problem -_-). Of course I searched the internet for this "rtlwifi/rtl8192cufw_TMSC.bin" and drivers that would help me but I couldn't find anything..

  2. #2
    Join Date
    2016-Oct
    Posts
    3
    Quote Originally Posted by darkfire000 View Post
    Hello,
    I know that there are a lot of problems with with wifi-sticks which don't support monitor mode, but I am able to put the same adapter into monitor mode on my laptop with kali-linux 1.1.0a and 2.0. My problem now is that on my raspberry pi 2 with kali-linux 2.0 installed I can't get the adapter into monitor mode.

    Here are some of the command outputs on my laptop:

    dmesg
    Code:
    [ 1339.932739] rtl8192cu: Chip version 0x10
    [ 1339.964462] rtl8192cu: MAC address: 80:1f:02:e4:ca:af
    [ 1339.964467] rtl8192cu: Board Type 0
    [ 1339.964539] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
    [ 1339.964567] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
    [ 1339.964709] ieee80211 phy4: Selected rate control algorithm 'rtl_rc'
    [ 1339.965111] usb 2-7: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
    [ 1340.021552] rtl8192cu 2-7:1.0 wlan2: renamed from wlan1
    [ 1340.035212] rtl8192cu: MAC auto ON okay!
    [ 1340.047448] rtl8192cu: Tx queue select: 0x05
    [ 1340.419908] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
    lsusb
    Code:
    Bus 002 Device 009: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
    airmon-ng
    phy interface driver chipset
    Code:
    phy2	wlan2		rtl8192cu	Edimax Technology Co., Ltd EW-7811Un 802.11n [Realtek RTL8188CUS]
    Now the output on my pi:

    dmesg
    Code:
    [18512.897817] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
    [18512.999480] usb 1-1.5: New USB device found, idVendor=7392, idProduct=7811
    [18512.999508] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [18512.999527] usb 1-1.5: Product: 802.11n WLAN Adapter
    [18512.999544] usb 1-1.5: Manufacturer: Realtek
    [18512.999561] usb 1-1.5: SerialNumber: 00e04c000001
    [18514.253660] rtl8192cu 1-1.5:1.0 wlan1: renamed from wlan0
    [18514.298433] systemd-udevd[967]: renamed network interface wlan0 to wlan1
    lsusb
    Code:
    Bus 001 Device 007: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
    airmon-ng
    phy interface driver chipset
    Code:
    null	wlan1		rtl8192cu	Edimax Technology Co., Ltd EW-7811Un 802.11n [Realtek RTL8188CUS]

    As you can see airmon-ng can't find the phy interface for the adapter. The driver seams to be the same but for some reason the the chipset text is slightly different, but i guess thats not a problem. The lsusb output is the same. The dmesg output of my laptop mentions, that a special firmware is loaded etc. All this stuff is missing in the dmesg output of my pi. It seams, that my laptop referes to the adapter as the rtl8192cu adapter that it is, but my pi refers to it just as a general usb device.


    I think there is a problem with the drivers (it's every time a driver problem -_-). Of course I searched the internet for this "rtlwifi/rtl8192cufw_TMSC.bin" and drivers that would help me but I couldn't find anything..

    did you solve the problem?
    getting the same issue with mi RPI2.
    the strange thing is that i can configure it to my network and surf through it.
    bu i can not monitor it.
    i also tried it using TP-LINK wn821n dongle....
    same issue....

    the only difference is that in the driver column i get ????????? and not rtl8192cu like you do.......
    can anyone help me with this issue?

  3. #3
    Join Date
    2016-Oct
    Posts
    3
    Hi everyone,
    first of all - I GOT IT TO WORK

    after seeing that this thread got
    Replies: 1 (mine)
    Views: 1,603

    i thought that i wasnt the only one with this problem and after searching all over the web i am writing how i got it to work... hope it will help

    first of all u need a VM of kali linux (VMPlayer or Oracle VM VirtualBox <which i used> will do the trick)
    p.s change the password from toor and regenerate the ssh keys - search online how to do it it is writen where ever there is a kali distro for download..

    once you got kali running on a vm run the following commands:
    mkdir arm-stuff
    cd arm-stuff
    apt-get install git
    git clone https://github.com/offensive-securit...-build-scripts
    cd kali-arm-build-scripts
    ./build-deps.sh

    notice that when i ran this script it did not install everything i guess i has to do with dependancies or what ever.... so i wrote at the terminal one line at a time with 'apt-get install' until it installed all the build-deps
    the current list is :
    git-core gnupg flex bison gperf libesd0-dev build-essential
    zip curl libncurses5-dev zlib1g-dev libncurses5-dev gcc-multilib g++-multilib
    parted kpartx debootstrap pixz qemu-user-static abootimg cgpt vboot-kernel-utils
    vboot-utils u-boot-tools bc lzma lzop automake autoconf m4 dosfstools pixz rsync
    schedtool git dosfstools e2fsprogs device-tree-compiler libssl-dev btrfs-tools

    and libncurses5 (i am making this guide only to 32 bit systems)

    now for the fun part:
    i dont know why but the rpi2.sh script is missing a few lines that without me adding them the script did not build the image right

    so type

    nano rpi2.sh

    to edit the rpi2.sh file and at the section where it is writen
    # Kernel section. If you want to use a custom kernel, or configuration, replace
    # them in this section.
    do the following modifications:
    1. before the line "cd ${basedir}/root/usr/src/kernel" write the line:
    read -p "it is time to modify the files . . ." -n 1 -s

    2. before the line "export ARCH=arm" write the line:
    export KERNEL=kernel7

    3. instead of this lines:
    make -j $(grep -c processor /proc/cpuinfo)
    make modules_install INSTALL_MOD_PATH=${basedir}/root

    write:

    make -j $(grep -c processor /proc/cpuinfo) bcm2709_defconfig
    make-j $(grep -c processor /proc/cpuinfo) zImage modules dtbs
    make modules_install INSTALL_MOD_PATH=${basedir}/root


    now we are ready to run the script:

    ./rpi2.sh <your kernel name and version - like MyKali_1.0>

    at some point the script will stop saying:

    it is time to modify the files . . .
    <remember we added this line before>

    now at a different terminal go to
    edit /root/arm-stuff/kali-arm-build-scripts/rpi2-<your costum name>/root/usr/src/kernel/drivers/net/wireless/Kconfig
    -#source "drivers/net/wireless/rtlwifi/Kconfig"
    -source "drivers/net/wireless/rtl8192cu/Kconfig"
    +source "drivers/net/wireless/rtlwifi/Kconfig"
    +#source "drivers/net/wireless/rtl8192cu/Kconfig"

    edit /root/arm-stuff/kali-arm-build-scripts/rpi2-<your costum name>/root/usr/src/kernel/drivers/net/wireless/Makefile
    -#obj-$(CONFIG_RTLWIFI) += rtlwifi/
    +obj-$(CONFIG_RTLWIFI) += rtlwifi/


    after making this modifications return to the previous terminal and hit Enter so it will continue to run..

    thats it you go the image

    good luck

Similar Threads

  1. Replies: 0
    Last Post: 2016-08-22, 03:00
  2. Edimax EW-7811UN
    By av3 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2014-04-24, 17:39

Tags for this Thread

Posting Permissions

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