PDA

View Full Version : RPi 4 onboard wifi monitor mode and packet injections on kali-linux-2019.4-rpi3-nexmon-64.img



BTears
2020-01-26, 16:16
Hello forum,

I am a new guy trying to set kali linux on Pi 4 B 4gb and I didn't succeed to set onboard wifi to monitor mode and of course either tried frame injection.
I relied to that phrase on official page (https://www.kali.org/news/raspberry-pi-4-and-kali/) quote: "And now you can add to that list full Kali Linux support complete with on-board wifi monitor mode & frame injection support!"

Could you please tell me what I miss here and how I can make it work as it says?

I tried with images below:
kali-linux-2019.4-rpi3-nexmon-64.img
kali-linux-2019.4-rpi3-nexmon.img

kali-linux-2019.2a-rpi3-nexmon-64.img
kali-linux-2019.2a-rpi3-nexmon.img

kali-linux-2019.1-rpi3-nexmon.img


Sticky Fingers try to boot and stack on black screen
Images:
StickyFingers-Kali-Pi-armhf-rpi-190703.img
sticky_fingers_kali_pi_2019.2a_rpi2_rp3_2019.07.03 _berryboot.img






RIG: Raspberry 4 B with 4GB ram
ADATA Premium Pro 64GB microSDXC U3

Connections: miniHDMI port 0 (close to power port) to HDMI monitor
ethernet cable on a switch

Procedure:

Format microsd card to FAT32
unzip berryboot-20191005-pi4.zip to microsd
boot pi and format mmcblk0 with ext4 filesystem.
reboot
Add OS via smb (kali-linux-2019.4-rpi3-nexmon-64.img)
reboot
Boot OS
Login to Kali with GUI user:root pass:toor

So a clean installation is ready on my Pi4 and here the problems begin:

Trying to set monitor mode on wlan0:


~# iw phy phy0 interface add mon0 type monitor
command failed: Operation not supported (-95)

FAILED



~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
bash: gawk: command not found
~# apt install gawk
E: Unable to locate package gawk
~# apt-get update
~# apt install gawk
~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
command failed: Operation not supported (-95)

FAILED



~# airmon-ng check kill
Please install lspci from your destro's package manager.
~# apt-get install pciutils
~# airmon-ng check kill
PID Name
544 NetworkManager
635 dhclient
1355 wpa_supplicant
~# iw phy phy0 interface add mon0 type monitor
command failed: Operation not supported (-95)
~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
command failed: Operation not supported (-95)
~# airmon-ng start wlan0
command failed: Operation not supported (-95)

FAILED

So I make again a clean installation and try the below:


~# apt-get update && apt-get dist-upgrade -Vy && apt-get autoremove -y && apt-get autoclean && apt-get clean && reboot


after the update I tried again to set monitor mode


~# iw phy phy0 interface add mon0 type monitor
command failed: Operation not supported (-95)

FAILED



~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
bash: gawk: command not found
~# apt install gawk
E: Unable to locate package gawk
~# apt-get update
~# apt install gawk
~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
command failed: Operation not supported (-95)

FAILED



~# airmon-ng check kill
Please install lspci from your destro's package manager.
~# apt-get install pciutils
~# airmon-ng check kill
PID Name
544 NetworkManager
635 dhclient
1355 wpa_supplicant
~# iw phy phy0 interface add mon0 type monitor
command failed: Operation not supported (-95)
~# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
command failed: Operation not supported (-95)
~# airmon-ng start wlan0
command failed: Operation not supported (-95)

FAILED

Tried to manual install nexmon as shown in this https://github.com/seemoo-lab/nexmon
FAILED to compile build tools and extract the ucode and flashpatches with an error about ccgcc

Tried to update re4son Kernel
FAILED error on make a backup file of /boot/"something" and then Pi4 not booting (I had to make all again from the start)

Mister_X
2020-02-02, 00:43
Try 2020.1, and use airmon-ng to also put it in monitor mode instead of manually doing it.

BTears
2020-02-08, 19:56
Same with 2020.1 both 64bit and 32bit.



airmong-ng start wlan0

ERROR adding monitor mode interface: command failed: Operation not supported (-95)

steev
2020-02-17, 22:47
I can't reproduce the issue here at all.

It's possible you somehow have/got the wrong firmware, due to a misstep with enabling them in the metapackages. You could try running `apt install --reinstall kalipi-re4son-firmware` - this should place the correct wifi firmwares where they should be on the off chance that somehow the ones from the firmware-brcm80211 package replaced them when it was in the metapackage.

krogstad
2020-02-26, 20:54
You need to install pciutils package to get it to work, I believe. I loaded hwinfo, lshw, and pciutils after doing the `apt install --reinstall kalipi-re4son-firmware`.

After doing all that, I got it to work.