M
M
mishell_trickster2019-02-05 18:54:30
Android
mishell_trickster, 2019-02-05 18:54:30

How to put the network card of the smartphone into monitor mode while in a chrooted Kali Linux environment from under android?

There is Xiaomi Mi A1 with Android 8.1 Lineage OS. The memory card has Kali Linux installed via Linux Deploy.
I have a wlan0 interface in managed mode. I create a new interface I raise
iw dev wlan0 interface add mon0 type monitor
the interface
ip link set mon0 up
I kill all processes that can interfere
airmon-ng check kill
This way I kill the wpa_supplicant process, but it immediately revives. I can't disable wpa_supplicant because I'm in a chroot. I try to skip this step
airmon-ng start mon0
I get a response

Found 1 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

  PID Name
 4374 wpa_supplicant

PHY Interface   Driver      Chipset

phy12   mon0        wcnss_wlan  Not pci, usb, or sdio


ERROR adding monitor mode interface: command failed: Invalid argument (-22)

Exactly the same error if you translate wlan0 into a monitor. Question - how to properly use monitor mode on Kali in chroot? It doesn’t cause difficulties on the laptop, but it doesn’t work through the smartphone. Maybe wpa_supplicant is interfering but I don't know how to permanently kill it. Maybe something else is wrong and the android services themselves can interfere. But the network card on the phone supports monitor mode, judging by the iw output. Any tips or guides for this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question