Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Packet injection issue #31

Open
3 tasks done
ronny34 opened this issue Aug 13, 2024 · 1 comment
Open
3 tasks done

[Bug]: Packet injection issue #31

ronny34 opened this issue Aug 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ronny34
Copy link

ronny34 commented Aug 13, 2024

Checklist

  • I am not using this driver from inside a Virtual Machine.
  • I performed all of the installation steps as written.
  • I have read the FAQ and my question is not answered there.

Is Secure Boot enabled?

No

uname

Linux Legion 6.10.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 x86_64 GNU/Linux

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub Bus 001 Device 003: ID 174f:2459 Syntek Integrated Camera Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910) Bus 001 Device 006: ID 1532:0084 Razer USA, Ltd RZ01-0321 Gaming Mouse [DeathAdder V2] Bus 001 Device 008: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 048d:c965 Integrated Technology Express, Inc. ITE Device(8295) Bus 003 Device 003: ID 0bda:4852 Realtek Semiconductor Corp. Bluetooth Radio Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

rfkill

0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: yes Hard blocked: no 3: ideapad_bluetooth: Bluetooth Soft blocked: yes Hard blocked: no 6: phy3: Wireless LAN Soft blocked: no Hard blocked: no

dkms

openrazer-driver/3.8.0, 6.10.3-arch1-2, x86_64: installed
rtl8812au/5.13.6-23, 6.10.3-arch1-2, x86_64: installed (original_module exists)

iw

phy#3
	Interface wlan1
		ifindex 6
		wdev 0x300000001
		addr 36:c6:e6:8e:2e:b4
		type monitor
		channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
		txpower -100.00 dBm
phy#0
	Interface wlan0
		ifindex 3
		wdev 0x1
		addr e0:0a:f6:50:f4:67
		type managed
		channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
		txpower 20.00 dBm
		multicast TXQ:
			qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
			0	0	0	0	0	0	0	0		0

git status

On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   Makefile

no changes added to commit (use "git add" and/or "git commit -a")

install-driver.sh

: ---------------------------
: install-driver.sh v20240429
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 16/16 (in-use/total processing units)
: 16224212 (total system memory)
: 6.10.3-arch1-2 (kernel version)
: gcc (version of gcc used to compile the kernel)
: gcc (GCC) 14.2.1 20240805
: dkms-3.0.12
: SecureBoot disabled
: ---------------------------

Checking for previously installed drivers...
Removing a driver that was installed by dkms.
Module rtl8812au-5.13.6-23 for kernel 6.10.3-arch1-2 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

8812au.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
depmod...

Removing original_module from DKMS tree for kernel 6.10.3-arch1-2 (x86_64)
Deleting module rtl8812au-5.13.6-23 completely from the DKMS tree.
Removing 8812au.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl8812au-5.13.6-23
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8812au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8812au-5.13.6-23
Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23
The driver was added to dkms successfully.
: ---------------------------

Sign command: /usr/lib/modules/6.10.3-arch1-2/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
kernelver=6.10.3-arch1-2 ./dkms-make.sh.........
Signing module /var/lib/dkms/rtl8812au/5.13.6-23/build/8812au.ko
Cleaning build area...
The driver was built by dkms successfully.
: ---------------------------

8812au.ko.zst:
Running module version sanity check.
 - Original module
   - Found /usr/lib/modules/6.10.3-arch1-2/updates/dkms/8812au.ko.zst
   - Storing in /var/lib/dkms/rtl8812au/original_module/6.10.3-arch1-2/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
depmod...
The driver was installed by dkms successfully.
: ---------------------------

Info: Update this driver with the following commands as needed:

$ git pull
$ sudo sh install-driver.sh

Note: Updates to this driver SHOULD be performed before distro
      upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates to this driver SHOULD be performed before major
      upgrades such as kernel 6.5 to 6.6.
Note: Updates can be performed as often as you like. It is
      recommended to update at least every 3 months.
Note: Work on this driver, like the Linux kernel, is continuous.

Enjoy!

Do you want to edit the driver options file now? (recommended) [Y/n] n
Do you want to apply the new options by rebooting now? (recommended) [Y/n] n

What happened?

Hi, your driver is the only one able to start the monitor mode for ALFA awus036ach. Monitor mode starts, commands like airodump-ng work fine. When trying to use packet injection, nothing works. aireplay-ng --test cannot perform packet injection. Maybe I need to change something in the makefile? Maybe there are other drivers capable of running monitor mode and packet injection?

@ronny34 ronny34 added the bug Something isn't working label Aug 13, 2024
@morrownr
Copy link
Owner

Hi @ronny34

With this last version of this driver I did not activate monitor mode for several reasons. Realtek's monitor mode is not well done and they do not maintain it in this driver. I thought my time was better spent on a project to help get better support in the kernel.

Last week a new driver was sent to linux-wireless to be included, hopefully, in kernel 6.12. If you want to try this new driver, here is the repo:

https://github.com/lwfinger/rtw88

Follow the instructions in the README.

You will need to remove this driver:

sudo sh remove-driver.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants