
Driver del kernel Linux/Android per chipset RTL8812AU/21AU e RTL8814AU con supporto per modalità monitor e iniezione di frame per test di sicurezza wireless.
Solo per uso con Linux e Android
* Use "ip" and "iw" instead of "ifconfig" and "iwconfig"
It's described further down, READ THE README!
Nota: C'è una regressione con il TP-Link AC600 e potenzialmente altri dispositivi. Attualmente la soluzione alternativa è di effettuare il pull da un commit precedente. Si prega di vedere questo commento
[Dispositivo] Alfa Networks AWUS036ACH
[Chipset] 88XXau (rtl8812au)
[Ramo] v5.6.4.1
[Distanza] 10m a vista
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.6 MBytes 97.4 Mbits/sec 0 96.2 KBytes
[ 5] 1.00-2.00 sec 11.2 MBytes 93.8 Mbits/sec 0 100 KBytes
[ 5] 2.00-3.00 sec 11.2 MBytes 93.8 Mbits/sec 0 100 KBytes
[ 5] 3.00-4.00 sec 11.2 MBytes 93.8 Mbits/sec 0 100 KBytes
[ 5] 4.00-5.00 sec 11.2 MBytes 93.8 Mbits/sec 0 100 KBytes
[ 5] 5.00-6.00 sec 11.4 MBytes 95.9 Mbits/sec 0 105 KBytes
[ 5] 6.00-7.00 sec 11.2 MBytes 93.8 Mbits/sec 0 105 KBytes
[ 5] 7.00-8.00 sec 11.3 MBytes 94.9 Mbits/sec 0 157 KBytes
[ 5] 8.00-9.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 9.00-10.00 sec 11.2 MBytes 94.3 Mbits/sec 0 157 KBytes
[ 5] 10.00-11.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 11.00-12.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 12.00-13.00 sec 11.2 MBytes 94.4 Mbits/sec 0 157 KBytes
[ 5] 13.00-14.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 14.00-15.00 sec 11.2 MBytes 94.4 Mbits/sec 0 157 KBytes
[ 5] 15.00-16.00 sec 10.9 MBytes 91.7 Mbits/sec 0 157 KBytes
[ 5] 16.00-17.00 sec 11.2 MBytes 94.4 Mbits/sec 0 157 KBytes
[ 5] 17.00-18.00 sec 11.2 MBytes 94.4 Mbits/sec 0 157 KBytes
[ 5] 18.00-19.00 sec 11.2 MBytes 94.4 Mbits/sec 0 157 KBytes
[ 5] 19.00-20.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 20.00-21.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 21.00-22.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
[ 5] 22.00-23.00 sec 11.2 MBytes 93.8 Mbits/sec 0 157 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-23.15 sec 260 MBytes 94.2 Mbits/sec 0 sender
[ 5] 0.00-23.15 sec 0.00 Bytes 0.00 bits/sec receiver
Questo driver può essere installato usando [DKMS]. È un sistema che ricompila e installa automaticamente un modulo del kernel quando un nuovo kernel viene installato o aggiornato. Per usare DKMS, installa il pacchetto dkms, che nei sistemi Debian (e derivati) si fa così:
$ sudo apt-get install dkms
$ git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl*
Per installare il driver, apri un terminale nella directory con il codice sorgente ed esegui il seguente comando:
$ sudo make dkms_install
Per rimuovere il driver dal tuo sistema, apri un terminale nella directory con il codice sorgente ed esegui il seguente comando:
$ sudo make dkms_remove
Per compilare e installare il driver con 'make' usa
$ make && make install
Dipendenze dei pacchetti/di build (Kali)
$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`
Dipendenze dei pacchetti/di build
$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev pve-headers-`uname -r`
$ sudo apt-get install raspberrypi-kernel-headers
Poi cambia la piattaforma nel Makefile all'architettura ARM a 32 bit (RPi 1/2/3/ e 0/Zero):
$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile
Oppure, per ARM64 (RPI 3B+, 4B e Zero2) dovrai eseguire:
$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile
Inoltre, se ricevi un messaggio di errore riguardante unrecognized command line option ‘-mgeneral-regs-only’ (ad esempio, in Raspbian Buster), dovrai eseguire i seguenti comandi per l'architettura ARM, quindi riprovare a compilare e installare:
$ export ARCH=arm
$ sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf
Oppure, per ARM64 esegui il seguente prima di ricompilare:
$ export ARCH=arm64
$ sed -i 's/^MAKE="/MAKE="ARCH=arm64\ /' dkms.conf
La compilazione del driver potrebbe superare la RAM su alcuni RPi, causando un errore gcc: fatal error: Killed signal terminated program cc1. Lo spazio di swap può essere aumentato in /etc/dphys-swapfile ad esempio a 2000 megabyte, seguito da /etc/init.d/dphys-swapfile restart. Compilare su swap è comunque molto lento.
Per impostare la modalità monitor
$ airmon-ng check kill
Puoi anche deselezionare la casella "Connetti automaticamente a questa rete quando disponibile" in nm-connection-editor. Questo funziona solo se hai una connessione wifi salvata.
$ sudo ip link set wlan0 down
$ sudo iw dev wlan0 set type monitor
$ sudo ip link set wlan0 up
Per impostare la potenza TX
$ sudo iw wlan0 set txpower fixed 3000
options 88XXau rtw_led_ctrl=0
il valore può essere 0 o 1
$ echo "0" > /proc/net/rtl8812au/$(nome della tua interfaccia)/led_ctrl
il valore può essere 0 o 1
$ cat /proc/net/rtl8812au/$(nome della tua interfaccia)/led_ctrl
0: non commutare, 1: commutare da usb2.0 a usb3.0, 2: commutare da usb3.0 a usb2.0
$ rmmod 88XXau
$ modprobe 88XXau rtw_switch_usb_mode=int (0: no switch 1: switch from usb2 to usb3 2: switch from usb3 to usb2)
Le versioni più recenti di NetworkManager passano a un indirizzo MAC casuale. Alcuni utenti preferiscono usare un indirizzo fisso. Basta aggiungere queste righe qui sotto
[device]
wifi.scan-rand-mac-address=no
alla fine del file /etc/NetworkManager/NetworkManager.conf e riavvia NetworkManager con il comando:
$ sudo service NetworkManager restart
Alfa Networks - https://www.alfa.com.tw/
Realtek. - https://www.realtek.com
aircrack-ng - https://www.aircrack-ng.org
astsam - https://github.com/astsam
evilphish - https://github.com/evilphish
fariouche - https://github.com/fariouche
CGarces - https://github.com/CGarces
ZerBea - https://github.com/ZerBea
lwfinger - https://github.com/lwfinger
Ulli-Kroll. - https://github.com/Ulli-Kroll