berate_ap icon indicating copy to clipboard operation
berate_ap copied to clipboard

Problem with iw package in kali-linux raspberrypi3b

Open javierbu opened this issue 10 months ago • 1 comments

Hello. I'm working with kali-linuxARM (2023.4 and 2024.1) on raspberrypi3b. Today I updated the system, and the iw package causes an error and does not allow berate_ap to work. It was working perfectly, I updated the iw package, and it stopped working. Evidence:

┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo berate_ap wlan0 eth0 mywifi             
WARN: brmfmac driver doesn't work properly with virtual interfaces and
      it can cause kernel panic. For this reason we disallow virtual
      interfaces for your adapter.
      For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.cfcK6riD
PID: 7270
Network Manager found, set wlan0 as unmanaged device... DONE
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.cfcK6riD/hostapd_ctrl
Low entropy detected, starting haveged
haveged: command socket is listening at fd 4
Configuration file: /tmp/create_ap.wlan0.conf.cfcK6riD/hostapd.conf
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:91:cc:76 and ssid "mywifi"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED 
^Cwlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED 
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

Doing cleanup.. done
                                                                                                                                                                                                                                                                                                                                                                                      
┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo apt -qq -y install  iw
The following packages will be upgraded:
  iw
1 upgraded, 0 newly installed, 0 to remove and 523 not upgraded.
Need to get 101 kB of archives.
After this operation, 1,024 B disk space will be freed.
(Reading database ... 439007 files and directories currently installed.)
Preparing to unpack .../archives/iw_6.7-1_arm64.deb ...
Unpacking iw (6.7-1) over (5.19-1) ...
Setting up iw (6.7-1) ...
Processing triggers for man-db (2.12.0-3) ...
Processing triggers for kali-menu (2023.4.7) ...
                                                                                                                              
┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo berate_ap wlan0 eth0 mywifi
WARN: brmfmac driver doesn't work properly with virtual interfaces and
      it can cause kernel panic. For this reason we disallow virtual
      interfaces for your adapter.
      For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.vKyuZhgO
PID: 7807

ERROR: Your adapter can not transmit to channel 1, frequency band 2.4GHz.


Doing cleanup.. done
                                                                                                                              
┌──(kali㉿kali-raspberry-pi)-[~]

I have not delved deeper into the problem, I have not tried any other system. Thanks for your attention.

EDIT

Okay. I have tried desktop kali-linux with the same result. Before updating iw everything works correctly, but when updating iw, it stops working. The native version of iw is 5.19-1 and the updated version is 6.7-1 Thanks!

javierbu avatar Apr 07 '24 01:04 javierbu

That is interesting, it might be related to issue #12 with the addition of decimals to the iw output

cablethief avatar Jun 20 '24 07:06 cablethief