Comments (6)
Sorry, my fault. I forgot to kill conflicting apps with:
airmon-ng check kill
Now it works like a charm again.
Could it be possible not to have to kill Network manager?
Thanks for your driver, it is the best for my 8812 device,
from 8812au.
You are welcome.
Quote: "Could it be possible not to have to kill Network manager?"
Answer: Yes, I have been working on a new guide. It seems to work well here. Can I get you to test it and advise?
Test Monitor Mode
Setup:
Install the aircrack-ng package
$ sudo apt install aircrack-ng
Ensure Network Manager doesn't cause problems
$ sudo nano /etc/NetworkManager/NetworkManager.conf
add
[keyfile]
unmanaged-devices=interface-name:mon0;interface-name:mon1
Note: The above tells Network Manager to disregard two interfaces.
I usually just use mon0 for monitor mode. I have two usb adapters
on my main box and doing it this way allows me to continue in
managed mode with internet access while I use the other adapter
for monitor mode.
Enable monitor mode using iw and ip:
$ sudo iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr 00:c0:ca:ad:4b:cc
type managed
txpower 12.00 dBm
$ sudo ip link set wlan0 down
$ sudo iw phy phy0 interface add mon0 type monitor
$ sudo ip link set mon0 down
$ sudo iw mon0 set monitor control
$ sudo ip link set mon0 up
$ sudo iw dev mon0 set channel 36 (or whatever channel you want)
Test injection
$ sudo aireplay-ng --test mon0
Test deauth
$ sudo airodump-ng mon0 --band ag
$ sudo airodump-ng mon0 --bssid <MAC address of router> --channel <channel of router>
$ sudo aireplay-ng --deauth 0 -c <deviceMAC> -a <routerMAC> mon0 -D
Please let me know how it goes and what changes I need to make. I realize this needs to be better documented so maybe you can help me with that.
from 8812au.
Hello, it seems that it does not work.
βββ(rootπa)-[/home/a/Documentos/temp]
ββ# more /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:mon0;interface-name:mon1
βββ(rootπa)-[/home/a/Documentos/temp]
ββ# iw dev
phy#0
Interface mon0
ifindex 4
wdev 0x2
addr 00:00:00:00:00:00
type monitor
channel 44 (5220 MHz), width: 20 MHz (no HT), center1: 5220 MHz
txpower 15.00 dBm
Interface wlan0
ifindex 3
wdev 0x1
addr 46:92:e2:0b:7b:2c
type monitor
channel 44 (5220 MHz), width: 20 MHz (no HT), center1: 5220 MHz
txpower 15.00 dBm
βββ(rootπa)-[/home/a/Documentos/temp]
ββ# aireplay-ng --test mon0
21:33:21 Trying broadcast probe requests...
21:33:23 No Answer...
21:33:23 Found 0 APs
Using "airodump-ng mon0 --band ag" it does not find any ap in any channel (a or g band).
After I executed "airmon-ng check kill" and aireplay-ng anf airodump-ng work again.
One more thing is that even when I kill NetworkManager and it works in dmesg there are two warnings. I attached the file with them.
warnings.txt
from 8812au.
Interface wlan0
ifindex 3
wdev 0x1
addr 46:92:e2:0b:7b:2c
type monitor
How did wlan0 get to be type monitor? It should not be monitor.
Before executing the steps I posted, you really need a clean fresh boot and don't run airmon-ng.
from 8812au.
Hello, fresh boot. It seems that when executing "iw phy phy0 interface add mon0 type monitor" already puts mon0 in monitor mode. "iw mon0 set monitor control" also puts wlan0 in monitor mode.
βββ(rootπa)-[/home/a]
ββ# more /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:mon0;interface-name:mon1
βββ(rootπa)-[/home/a]
ββ# iw dev
βββ(rootπa)-[/home/a]
ββ# iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr ca:ad:93:b2:b1:db
type managed
txpower -100.00 dBm
βββ(rootπa)-[/home/a]
ββ# ip link set wlan0 down
βββ(rootπa)-[/home/a]
ββ# iw phy phy0 interface add mon0 type monitor
βββ(rootπa)-[/home/a]
ββ# iw dev
phy#0
Interface mon0
ifindex 4
wdev 0x2
addr 00:00:00:00:00:00
type monitor
txpower -100.00 dBm
Interface wlan0
ifindex 3
wdev 0x1
addr ca:ad:93:b2:b1:db
type managed
txpower -100.00 dBm
βββ(rootπa)-[/home/a]
ββ# ip link set mon0 down
βββ(rootπa)-[/home/a]
ββ# iw mon0 set monitor control
βββ(rootπa)-[/home/a]
ββ# iw dev
phy#0
Interface mon0
ifindex 4
wdev 0x2
addr 00:00:00:00:00:00
type monitor
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
txpower 17.00 dBm
Interface wlan0
ifindex 3
wdev 0x1
addr ca:ad:93:b2:b1:db
type monitor
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
txpower 17.00 dBm
βββ(rootπa)-[/home/a]
ββ# ip link set mon0 up
βββ(rootπa)-[/home/a]
ββ# iw dev mon0 set channel 44
βββ(rootπa)-[/home/a]
ββ# aireplay-ng --test mon0
00:40:55 Trying broadcast probe requests...
00:40:57 No Answer...
00:40:57 Found 0 APs
from 8812au.
Okay, I was testing with an adapter that has a mt7612u chipset on a Linux Mint box. Let me see about setting up an adapter with a rtl8812au chipset on a Kali box to see what the difference is with the Realtek driver.
Yes, I am aware that some of the lines are not needed in some situations. I try to avoid using "airmon-ng check kill" myself. The setup with mon0 works well here with my main box but let me check it in your setup. Will report back.
from 8812au.
Related Issues (20)
- Kali 2020.4 USB3.0 and High power does not workοΌ HOT 3
- 802.1x dynamic VLANs HOT 6
- (solved) Aircrack-Ng segmentation fault and crash HOT 2
- (solved) Dunno what happened but Im getting weird TX Values on Raspbian managed mode HOT 11
- (solved) Problem with kernel 5.4.83-v7l+ on RPi HOT 16
- (in progress) Could not locate dkms.conf file HOT 4
- (solved) kernel version 5.10.0 HOT 2
- (solved) Error! Could not locate dkms.conf file. File: does not exist. HOT 4
- Original Realtek 5.9.3.2 driver HOT 2
- (in-progress) Driver doesn't seem to support B.A.T.M.A.N adv setup HOT 3
- (in-progress) Installation issue: An error occurred. dkms build error = 10 HOT 4
- (in-progress) Access Point: Clinets do not get an IP address HOT 11
- Unable to set the "4addr on" HOT 1
- (pulling hair ! - ubuntu 21.04 - chipset 8811au - Kernel 5.11.x. It worked 3 days and stopped HOT 35
- Some thoughts on Kernel 5.10
- Injection not functional on 5ghz HOT 5
- Please do not post issues in this repo. Please see README for a link to the proper repo.
- . HOT 2
- Info: Running **hostapd**, Access Point, with this driver... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 8812au.