New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor mode not working with TP-LINK TL-WN722N (version 2) on 4.13.0-kali #3

Open
yungtravla opened this Issue Nov 4, 2017 · 33 comments

Comments

Projects
None yet
@yungtravla
Contributor

yungtravla commented Nov 4, 2017

$ uname -a
Linux Hostname 4.13.0-kali1-amd64 #1 SMP Debian 4.13.4-2kali1 (2017-10-16) x86_64 GNU/Linux

Problem:

$ ifconfig wlan1 down
$ iwconfig wlan1 mode Monitor
$ ifconfig wlan1 up
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan1 ; Invalid argument.

Monitor mode doesn't work.
It is not possible to spoof MAC either.

@yungtravla yungtravla changed the title from Problem on 4.13.0-kali1-amd64 to Problem with TP-LINK TL-WN722N (version 2) on 4.13.0-kali Nov 4, 2017

@yungtravla yungtravla changed the title from Problem with TP-LINK TL-WN722N (version 2) on 4.13.0-kali to Monitor mode not working with TP-LINK TL-WN722N (version 2) on 4.13.0-kali Nov 5, 2017

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 5, 2017

Please give output of ifconfig and iwconfig

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

@abhijeet2096 thanks for your reply

$ ifconfig
wlan1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet6 fe80::e36f:fff:fe60:e4a1  prefixlen 64  scopeid 0x20<link>
        unspec F6:12:F1:1C:06:F7-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 38665  bytes 21429 (20.9 KiB)
        RX errors 0  dropped 38598  overruns 0  frame 0
        TX packets 10  bytes 1209 (1.1 KiB)
        TX errors 0  dropped 3 overruns 0  carrier 0  collisions 0

I managed to set the interface into several modes, these were the iwconfigs:

$ iwconfig
wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iwconfig 
wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.442 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iwconfig 
wlan1mon  IEEE 802.11  Mode:Monitor  Tx-Power=12 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

The only thing that seems to be working is accessing the internet.

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 6, 2017

Hey,
When i tried for mode MONITOR my system started freezing also in that mode it only shows monitor but it doesn't work. so for monitor mode to work you have to set it in AUTO using Instruction in Readme.

after then you can write

  1. airmon-ng start
  2. airodump-ng

then you will see various networks around you.

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

The instructions don't seem complete. I'll submit a PR now.

Mode:Auto works fine, but Monitor mode doesn't.

Are you able to set your interface to Master mode?

My output:

$ ifconfig wlan1 up
$ ifconfig wlan1
wlan1: flags=3<UP,BROADCAST>  mtu 1500
        ether f6:12:f1:1c:06:f7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ iwconfig wlan1
wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ ifconfig wlan1 down
$ iwconfig wlan1 mode Monitor
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan1 ; Invalid argument.
$ ifconfig wlan1 up
$ iwconfig wlan1
wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ airmon-ng check kill
$ airmon-ng start wlan1

PHY	Interface	Driver		Chipset

phy0	wlan0		ath9k_htc	Atheros Communications, Inc. AR9271 802.11n
null	wlan1		r8188eu		 

$ airodump-ng wlan1
ioctl(SIOCSIWMODE) failed: Invalid argument
ioctl(SIOCSIWMODE) failed: Invalid argument
Error setting monitor mode on wlan1

then you will see various networks around you.

I can already see networks around me with the device, my problem is that I can't use my interface to host an AP for example.

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 6, 2017

That will be good !

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

@abhijeet2096 Are you able to set your interface to Master mode?

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 6, 2017

yes @yungtravla i was able to set MASTER mode but i can't confirm its functionality.

wlxc025e91b6c8f unassociated Nickname:"<WIFI@REALTEK>" Mode:Master Frequency=2.412 GHz Access Point: 00:38:DF:A7:97:E1 Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

Thanks @abhijeet2096

What about mac spoofing, does that work for you?

@abhijeet2096 abhijeet2096 self-assigned this Nov 6, 2017

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 6, 2017

No i wasn't able to to change mac address i used macchanger v 1.7.0

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Nov 6, 2017

So we can conclude that there are still no drivers that fully support this wifi adapter?

@abhijeet2096

This comment has been minimized.

Owner

abhijeet2096 commented Nov 6, 2017

Yes we can conclude that :(

@NamedKitten

This comment has been minimized.

NamedKitten commented Nov 15, 2017

Anyone going to try to add more features to this?

@Dogcatfee

This comment has been minimized.

Dogcatfee commented Dec 7, 2017

I currently use the TL-WN722N(V2.1) under Arch Linux x86_64 as well as ARM 32-bit. Monitor mode works for this chip under the current version of Kali 4.13 as well.

#Load modules as root
rmmod r8188eu
rmmod 8188eu
modprobe lib80211
modprobe cfg80211
insmod ./8188eu.ko
#Set monitor mode as root
ifconfig wlan0 down
iwconfig wlan0 mode Monitor

I believe that module loading may not be correctly implemented in the Makefile installers supplied by Ralink.

@mohith7548

This comment has been minimized.

mohith7548 commented Dec 18, 2017

Show the output of iwconfig with v2

@krusherpt

This comment has been minimized.

krusherpt commented Dec 27, 2017

AFAIK my research says that is a driver problem, it can't set PHY address and the lsusb doent give vendor name only the codes, I'm with the same problem.

@nullpeter

This comment has been minimized.

nullpeter commented Dec 30, 2017

@Dogcatfee - your solution worked for me on my TL-WN722N v2.1

@proman0973

This comment has been minimized.

proman0973 commented Jan 9, 2018

@Dogcatfee - I tried your solution but I got this error:

$ sudo iwconfig wlp0s20f0u1u1 mode Monitor                                                                                                                                                                                                               
    Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlp0s20f0u1u1 ; Operation not permitted.

Instead of failing due to an invalid argument error its now explicitly telling me that I'm not allowed to set that mode.

@safal2000

This comment has been minimized.

safal2000 commented Apr 28, 2018

Hello sir, does it support monitor mode in Kali Linux 4.14

@kadolis

This comment has been minimized.

kadolis commented Apr 29, 2018

@Dogcatfee i tired your soluction and this is the output i receive! ive seen it before and cant seem to insmod this without this exact same error every time!
insmod: ERROR: could not insert module 8188eu.ko: Unknown symbol in module

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jun 13, 2018

Hi I am using parrot os it's not supporting TL-WN722N V2

@Ruflead

This comment has been minimized.

Ruflead commented Jun 14, 2018

if you have enough time, you an install this driver in my parrotsec os by using my team viewer.
and active monitor mode.
I hope you understand.
And you should have enough time to make install this driver in my laptop & enable monitor mode.
just give me your gmail or knockk me in my gmail (goromkatha5@gmail.com)

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jun 14, 2018

@yungtravla

This comment has been minimized.

Contributor

yungtravla commented Jun 14, 2018

It would be better if we manage to find/create a driver/makefile that works for everyone.

Have you tried Dogcatfee's solution #3 (comment)?

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jun 15, 2018

@Ruflead

This comment has been minimized.

Ruflead commented Jun 15, 2018

@Ruflead

This comment has been minimized.

Ruflead commented Jun 15, 2018

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jul 24, 2018

@Ruflead

This comment has been minimized.

Ruflead commented Jul 24, 2018

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jul 24, 2018

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Jul 24, 2018

@Ruflead

This comment has been minimized.

Ruflead commented Jul 24, 2018

@zonefame-onelove

This comment has been minimized.

zonefame-onelove commented Oct 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment