Aircrack-ng forum
General Category => General help => Topic started by: vendforce on December 12, 2015, 07:48:49 pm
-
Hope someone can help me with a problem I have regarding injection
SYSTEM DETAILS
OS : ARCH-GNOME 3.18
USB ADAPTER : GSKY GS-27-USB
KERNEL : 4.2.5-1
ARCH : X64
AIRCRACK VERSION : Aircrack-ng 1.2 rc3
LSUSB OUTPUT
148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
AIRMON-NG OUTPUT
PHY INTERFACE DRIVER CHIPSET
phy0 wlan0 rt2800usb Ralink Technology, Corp. RT2070
AIREPLAY-NG -9 WLAN0 OUTPUT
19:06:04 Trying broadcast probe requests...
19:06:06 No Answer...
19:06:06 Found 3 APs
DOWNLOADED PATCHES AND STABLE 4.2.6 COMPAT WIRELESS DRIVERS, PATCHED THEM WITH NO ERRORS AND INSTALLED THE DRIVERS
https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v4.2.6/backports-4.2.6-1.tar.gz
https://github.com/hellnet/backports-patches/blob/master/50-1-mac80211.compat08082009.wl_frag%2Back_v1.patch
https://github.com/hellnet/backports-patches/blob/master/60-1-compatdrivers_chan_qos_frag.patch
https://github.com/hellnet/backports-patches/blob/master/70-1-fix-channel-negative-1.patch
## NOTE THE GITHUB URLS ARE JUST TO SHOW THE PATCHES .. THERE CORRUPT IF THERE NOT DOWNLOAD AT THE MASTER.ZIP
LS /LIB/FIRMWARE/RT* OUTPUT
/lib/firmware/rt2561.bin /lib/firmware/rt2870.bin /lib/firmware/rt3290.bin
/lib/firmware/rt2561s.bin /lib/firmware/rt3070.bin /lib/firmware/rt73.bin
/lib/firmware/rt2661.bin /lib/firmware/rt3071.bin
/lib/firmware/rt2860.bin /lib/firmware/rt3090.bin
/lib/firmware/rtl_bt:
rtl8192ee_fw.bin rtl8723a_fw.bin rtl8761a_fw.bin rtl8821a_fw.bin
rtl8192eu_fw.bin rtl8723b_fw.bin rtl8812ae_fw.bin
/lib/firmware/rtl_nic:
rtl8105e-1.fw rtl8107e-2.fw rtl8168e-2.fw rtl8168g-1.fw rtl8168h-2.fw
rtl8106e-1.fw rtl8168d-1.fw rtl8168e-3.fw rtl8168g-2.fw rtl8402-1.fw
rtl8106e-2.fw rtl8168d-2.fw rtl8168f-1.fw rtl8168g-3.fw rtl8411-1.fw
rtl8107e-1.fw rtl8168e-1.fw rtl8168f-2.fw rtl8168h-1.fw rtl8411-2.fw
/lib/firmware/rtlwifi:
rtl8188efw.bin rtl8192cufw.bin rtl8723aufw_B.bin
rtl8188eufw.bin rtl8192cufw_TMSC.bin rtl8723aufw_B_NoBT.bin
rtl8192cfw.bin rtl8192defw.bin rtl8723befw.bin
rtl8192cfwU_B.bin rtl8192eefw.bin rtl8723fw_B.bin
rtl8192cfwU.bin rtl8192sefw.bin rtl8723fw.bin
rtl8192cufw_A.bin rtl8712u.bin rtl8821aefw.bin
rtl8192cufw_B.bin rtl8723aufw_A.bin rtl8821aefw_wowlan.bin
LSMOD | GREP RT2800* OUTPUT
rt2800usb 28672 0
rt2x00usb 20480 1 rt2800usb
rt2800lib 86016 1 rt2800usb
rt2x00lib 49152 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 651264 3 rt2x00lib,rt2x00usb,rt2800lib
crc_ccitt 16384 1 rt2800lib
usbcore 196608 9 uhci_hcd,snd_usb_audio,uvcvideo,rt2x00usb,rt2800usb,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid
I TOOK THE USB ADAPTER APART AND RT3070L IS WRITTEN ON THE CHIPSET
When I reboot I still have no injection and there is no modules blacklisted in /etc/modprobe.d
I cant figure out why Ive no injection Ive tried putting wlan0 into monitor mode and testing injection but still no luck
If anyone can help Id be very greatful Ive tried all day to get this working and just Ive hit a wall and cant think of anything else to try
-
Ok Ive done some trouble shooting and found that It has to to a kernel issue because Ive tried the usb adapter in ubuntu 14.04 and kali and it has injection
-
2 things:
- Always kill network managers first
- Make sure you are on a channel with APs.
-
Thanks for the reply
OK I FOUND THE PROBLEM !!
It was the kernel I patched and installed the latest kernel in testing repo in arch and there was still no injection so I installed the LTS KERNEL and injection is now working perfect
The latest kernels after 4.1-LTS must not be working with some cards or maybe all cards regarding injection as I compiled a few versions , i.e 4.2,4.3,4.4 and patched them but still didn't have injection can anyone confirm they have compiled the latest stable/unstable with patches and have working injection
-
This will help you. It restores aircrack-ng compatibility with rt2800lib devices on newer kernels (> 4.2)
---
drivers/net/wireless/rt2x00/rt2800lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 9524564..285acc2 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -1490,7 +1490,7 @@ void rt2800_config_filter(struct rt2x00_dev *rt2x00dev,
!(filter_flags & FIF_FCSFAIL));
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_PHY_ERROR,
!(filter_flags & FIF_PLCPFAIL));
- rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 1);
+ rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_MY_BSSD, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_VER_ERROR, 1);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_MULTICAST,
--
2.7.0
-
I am having this problem. (injection works when using Backtrack but not on Kali with same card).
My problem is I do not know how to enter your solution.
Do I enter all of this? (below) Thanks T
Re: rt2800usb injection
« Reply #4 on: January 19, 2016, 09:01:17 pm »
ReplyQuote
This will help you. It restores aircrack-ng compatibility with rt2800lib devices on newer kernels (> 4.2)
---
drivers/net/wireless/rt2x00/rt2800lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 9524564..285acc2 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -1490,7 +1490,7 @@ void rt2800_config_filter(struct rt2x00_dev *rt2x00dev,
!(filter_flags & FIF_FCSFAIL));
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_PHY_ERROR,
!(filter_flags & FIF_PLCPFAIL));
- rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 1);
+ rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_MY_BSSD, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_VER_ERROR, 1);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_MULTICAST,
--
2.7.0
-
I have a alfa AWUS036NH with rt2870/rt3070and so far airmon-ng , airodump-ng , and aireplay-ng works. running basic ijection test now and got this....aaa@kali:~$ sudo aireplay-ng -9 wlan1mon
[sudo] password for aaa:
21:08:14 Trying broadcast probe requests...
21:08:14 Injection is working!
21:08:16 Found 12 APs
Forgot to mention...On Kali Linux Rolling edition.
PS.
alfa awus036nh WILL NOT CAPTURE HANDSHAKES on new kali rolling... :-\ ...but the alfa AWUS051NH works quite well so far on kali linux rolling edition ! ;)
-
This will help you. It restores aircrack-ng compatibility with rt2800lib devices on newer kernels (> 4.2)
---
drivers/net/wireless/rt2x00/rt2800lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 9524564..285acc2 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -1490,7 +1490,7 @@ void rt2800_config_filter(struct rt2x00_dev *rt2x00dev,
!(filter_flags & FIF_FCSFAIL));
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_PHY_ERROR,
!(filter_flags & FIF_PLCPFAIL));
- rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 1);
+ rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_TO_ME, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_NOT_MY_BSSD, 0);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_VER_ERROR, 1);
rt2x00_set_field32(®, RX_FILTER_CFG_DROP_MULTICAST,
--
2.7.0
I'm really glad you've left this here. Absolutely appreciated, helps with kernel for NetHunter. As follows for kernel 4.4, and works for kernel 3.18 too, I'll push later
https://github.com/yesimxev/android_kernel_nokia_sdm660/commit/c390b08553327536c0ab3165c99191886d2f05a9