seemoo-lab / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
2.46k stars 456 forks source link

airmon-ng/airodump-ng doesn't work in Rpi-3b_Kali: brcmfmac: nexmon _n1_ioct1_handler Errrors #237

Open alimp5 opened 6 years ago

alimp5 commented 6 years ago

root@Hero: airmon-ng start wlan0

PHY Interface   Driver      Chipset
phy0    wlan0       brcmfmac    Broadcom 43430
           brcmfmac: nexmon_nl_ioctl_handler: NEXMON: nexmon_nl_ioctl_handler: Enter
           exmon_nl_ioctl_handler: NEXMON: nexmon_nl_ioctl_handler: .................
           brcmfmac: nexmon_nl_ioctl_handler: NEXMON: nexmon_nl_ioctl_handler: callin brcmf_fil_cmd_data_set,..........
           brcmfmac: nexmon_nl_ioctl_handler: NEXMON: nexmon_nl_ioctl_handler: Exit
    Interface wlan0 is already in monitor mode

https://imgur.com/a/6uCHAsQ

root@Hero: airodump-ng wlan0 or root@Hero: airodump-ng wlan0mon

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead.  Make
sure RFMON is enabled: run 'airmon-ng start wlan0 <#>'
Sysfs injection support was not found either.

Failed initializing wireless card(s): wlan0

the root cause of problem is in built-in broadcom wifi driver/patches. because when I connect TPlink7200ND to RPi-3B usb, airmon-ng/airodump-ng works fine.

root@Hero: uname -a Linux Hero 4.9.59-v7_Re4son-Kali-Pi+ #1 SMP Wed Feb 14 20:50:28 CST 2018 armv7l GNU/Linux aircrack-ng is already the newest version (1:1.2.0-6).

steev commented 6 years ago

You probably want to use aircrack-ng from git instead of the packaged version. It has better handling of nexmon.

aircrack-ng commented 6 years ago

Regarding airmon-ng, as @steev said, using the one from the repo should fix it. If it doesn't, then please open an issue in aircrack-ng repository.

About the second issue, check out aircrack-ng/aircrack-ng#1882

3x-M4ch1nA commented 6 years ago

@alimp5 Re4son (the main contributor of Kali ARM), said that nexmon no longer supports aircrack-ng.

When running airmon-ng start wlan0, I got the warning "monitor mode not enabled, this is not a raspberry pi 3" (running on rpi3). This started happening out of nowhere about a month ago or so.

The solution I was told by Re4son himself, was that to put into monitor, the new command for nexmon is mon0up/down, they're included in his Kali-Pi package. (https://whitedome.com.au/re4son/topic/sticky-fingers-kali-pi-2/#post-13278) havent tested airodump after after running command yet.

But not supporting aircrack is a real hassle for so many repos that start your monitor mode using it (fluxion).

steev commented 6 years ago

@3x-M4ch1nA that should be something on the aircrack-ng issues, not here.

3x-M4ch1nA commented 6 years ago

@Steve you are correct. however I didn't post the issue, I was responding to the op with a solution for his exact distro (Re4son's Kali-Pi), since I spent quite a large amount of time trying to figure it out myself before contacting the distro creator. He did say it was nexmon that no longer supported aircrack though, but he could have mistakenly said it backwards.

I'm going to try the above solutions of getting aircrack from official repo as well to see if that works

aircrack-ng commented 6 years ago

It's working just fine without it on 4.14.50-kali-v7+ without any hacks so this ticket can be closed. See aircrack-ng/aircrack-ng#1882 for more details