Results 1 to 4 of 4

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

  1. #1
    Join Date
    2020-Jan
    Posts
    2

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

    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:
    Code:
    ~# iw phy phy0 interface add mon0 type monitor
    command failed: Operation not supported (-95)
    
    FAILED

    Code:
    ~# 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

    Code:
    ~# 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:
    Code:
    ~# 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
    Code:
    ~# iw phy phy0 interface add mon0 type monitor
    command failed: Operation not supported (-95)
    
    FAILED

    Code:
    ~# 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

    Code:
    ~# 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)

  2. #2
    Join Date
    2016-Dec
    Posts
    801
    Try 2020.1, and use airmon-ng to also put it in monitor mode instead of manually doing it.

  3. #3
    Join Date
    2020-Jan
    Posts
    2
    Same with 2020.1 both 64bit and 32bit.

    Code:
    airmong-ng start wlan0
    
    ERROR adding monitor mode interface: command failed: Operation not supported (-95)

  4. #4
    Join Date
    2014-Feb
    Posts
    276
    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.

Similar Threads

  1. RPi4 monitor mode breaks after packet injections
    By SKATEORDIE in forum Kali Linux ARM Architecture
    Replies: 2
    Last Post: 2020-01-03, 18:36
  2. Replies: 5
    Last Post: 2017-10-08, 15:53
  3. Intel Centrino 6200 AGN: promiscuous mode, monitor mode and packet injection
    By forumkali@yopmail.com in forum General Archive
    Replies: 0
    Last Post: 2014-08-20, 07:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •