offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.5k stars 891 forks source link

Can not install TL-WN822N wifi card driver on Nethunter #442

Closed wengyingjian closed 8 years ago

wengyingjian commented 8 years ago

I flushed nethunter to cm12 on my Opo device, and bought an external wifi card TL-WN822N with an OTG. After connected the wifi card to my device, I could see Bus 001 Device 002: ID 0bda:818b Realtek Semiconductor Corp with lsusb command.

So next step is to install the right driver.

1.

I followed this tutorial: https://sites.google.com/site/easylinuxtipsproject/reserve-7#TOC-Realtek-RTL8192EU-chipset-0bda:818b-

But an error occurred:

make[1]: *** /lib/modules/3.4.67-cyanogenmod-g399b32b/build: No such file or directory.  Stop.
Makefile:1043: recipe for target 'modules' failed
make: *** [modules] Error 2

2.

So I tried to install linux-headers, with "apt-cache search linux-headers-" command, no linux-headers-3.4.67-cyanogenmod-g399b32b found. I installed linux-headers-4.0.0-kali1-all and executed 'cd /lib/modules/ && cp -r 4.0.0-kali1-armmp $(uname -r)'.

Then go back to execute ./install.sh.
Another error occurred:

/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/usb_intf.c:1977:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/usb_intf.o' failed
make[4]: *** [/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/usb_intf.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524' failed
make[3]: *** [_module_/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-kali1-armmp'
Makefile:1043: recipe for target 'modules' failed
make: *** [modules] Error 2

3.

I found the line that caused this error, and deleted that line.

New error:

/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/rtw_android.c:227:3: error: implicit declaration of function 'strnicmp' [-Werror=implicit-function-declaration]
   if(0 == strnicmp(cmdstr , android_wifi_cmd_str[cmd_num], strlen(android_wifi_cmd_str[cmd_num])) )
   ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/rtw_android.o' failed
make[4]: *** [/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/rtw_android.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524' failed
make[3]: *** [_module_/root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-kali1-armmp'
Makefile:1043: recipe for target 'modules' failed
make: *** [modules] Error 2

By google, I replaced strnicmp function with strncasecmp .

4.

Finally, the script was done, but the driver looks not installed rightly.

  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/8192eu.mod.o
  LD [M]  /root/download/driver/site.google/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/8192eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-kali1-armmp'
##################################################
Compile make driver ok!!
##################################################
Authentication requested [root] for remove driver:
rmmod: ERROR: Module 8192eu is not currently loaded
Authentication requested [root] for insert driver:
insmod: ERROR: could not insert module 8192eu.ko: Function not implemented
Authentication requested [root] for install driver:
install -p -m 644 8192eu.ko  /lib/modules/3.4.67-cyanogenmod-g399b32b/kernel/drivers/net/wireless/
/sbin/depmod -a 3.4.67-cyanogenmod-g399b32b
##################################################
The Setup Script is completed !
##################################################
binkybear commented 8 years ago

@wengyingjian - The card should work without having to compile the drivers. Check that correct kernel is installed (settings > about > kernel). Kernel should say "root@". If not try flashing again: https://idlekernel.com/nethunter/nightly/3.0.5-20160423-0528/kernel-nethunter-oneplus1-lollipop-3.0.5-20160423-0528.zip

Try:

ifconfig wlan1 up

Inside kali. If that does work look at your:

dmesg

For anything related to card. You canno't create kernel modules inside android device. It has to be done on a computer then flashed in TWRP.

wengyingjian commented 8 years ago

@binkybear I checked the kernel on my phone, and it should be correctly installed.
screenshot_2016-04-24-12-28-31

#ifconfig wlan1 up
wlan1: ERROR while getting interface flags: No such device
#iconfig -a 
dummy0    Link encap:Ethernet  HWaddr ee:b3:8d:21:f0:98
          BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:41720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:37111426 (35.3 MiB)  TX bytes:37111426 (35.3 MiB)

p2p0      Link encap:Ethernet  HWaddr c2:ee:fb:02:c7:52
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet0 Link encap:Ethernet  HWaddr a6:b7:92:f7:4a:01
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet1 Link encap:Ethernet  HWaddr d6:0b:4e:86:54:1a
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet2 Link encap:Ethernet  HWaddr e6:4c:59:61:c7:d0
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet3 Link encap:Ethernet  HWaddr 72:56:c1:49:f8:ed
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet4 Link encap:Ethernet  HWaddr 2e:aa:3a:d0:b5:83
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet5 Link encap:Ethernet  HWaddr 7e:19:5c:1c:03:31
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet6 Link encap:Ethernet  HWaddr b2:a1:48:98:ae:80
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet7 Link encap:Ethernet  HWaddr c2:3f:4f:52:b8:b8
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rev_rmnet8 Link encap:Ethernet  HWaddr 96:8c:29:67:c1:dc
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet1    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet2    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet3    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet4    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet5    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet6    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet7    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          [NO FLAGS]  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rmnet_usb0 Link encap:Ethernet  HWaddr 3a:5b:b7:c9:5f:57
          BROADCAST MULTICAST  MTU:2000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:26.26.26.1  P-t-P:26.26.26.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:30593 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:35335786 (33.6 MiB)  TX bytes:1969456 (1.8 MiB)

wlan0     Link encap:Ethernet  HWaddr c0:ee:fb:02:c7:52
          inet addr:125.106.31.76  Bcast:125.106.31.255  Mask:255.255.240.0
          inet6 addr: fe80::c2ee:fbff:fe02:c752/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1          RX packets:40888 errors:0 dropped:2 overruns:0 frame:0
          TX packets:29288 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:37743440 (35.9 MiB)  TX bytes:2916269 (2.7 MiB)
0E800 commented 8 years ago

I would confirm y.cable works by using a USB mouse as testing device. Run airmon-ng to verify the external wifi device is detected. The y.cables are very fickle.

On Sat, Apr 23, 2016, 9:33 PM 翁英健 notifications@github.com wrote:

@binkybear https://github.com/binkybear I checked the kernel on my phone, and it should be correctly installed.

[image: screenshot_2016-04-24-12-28-31] https://cloud.githubusercontent.com/assets/16009406/14765524/1dd6468e-0a18-11e6-8560-5a96ea639569.png

ifconfig wlan1 up

wlan1: ERROR while getting interface flags: No such device

iconfig -a

dummy0 Link encap:Ethernet HWaddr ee:b3:8d:21:f0:98 BROADCAST NOARP MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:41720 errors:0 dropped:0 overruns:0 frame:0 TX packets:41720 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:37111426 (35.3 MiB) TX bytes:37111426 (35.3 MiB)

p2p0 Link encap:Ethernet HWaddr c2:ee:fb:02:c7:52 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet0 Link encap:Ethernet HWaddr a6:b7:92:f7:4a:01 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet1 Link encap:Ethernet HWaddr d6:0b:4e:86:54:1a BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet2 Link encap:Ethernet HWaddr e6:4c:59:61:c7:d0 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet3 Link encap:Ethernet HWaddr 72:56:c1:49:f8:ed BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet4 Link encap:Ethernet HWaddr 2e:aa:3a:d0:b5:83 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet5 Link encap:Ethernet HWaddr 7e:19:5c:1c:03:31 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet6 Link encap:Ethernet HWaddr b2:a1:48:98:ae:80 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet7 Link encap:Ethernet HWaddr c2:3f:4f:52:b8:b8 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rev_rmnet8 Link encap:Ethernet HWaddr 96:8c:29:67:c1:dc BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet3 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet4 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet5 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet6 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet7 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 [NO FLAGS] MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet_usb0 Link encap:Ethernet HWaddr 3a:5b:b7:c9:5f:57 BROADCAST MULTICAST MTU:2000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:26.26.26.1 P-t-P:26.26.26.1 Mask:255.255.255.0 UP POINTOPOINT RUNNING MTU:1500 Metric:1 RX packets:30593 errors:0 dropped:0 overruns:0 frame:0 TX packets:24705 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:35335786 (33.6 MiB) TX bytes:1969456 (1.8 MiB)

wlan0 Link encap:Ethernet HWaddr c0:ee:fb:02:c7:52 inet addr:125.106.31.76 Bcast:125.106.31.255 Mask:255.255.240.0 inet6 addr: fe80::c2ee:fbff:fe02:c752/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40888 errors:0 dropped:2 overruns:0 frame:0 TX packets:29288 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:37743440 (35.9 MiB) TX bytes:2916269 (2.7 MiB)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/442#issuecomment-213884929

wengyingjian commented 8 years ago

@0E800 the device should be detected, because i could see the device info by lsusb command

binkybear commented 8 years ago

@wengyingjian - Looks like your kernel flashed fine. Can you send me your dmesg?

dmesg > /sdcard/dmesg.txt

Then copy it to your computer. I would like to see if it is having trouble finding your firmware/power.

You are not the first person to have issues with TL-WN822N. I know it's enabled in kernel: https://github.com/binkybear/AK-OnePone/blob/cm-12.1/arch/arm/configs/kali_defcofing#L1617 Assuming you are using version 3: https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v3

It's possible that y-cable is needed because of power draw as @0E800 mentioned.

wengyingjian commented 8 years ago

@binkybear It's the first time i have see dmesg log, it's so long ...
i tried dmesg | grep wlan and google, but still can't found the problem.
btw, my wifi card is TL-WN822N-v4.0
thanks
dmesg.txt

jcadduono commented 8 years ago

RTL8192EU is not covered by RTL8192CU drivers.

As you can see here, this is the device ID table in RTL8192CU drivers: https://github.com/binkybear/AK-OnePone/blob/cm-13.0-caf/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c#L261

Your device, which is 818b, is not located anywhere in the supported device IDs and even if added would not likely be able to start using the CU driver.

The driver which you are compiling is targeted to Linux 4.2 and newer, and you would need to backport it all the way to Linux 3.4 and compile it in the OnePlus One kernel source trees/headers, not the Kali kernel source trees/headers.

It does not appear to have been added in Linux 4.5 either, so perhaps not the best adapter to go with... :) Might I recommend an Alfa Networks AWUS036NEH?

wengyingjian commented 8 years ago

@jcadduono thanks, i am trying a new wifi card.

wengyingjian commented 8 years ago

I tried a new wifi card, and it works。 thanks

Neto commented 8 years ago

wengyingjian

I'm having the same problem here. What wifi card your I using now?

wengyingjian commented 8 years ago

@Neto TL-WN7222N