PDA

View Full Version : Monitor Mode Problem HELP!



r0b0
2017-08-31, 17:21
main operating system is Debian 9.1

Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux

uname -v :

#1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06)

virtualized kali info :

Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux


i have use kali on vmware and i use usb wireless adaptor TP LINK TL-WN722N. wireless adapter driver is

rtl8188EUS_linux_v4.3.0.8_13968.20150417. i have installed from https://github.com/mfruba/kernel (said it was compatible with the kernel version)

Adapter have running but when i want to change usb's mode as monitor encounter this error :


#iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.

mmusket33
2017-09-01, 09:00
To r0b0

Go here and read page two the last few entries in the thread

https://forums.kali.org/showthread.php?37105-Airmon-ng-Cannot-Put-wlan0-into-Monitor-Mode/page2&highlight=WN722N

Musket Teams

r0b0
2017-09-01, 10:56
I read the page you shared. my usb adapter's version v2.

must i buy new adapter be v1 :) Must i buy adapter of version v1?

or is there another resolve? etc. new driver for v2 version? ,

_defalt
2017-09-02, 04:44
sudo airmon-ng
sudo airmon-ng check
sudo airmon-ng check kill
sudo airmon-ng start wlan0

How do you know wlan0 is the right interface for your wifi adapter? wlan0 is generally assigned to internal wifi adapter. It can be different for external one.

r0b0
2017-09-02, 15:31
sudo airmon-ng
sudo airmon-ng check
sudo airmon-ng check kill
sudo airmon-ng start wlano

How do you know wlan0 is the right interface for your wifi adapter? wlan0 is generally assigned to internal wifi adapter. It can be different for external one.

I tried the above codes

sudo airmon-ng :


PHY Interface Driver Chipset

null wlan0 r8188eu



sudo airmon-ng check :


Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to run 'airmon-ng check kill'

PID Name
1871 NetworkManager
1885 wpa_supplicant
1888 dhclient
1896 dhclient



sudo airmon-ng check kill :


Killing these processes:

PID Name
1885 wpa_supplicant
1888 dhclient



sudo airmon-ng start wlano :



PHY Interface Driver Chipset

null wlan0 r8188eu



How do you know wlan0 is the right interface for your wifi adapter? wlan0 is generally assigned to internal wifi adapter. It can be different for external one.

how do i know or change which have its wlan0 interface?
i disconnect usb adapter of pc and use iwconfig but wlan0 interface disappear

_defalt
2017-09-03, 06:55
sudo airmon-ng start wlano :


It is sudo airmon-ng start wlan0

r0b0
2017-09-03, 09:03
i use iwconfig and the mac adress appear as modem's mac adress.
i think wlan0 interface the modem's interface. how can i change with usb adapter?

_defalt
2017-09-03, 13:49
i use iwconfig and the mac adress appear as modem's mac adress.
i think wlan0 interface the modem's interface. how can i change with usb adapter?
Don't pay attention to it. wlan0 is the interface name which is automatically assigned by network-manager. Have you re-run the above commands?

r0b0
2017-09-03, 19:57
yes i tried again but same result unfortunately

1234pwn
2017-09-03, 22:12
I read the page you shared. my usb adapter's version v2.

must i buy new adapter be v1 :) Must i buy adapter of version v1?

or is there another resolve? etc. new driver for v2 version? ,

Nope must be V1 for the 722N

_defalt
2017-09-04, 10:09
yes i tried again but same result unfortunately

Can you show the output again? This time type commands correctly.

qmech
2017-09-21, 08:30
yes i tried again but same result unfortunately

This is not correct. The v2.0 chipset fully supports monitor mode. It does require installing some drivers that enable support.

https://github.com/mfruba/kernel

I followed the instructions (all three lines) and monitor mode works perfectly on my TL-WN722N v2.0 with the Realtek RTL8188EUS chipset.

Bl4ck_P4l4d1n
2017-10-07, 04:24
This is not correct. The v2.0 chipset fully supports monitor mode. It does require installing some drivers that enable support.

https://github.com/mfruba/kernel

I followed the instructions (all three lines) and monitor mode works perfectly on my TL-WN722N v2.0 with the Realtek RTL8188EUS chipset.

Kali Live encrypted persistence. It remembers my packages, not sure about the kernels.

I bought the same device (V2, apparently. When trying to "make" the drivers according to the referenced site, all I get is this:


root@kali:~/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417# make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.0-kali1-amd64/build M=/root/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules
make[1]: *** /lib/modules/4.12.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1368: recipe for target 'modules' failed
make: *** [modules] Error 2

I have run all update commands


apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade

and it swears up and down that 4.12.0-kali2-amd64 is installed, but it won't boot it.


uname -r
still shows

4.12.0-kali1-amd64

and won't budge.

So I guess the first step for me is to get Kali to boot the most recent kernel so the makefile knows where to go. But I don't know how to do this, and there doesn't appear to be an update-grub or anything. Or maybe I just misunderstand the whole shebang.

So what do I do now?

bigbiz
2017-10-07, 10:15
Kali Live encrypted persistence. It remembers my packages, not sure about the kernels.

I bought the same device (V2, apparently. When trying to "make" the drivers according to the referenced site, all I get is this:


root@kali:~/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417# make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.0-kali1-amd64/build M=/root/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules
make[1]: *** /lib/modules/4.12.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1368: recipe for target 'modules' failed
make: *** [modules] Error 2

I have run all update commands


apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade

and it swears up and down that 4.12.0-kali2-amd64 is installed, but it won't boot it.


uname -r
still shows

4.12.0-kali1-amd64

and won't budge.

So I guess the first step for me is to get Kali to boot the most recent kernel so the makefile knows where to go. But I don't know how to do this, and there doesn't appear to be an update-grub or anything. Or maybe I just misunderstand the whole shebang.

So what do I do now?

Ifconfig wlan0 down
Iwconfig wlan0 mode moniter
Ifconfig wlan0 up

Bl4ck_P4l4d1n
2017-10-07, 15:01
Ifconfig wlan0 down
Iwconfig wlan0 mode moniter
Ifconfig wlan0 up

Since my last response, I also created a new VM full install to VDI) and ran only the update commands


apt-get update
apt-get upgrade
apt dist-upgrade

And then tried to make again:


oot@kali:~/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417# make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.0-kali2-amd64/build M=/root/Desktop/kernel/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules
make[1]: *** /lib/modules/4.12.0-kali2-amd64/build: No such file or directory. Stop.
Makefile:1368: recipe for target 'modules' failed
make: *** [modules] Error 2

Response from above commands afterward:


root@kali:~# ifconfig wlan0 down
root@kali:~# iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
root@kali:~# ifconfig wlan0 up

So no dice.

In case I haven't said, thanks for the way you guys keep trying. There's got to be a way.

Bl4ck_P4l4d1n
2017-10-07, 22:52
OK, I've been talking with the guy who posted that video on getting it working. He says that the distro he used was 2017-1, NOT 2017-2. I'm in the process of getting the 2017-1 ISO now, but it's slow going as it looks like the official, verified torrent is gone and I have to use a direct link. Just in case someone can help me speed this up, or for future reference, is there anywhere to get the previous, official torrents for such times as these?

And this sure is a lousy way to try to save $15, assuming the V1 TL-WN722N is still even available.

_defalt
2017-10-08, 08:00
OK, I've been talking with the guy who posted that video on getting it working. He says that the distro he used was 2017-1, NOT 2017-2. I'm in the process of getting the 2017-1 ISO now, but it's slow going as it looks like the official, verified torrent is gone and I have to use a direct link. Just in case someone can help me speed this up, or for future reference, is there anywhere to get the previous, official torrents for such times as these?

And this sure is a lousy way to try to save $15, assuming the V1 TL-WN722N is still even available.
Nothing has much changed in 2017.2 except the kernel version. Ask that person what binaries did he install before compiling the driver from its source.

Have you installed linux-headers? sudo apt-get install linux-headers-$(uname -r)

bigbiz
2017-10-16, 08:11
When I use my usb adapter, my interface for the adapter is usually wlan1. Where my internal wifi chip is always wlan0. Try
ifconfig wlan1 down
Iwconfig wlan1 mode moniter
Ifconfig wlan1 up
If you didnt get an interface wlan1 under
the command airmon-ng. Try rfkill to see if anything is locking up your interface. Rfkill wlan1 or something like that, rfkill -h will give you better info.

Barbeek
2017-10-29, 10:22
I think problem in /lib/modules/ folder
there is only 4.12.0-kali1-64amd and we need 4.12.0-kali2-64amd, but i have no idea how to instal kali 2 module