TL-WN722N-V2 icon indicating copy to clipboard operation
TL-WN722N-V2 copied to clipboard

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

Open buffermet opened this issue 6 years ago • 36 comments

$ 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.

buffermet avatar Nov 04 '17 09:11 buffermet

Please give output of ifconfig and iwconfig

abhijeet2096 avatar Nov 05 '17 11:11 abhijeet2096

@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

buffermet avatar Nov 06 '17 03:11 buffermet

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

buffermet avatar Nov 06 '17 03:11 buffermet

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.

abhijeet2096 avatar Nov 06 '17 04:11 abhijeet2096

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.

buffermet avatar Nov 06 '17 05:11 buffermet

That will be good !

abhijeet2096 avatar Nov 06 '17 05:11 abhijeet2096

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

buffermet avatar Nov 06 '17 05:11 buffermet

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

abhijeet2096 avatar Nov 06 '17 07:11 abhijeet2096

Thanks @abhijeet2096

What about mac spoofing, does that work for you?

buffermet avatar Nov 06 '17 07:11 buffermet

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

abhijeet2096 avatar Nov 06 '17 07:11 abhijeet2096

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

buffermet avatar Nov 06 '17 08:11 buffermet

Yes we can conclude that :(

abhijeet2096 avatar Nov 06 '17 16:11 abhijeet2096

Anyone going to try to add more features to this?

chaoticryptidz avatar Nov 15 '17 10:11 chaoticryptidz

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.

Dogcatfee avatar Dec 07 '17 09:12 Dogcatfee

Show the output of iwconfig with v2

mohith7548 avatar Dec 18 '17 17:12 mohith7548

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.

krusherpt avatar Dec 27 '17 16:12 krusherpt

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

nullpeter avatar Dec 30 '17 23:12 nullpeter

@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.

janlaff avatar Jan 09 '18 19:01 janlaff

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

ParanoiaSamurai avatar Apr 28 '18 16:04 ParanoiaSamurai

@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

kadolis avatar Apr 29 '18 14:04 kadolis

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

zonefame-onelove avatar Jun 13 '18 00:06 zonefame-onelove

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 ([email protected])

Ruflead avatar Jun 14 '18 11:06 Ruflead

Hi Team,

Could you please help.to enable monitor mode in parrot os using TL-WN722N Verizon 2.. I was tried so many time .

Thanks and Regards, Onelove

zonefame-onelove avatar Jun 14 '18 12:06 zonefame-onelove

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

Have you tried Dogcatfee's solution https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-349905313?

buffermet avatar Jun 14 '18 23:06 buffermet

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-349905313 ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-397470722, or mute the thread https://github.com/notifications/unsubscribe-auth/AmW3F64kWsD9xwFaNbb-rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj .

zonefame-onelove avatar Jun 15 '18 00:06 zonefame-onelove

I also have found that On Jun 15, 2018 6:12 AM, "zonefame-onelove" [email protected] wrote:

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 349905313> ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 397470722>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AmW3F64kWsD9xwFaNbb- rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-397475335, or mute the thread https://github.com/notifications/unsubscribe-auth/AmZlf2Kt58fmXbcKL80nKV1bzzSFZUlrks5t8vwDgaJpZM4QR8mj .

Ruflead avatar Jun 15 '18 01:06 Ruflead

hay where are you fromm??? On Jun 15, 2018 7:59 AM, "Ruf Lead" [email protected] wrote:

I also have found that On Jun 15, 2018 6:12 AM, "zonefame-onelove" [email protected] wrote:

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-349905313> ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-397470722>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmW3F64kWsD9xwFaNbb-rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-397475335, or mute the thread https://github.com/notifications/unsubscribe-auth/AmZlf2Kt58fmXbcKL80nKV1bzzSFZUlrks5t8vwDgaJpZM4QR8mj .

Ruflead avatar Jun 15 '18 02:06 Ruflead

Hi I am from

Kerala

On Fri, Jun 15, 2018 at 7:36 AM, Ruflead [email protected] wrote:

hay where are you fromm???

On Jun 15, 2018 7:59 AM, "Ruf Lead" [email protected] wrote:

I also have found that On Jun 15, 2018 6:12 AM, "zonefame-onelove" [email protected] wrote:

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-349905313> ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-397470722>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmW3F64kWsD9xwFaNbb-rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 397475335>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmZlf2Kt58fmXbcKL80nKV1bzzSFZUlrks5t8vwDgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-397492070, or mute the thread https://github.com/notifications/unsubscribe-auth/AmW3F4ktNucNPF27b0_nz6eXKWOLjTIWks5t8xa3gaJpZM4QR8mj .

zonefame-onelove avatar Jul 24 '18 14:07 zonefame-onelove

okh On Jul 24, 2018 8:50 PM, "zonefame-onelove" [email protected] wrote:

Hi I am from

Kerala

On Fri, Jun 15, 2018 at 7:36 AM, Ruflead [email protected] wrote:

hay where are you fromm???

On Jun 15, 2018 7:59 AM, "Ruf Lead" [email protected] wrote:

I also have found that On Jun 15, 2018 6:12 AM, "zonefame-onelove" [email protected] wrote:

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-349905313> ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-397470722>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmW3F64kWsD9xwFaNbb-rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 397475335>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmZlf2Kt58fmXbcKL80nKV1bzzSFZUlrks5t8vwDgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 397492070>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AmW3F4ktNucNPF27b0_ nz6eXKWOLjTIWks5t8xa3gaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-407435042, or mute the thread https://github.com/notifications/unsubscribe-auth/AmZlf1PbY1YwH79GlQIsK60RjOrlMKl-ks5uJzROgaJpZM4QR8mj .

Ruflead avatar Jul 24 '18 14:07 Ruflead

Hi ,

I hope this one is not working on kali linux because of the version

On Tue, Jul 24, 2018 at 8:22 PM, Ruflead [email protected] wrote:

okh On Jul 24, 2018 8:50 PM, "zonefame-onelove" [email protected] wrote:

Hi I am from

Kerala

On Fri, Jun 15, 2018 at 7:36 AM, Ruflead [email protected] wrote:

hay where are you fromm???

On Jun 15, 2018 7:59 AM, "Ruf Lead" [email protected] wrote:

I also have found that On Jun 15, 2018 6:12 AM, "zonefame-onelove" < [email protected]> wrote:

Hi Team, I had tried make command .it's throws the error.

Thanks and Regards, Onelove

On Fri 15 Jun, 2018, 5:14 AM ☯, [email protected] wrote:

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) <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-349905313> ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3# issuecomment-397470722>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmW3F64kWsD9xwFaNbb-rzaL8VyERJYNks5t8vVRgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/ issues/3#issuecomment- 397475335>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmZlf2Kt58fmXbcKL80nKV1bzzSFZUlrks5t8vwDgaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 397492070>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AmW3F4ktNucNPF27b0_ nz6eXKWOLjTIWks5t8xa3gaJpZM4QR8mj> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment- 407435042>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AmZlf1PbY1YwH79GlQIsK60RjOrlMKl-ks5uJzROgaJpZM4QR8mj>

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhijeet2096/TL-WN722N-V2/issues/3#issuecomment-407435512, or mute the thread https://github.com/notifications/unsubscribe-auth/AmW3F0l2MQRvUvDuaer2iF7Icen9VeeKks5uJzSbgaJpZM4QR8mj .

zonefame-onelove avatar Jul 24 '18 15:07 zonefame-onelove