morrownr / rtl8852bu

Linux Driver for USB WiFi Adapters that are based on the RTL8832BU and RTL8852BU Chipsets - v1.19.3 - 20230505
Other
81 stars 13 forks source link

Wifite Freezes When Scanning for Networks #34

Open Grudging0042 opened 2 weeks ago

Grudging0042 commented 2 weeks ago

Description:
I am experiencing an issue with the Alfa USB Adapter AWUS036AX using the RTL8852BU chipset. The adapter freezes consistently when running wifite to scan for networks. This issue occurs on a fresh installation of Kali Linux on a Raspberry Pi with the latest kernel and driver installed.

Steps to Reproduce:
Flash SD card with the latest Kali Linux image.

Perform the following commands after the initial setup:

sudo apt update && sudo apt upgrade -y  
sudo reboot now  
sudo apt autoremove  
cd /usr/src/kernel  
sudo git clean -fdx && sudo make bcm2711_defconfig && sudo make modules_prepare  
mkdir -p ~/src  
cd ~/src  
git clone https://github.com/morrownr/rtl8852bu.git  
cd ~/src/rtl8852bu  
sudo ./install-driver.sh  
sudo apt update && sudo apt upgrade -y  
apt list --upgradable -a  
sudo apt install firmware-linux-free  
sudo apt update && sudo apt upgrade -y  
iwconfig  
sudo reboot now  
sudo wifite -i wlan0  

Expected Behavior:
Wifite should scan and list available networks without freezing.

Actual Behavior:
Wifite freezes while scanning for networks.

System Information:
Raspberry Pi Model: [Specify Model]
Linux Kernel Version: 6.1.92-v8+
gcc Version: aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0
Binutils Version: GNU ld (GNU Binutils for Debian) 2.40
Driver Version: Latest from https://github.com/morrownr/rtl8852bu.git
Output of iwconfig:

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:off/any  
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm  
Retry short limit:7 RTS thr:off Fragment thr:off  
Power Management:on

wlan1 unassociated Nickname:"<WIFI@REALTEK>"  
Mode:Managed Frequency=5.18 GHz Access Point: Not-Associated  
Sensitivity:0/0  
Retry:off RTS thr:off Fragment thr:off  
Power Management:off  
Link Quality:0 Signal level:0 Noise level:0  
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0  
Tx excessive retries:0 Invalid misc:0 Missed beacon:0  
└─$ sudo airmon-ng start wlan1

PHY Interface Driver Chipset

phy0 wlan0 brcmfmac Broadcom 43455  
phy1 wlan1 rtl8852bu Realtek Semiconductor Corp. 802.11ax WLAN Adapter  
(monitor mode enabled)  

Steps Taken to Troubleshoot:
Re-flashed SD card and repeated the steps multiple times.
Ensured all packages are up to date.
Verified that the driver installation completes without errors.

Workaround Running the following commands before starting wifite resolves the issue:

sudo airmon-ng check kill
sudo airmon-ng start wlan1