PDA

View Full Version : Having a lot of problems with Nexus 7 and OTG wifi adapters



masteroc
2015-01-12, 08:15
I have nethunter up and running on my 2013 Nexus 7. The latest version was flashed on a clean kitkat flash and then updated via: apt-get update && apt-get dist-upgrade. The problems that I am having stem from what seems to be support for the external wireless adapters. I have both an Alfa AWUS036H (two of them in fact) and a Linksys WUSB54G. I have used both on a full Kali install (hence they both are functional). Its hard to be very specific as the problem seems to change with every reboot. Each adapter is recognized only sometimes and only after a reboot. I have gotten as far as a wifite WPA attack on my router with a deauth to get a handshake but it paused at that part and then hung. With both adapters sometimes they show up using airodump-ng and a few times they would go into monitor mode on mon0. Further than that it seems that after each attempt at use of the monitor mode enabled card, the kali instance would hang every time i subsequently tried to do anything using that interface and required a restart. As I said its hard to pin down specific problems since they are so transient. It just seems like there is a large problem with wireless adapters on my install of nethunter and im wondering if this is something that others have experienced (since nethunter is new I expect some bugs) or should I wipe and re-install nethunter?

Thanks for your time!

P.S. I can provide any further details that might be relevant or try and commands, I just don't really know what to include since ive tried so many different ways to fix the problem.
Also, ive tried commands both through the kali launcher interface and through the command line of the kali chroot.

skycrazy
2015-01-12, 15:56
Quick question, are you sure your otg cable is not the one at fault?

masteroc
2015-01-12, 18:18
That was the first thing I checked. I used a usb drive connected to the OTG cable which waa detected and read fine. Is there another way I should test it?

ZombieTesticle
2015-01-12, 21:51
had similar issues with my alfa, couldnt get it working. did take a step forward in updating my android version to 4.4.4; that was part of the problem, the other was my alfa(brand new) wasnt getting assigned the 8187 drivers in aircrack. got a tplink adapter and magically worked fine.

Edit:
Swearing

masteroc
2015-01-13, 03:24
Yea, tried a random D-Link adapter I had sitting around and it seems to be working just fine. Not sure if I should do a full reflash of kitkat and kali via the installer to see if I can get my Alfa working or just be happy that I found one that works and move on.

Thanks

masteroc
2015-01-13, 20:02
Well now it seems that the D-link adapter isn't recognized anymore. Out of the blue it stopped being seen at all by nethunter....back to the testing board I guess...

EJohns
2015-01-16, 17:25
I am having a similiar problem.

I bought a new TP Link WN722N, and after plugging it in, my 2013 Nexus 7 continually shuts down and reboots. Sometimes I get as far as starting WiFiLite, sometimes not.

satishsezu
2015-11-29, 12:55
I have nethunter up and running on my 2013 Nexus 7.kali_linux_nethunter_2.0_razor_lollipop and i try I used a usb drive connected to the OTG cable which waa detected and read fine but if am using tp link wn722n to chek it not power on but in lsub the driver all shown is any ide to use this ext car

satishsezu
2015-11-29, 13:03
External Wifi card TP-LINK WN722N not detected Nexus 7 2013 on i try kali_linux_nethunter_2.0_razor_lollipop image is there any idea to use THE CARD

Duane
2015-11-30, 19:02
Hey satish. Launch shell in terminal
1. Apt-get update
2. Apt-get install usbutils
3. Apt-get install pciutils
4. Apt-get install firmware-atheros
Run "ifconfig" will see wlan1
5. ifconfig wlan1 up
Your usb card will flashing
Done
Hope this help

simo#
2015-11-30, 21:35
Hey satish. Launch shell in terminal
1. Apt-get update
2. Apt-get install usbutils
3. Apt-get install pciutils
4. Apt-get install firmware-atheros
Run "ifconfig" will see wlan1
5. ifconfig wlan1 up
Your usb card will flashing
Done
Hope this help

hi i've the same problem but after execute this command the led bring up but i receive an error when i run wifite

Duane
2015-12-02, 03:44
hi i've the same problem but after execute this command the led bring up but i receive an error when i run wifite [IMG]http://postimg.org/image/c3oiae93d/
Reboot your device . Wlan1 should be with ath9k_htc driver , atheros chipset .
Launch kali shell in terminal - Do not Launch wifite.
1. Airmon-ng
#Check your wireless card wlan0 or wlan1.
bring it up to monitor mode. If it is wlan1 then
2. Airmon-ng start wlan1
#otherwise if it is wlan0 then
2. Airmon-ng start wlan0
3. Wifite
Let me know if it works.

simo#
2015-12-02, 17:39
Reboot your device . Wlan1 should be with ath9k_htc driver , atheros chipset .
Launch kali shell in terminal - Do not Launch wifite.
1. Airmon-ng
#Check your wireless card wlan0 or wlan1.
bring it up to monitor mode. If it is wlan1 then
2. Airmon-ng start wlan1
#otherwise if it is wlan0 then
2. Airmon-ng start wlan0
3. Wifite
Let me know if it works.

hi thanks for reply i've typed the command, this is the result

wsu78line
2015-12-05, 04:40
It seems the latest kernel drivers for ath9k_htc only support cfg80211 and not ioctl.
Try recompiling your kernel with CONFIG_FHANDLE and CONFIG_CFG80211_WEXT set to Y.
Worked for me - Nexus 7 (2013) & TL-WN722N.

The former removes an error shown when you use airmon_ng, and the latter enables the new kernel<->userspace system to work with the older ioctl/wext system that kismet and iwconfig use.
Don't know the downside or why there were turned off in the kali_defconfig configuration, but so far they're working for me.

BTW, this also fixed wifite looping on interface selection.

Duane
2015-12-05, 17:57
Can't see your image

simo#
2015-12-06, 21:46
so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
and i'ive also reupload the iimage at
http://postimg.org/image/ix845bzmf/

wsu78line
2015-12-07, 16:38
so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
and i'ive also reupload the iimage at
http://postimg.org/image/ix845bzmf/

It's the same as any Linux kernel compile, assuming you've ever done that. Everything is command line in Linux (Kali is recommended, I did mine on Ubuntu 5.10)
General starting point for nethunter is here: https://github.com/offensive-security/kali-nethunter/wiki/Modifying-the-Kernel

Use Git to pull a kernel source - I used BinkyBear's ElementalX 5 (https://github.com/binkybear/flo/tree/ElementalX-5.00). Git on linux is easy -

git clone https://github.com/binkbear/flo.git -b ElementalX-5.00


Then follow the directions on the first link to set up your development environment. Mostly a compiler, some libraries, and environment variables.
Run "make kali_defconfig" to setup the initial config. Then you can modify it two different ways
1) Run "make menuconfig" for a GUI. Navigate (arrow keys up and down, enter to follow a menu, space to select an option) to the options and select them, then save the new .config.
2) Open ".config" with your text editor of choice and change "is not configured" to "=y" for the two options.

Then run "make", and let the kernel compile. You will get a file called "zImage" in arch/arm/boot.


There might be a better way to install the kernel, but what I did is clone the new installer from Offensive Security (https://github.com/offensive-security/kali-nethunter/tree/newinstaller-fj)
git clone https://github.com/offensive-security/kali-nethunter -b newinstaller-fj

Go into that directory, then Anykernel2/kernels/[android version]/flo and copy the new zImage from your kernel compile into it.
In the Anykernel2 directory, run
python build.py -d flo --[android version] -k

You will get a Zip file called something like "kernel-nethunter-flo-...-.zip". Copy it to your device and install with TWRP.
Keep in mind that this install method is based off of a Git repo that isn't officially released yet, so while it worked for me YMMV.

Duane
2015-12-08, 05:59
so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
and i'ive also reupload the iimage at
http://postimg.org/image/ix845bzmf/

Picture shown your usb wireless card is wlan0.
so try : airmon-ng start wlan0
if that not work you need to reflashing Kali-linux-net-hunter using nethunter windows installer
you can download from here
http://www.mediafire.com/download/mly71xry0ya68um/Kalinethunterinstaller_v1.0.9.sfx.exe
when done follow all steps in previous posts

simo#
2015-12-08, 12:37
ok thanks now i'm try to reinstall and recompile kernel now i'm in debian 8 i use this thanks a lot

simo#
2016-01-03, 20:18
It's the same as any Linux kernel compile, assuming you've ever done that. Everything is command line in Linux (Kali is recommended, I did mine on Ubuntu 5.10)
General starting point for nethunter is here: https://github.com/offensive-security/kali-nethunter/wiki/Modifying-the-Kernel

Use Git to pull a kernel source - I used BinkyBear's ElementalX 5 (https://github.com/binkybear/flo/tree/ElementalX-5.00). Git on linux is easy -

git clone https://github.com/binkbear/flo.git -b ElementalX-5.00


Then follow the directions on the first link to set up your development environment. Mostly a compiler, some libraries, and environment variables.
Run "make kali_defconfig" to setup the initial config. Then you can modify it two different ways
1) Run "make menuconfig" for a GUI. Navigate (arrow keys up and down, enter to follow a menu, space to select an option) to the options and select them, then save the new .config.
2) Open ".config" with your text editor of choice and change "is not configured" to "=y" for the two options.

Then run "make", and let the kernel compile. You will get a file called "zImage" in arch/arm/boot.


There might be a better way to install the kernel, but what I did is clone the new installer from Offensive Security (https://github.com/offensive-security/kali-nethunter/tree/newinstaller-fj)
git clone https://github.com/offensive-security/kali-nethunter -b newinstaller-fj

Go into that directory, then Anykernel2/kernels/[android version]/flo and copy the new zImage from your kernel compile into it.
In the Anykernel2 directory, run
python build.py -d flo --[android version] -k

You will get a Zip file called something like "kernel-nethunter-flo-...-.zip". Copy it to your device and install with TWRP.
Keep in mind that this install method is based off of a Git repo that isn't officially released yet, so while it worked for me YMMV.

hello we're taking advantage of vacation time to try configyrare the kernel but i receive this error
gcc: error: unrecognized command line option ‘-munaligned-access’
gcc: error: unrecognized command line option ‘-marm’
gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
/home/simone/flo-ElementalX-5.00/./Kbuild:35: set di istruzioni per l'obiettivo "kernel/bounds.s" non riuscito
make[1]: *** [kernel/bounds.s] Errore 1
Makefile:989: set di istruzioni per l'obiettivo "prepare0" non riuscito
make: *** [prepare0] Errore 2

simo#
2016-01-07, 23:04
It seems the latest kernel drivers for ath9k_htc only support cfg80211 and not ioctl.
Try recompiling your kernel with CONFIG_FHANDLE and CONFIG_CFG80211_WEXT set to Y.
Worked for me - Nexus 7 (2013) & TL-WN722N.

The former removes an error shown when you use airmon_ng, and the latter enables the new kernel<->userspace system to work with the older ioctl/wext system that kismet and iwconfig use.
Don't know the downside or why there were turned off in the kali_defconfig configuration, but so far they're working for me.

BTW, this also fixed wifite looping on interface selection.

@wsu78line
can you help me to compile? please i have some error is three night that i try to cpmpile but i'm not able to resolve error please respond me and help please do not know what to do I would like to use Nethunter thanks - when i compile i get this error

949- set of instruction for the target -net- failed

simo#
2016-01-09, 16:55
hi i want to say that I have solved putting Android 6.0 and wifi wlan1 working properly

BeNe
2016-01-09, 19:22
@simo#
Also with a Nexus 7 (2013) & TL-WN722N ?

simo#
2016-01-10, 00:58
@simo#
Also with a Nexus 7 (2013) & TL-WN722N ?

yessss :) finally

Nexus 7 (2013) flo & TL-WN722N it is recognized as wlan1 and wifite work

i used:
--android: 6.0.1 (clean install with factory image)
--build: MMB29K
--flashed twrp lastest
--image kali:https://images.offensive-security.com/nethunter-release/nethunter-flo-marshmallow-3.0.zip

BeNe
2016-01-10, 09:02
Thats excactly what i´m failed in this nethunter build :confused:

Have also a Nexus 7 2013 but the LTE Version (deb) with a TL-WN722N and Nethuner 3.0. Same Setup as you with 6.0.1 clean install with factory image.
The WN722N is not recognized as wlan1 in the Nethunter menu and also not on the shell with wifite.

Did you changed something ? You connect the WN722N directly to you USB Port on the Nexus without a battery pack ?
Was the meaning that only the new TL-WN822N is supported in Nethunter 3.0 and the support for all other WiFi sticks are dropped.

I need to check this directly again with my WN722N.

simo#
2016-01-10, 12:19
Thats excactly what i´m failed in this nethunter build :confused:

Have also a Nexus 7 2013 but the LTE Version (deb) with a TL-WN722N and Nethuner 3.0. Same Setup as you with 6.0.1 clean install with factory image.
The WN722N is not recognized as wlan1 in the Nethunter menu and also not on the shell with wifite.

Did you changed something ? You connect the WN722N directly to you USB Port on the Nexus without a battery pack ?
Was the meaning that only the new TL-WN822N is supported in Nethunter 3.0 and the support for all other WiFi sticks are dropped.

I need to check this directly again with my WN722N.

ok there is a method to do this correct are you italian? otherwise I try to translate as best I can

BeNe
2016-01-10, 13:22
Sorry no i´m not italian :rolleyes:
Would be cool if you can try to translate it. I will also do my best to understand it.

Thanks simo# for your help!

simo#
2016-01-10, 13:59
Sorry no i´m not italian :rolleyes:
Would be cool if you can try to translate it. I will also do my best to understand it.

Thanks simo# for your help!

so ok i try:
i make a video for you:https://mega.nz/#F!wkICUDrZ!q04tvHPJrkZDs27UFIVFPQ

-power on my device normally whit no things plugged in
-wifi internal must be active connected or not
-open kali terminal
-plug onto wifi external
-digit >> ifconfig wlan1 up
-digit >> ifconfig to see if wlan1 is recognized
-launch wifite from terminal
it will be start

say me if this work for you

BeNe
2016-01-10, 17:08
Thanks for your help. But i recieve an error:

root@kali:~# ifconfig wlan1 up
wlan1: ERROR while getting interface flags: No such device
root@kali:~#

But Nethunter recognized the adapter. Here is my dmesg output:



[ 1197.523467] msm_otg msm_otg: USB exited from low power mode
[ 1197.787963] usb 2-1: new high-speed USB device number 3 using msm_hsusb_host
[ 1197.963592] usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 1197.964141] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1197.964691] usb 2-1: Product: USB2.0 WLAN
[ 1197.964965] usb 2-1: Manufacturer: ATHEROS
[ 1197.965240] usb 2-1: SerialNumber: 12345
[ 1210.541564] ch_notify on a closed smd_pkt_dev id:18
[ 1210.636230] init: Service 'sensors' (pid 4622) killed by signal 11
[ 1210.636444] init: Service 'sensors' (pid 4622) killing any children in process group
[ 1210.637237] init: Starting service 'sensors'...
[ 1215.178314] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
[ 1223.753997] wlan: [1073:E :SME] sme_FTUpdateKey: Unhandled state=0
[ 1230.208312] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
[ 1230.318756] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.319671] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.320892] bq27541_get_psp voltage_now= 4136000 uV
[ 1230.321899] bq27541_get_capacity = 92% ret= 91
[ 1230.323150] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
[ 1230.324890] bq27541_get_psp current = -205 mA
[ 1230.327789] bq27541_get_capacity = 92% ret= 91
[ 1230.329681] bq27541_get_psp voltage_now= 4136000 uV
[ 1230.331207] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
[ 1230.332519] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.335357] bq27541_get_psp current = -205 mA
[ 1230.335967] healthd: battery l=92 v=4136 t=22.2 h=2 st=4 c=0 chg= 2016-01-10 17:05:59.283198230 UTC

simo#
2016-01-10, 17:15
Thanks for your help. But i recieve an error:

root@kali:~# ifconfig wlan1 up
wlan1: ERROR while getting interface flags: No such device
root@kali:~#

But Nethunter recognized the adapter. Here is my dmesg output:



[ 1197.523467] msm_otg msm_otg: USB exited from low power mode
[ 1197.787963] usb 2-1: new high-speed USB device number 3 using msm_hsusb_host
[ 1197.963592] usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 1197.964141] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1197.964691] usb 2-1: Product: USB2.0 WLAN
[ 1197.964965] usb 2-1: Manufacturer: ATHEROS
[ 1197.965240] usb 2-1: SerialNumber: 12345
[ 1210.541564] ch_notify on a closed smd_pkt_dev id:18
[ 1210.636230] init: Service 'sensors' (pid 4622) killed by signal 11
[ 1210.636444] init: Service 'sensors' (pid 4622) killing any children in process group
[ 1210.637237] init: Starting service 'sensors'...
[ 1215.178314] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
[ 1223.753997] wlan: [1073:E :SME] sme_FTUpdateKey: Unhandled state=0
[ 1230.208312] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
[ 1230.318756] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.319671] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.320892] bq27541_get_psp voltage_now= 4136000 uV
[ 1230.321899] bq27541_get_capacity = 92% ret= 91
[ 1230.323150] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
[ 1230.324890] bq27541_get_psp current = -205 mA
[ 1230.327789] bq27541_get_capacity = 92% ret= 91
[ 1230.329681] bq27541_get_psp voltage_now= 4136000 uV
[ 1230.331207] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
[ 1230.332519] bq27541_get_psp status: Not charging ret= 0x0181
[ 1230.335357] bq27541_get_psp current = -205 mA
[ 1230.335967] healthd: battery l=92 v=4136 t=22.2 h=2 st=4 c=0 chg= 2016-01-10 17:05:59.283198230 UTC


if you type iwconfig?it appear?

BeNe
2016-01-10, 17:58
Not output about wlan1.
I will check the Nethunter irc channel about the problem.

But big thanks, simo#

waji_1990
2016-02-09, 20:14
Same Issue I also haveWN722N but does not appear when i connect it through OTG cable...im running 5.0.1 NOte3 n900. :(