[Tutorial] Fix: Compat wireless & aircrack-ng
After upgrading to Ubuntu 10.10, I found that airodump-ng and aireplay-ng didn't want to work:
Quote:
airodump-ng: Fixed channel to -1 = fixed channel mon0: -1
aireplay-ng: Wouldn't false authenticate OR deauth = mon0 is on channel -1, but the AP uses channel 9
Setup
OS: Ubuntu 10.10
Kernel: 2.6.35-22-generic-pae
WiFi Card: Intel iwlwifi iwlagn Intel Corporation WiFi Link 5100
How?
Code:
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#*** FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#*** REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot
Hope it helps someone[/I]
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Your code fails if copy pasted on the terminal. Wget can't interpret the shortened version of the links and will give a 404 error on all the links. Then, even fixing that still gives one error. You're not uncompressing the first file before entering it's folder, which, as the code is, doesn't exist at all.
Thanks for the help anyway, but try to test your own code before uploading it ;)
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Quote:
Originally Posted by
hallucynogenyc
Your code fails if copy pasted on the terminal. Wget can't interpret the shortened version of the links and will give a 404 error on all the links. Then, even fixing that still gives one error. You're not uncompressing the first file before entering it's folder, which, as the code is, doesn't exist at all.
Thanks for the help anyway, but try to test your own code before uploading it ;)
Sorry, the forum auto added the URL tags - I didnt add them!
Yes, I did skip out un-compressing stage. *now added in*
For the record, I did test it. I just added the "wget, tar, and cd" by hand afterwards.
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Great, no problem mate. I was just trying to help hehe ;)
Btw, the code worked for me, at least the one based on the initial one that I executed.
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Just running make , will check and post :-)
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Just one question , may sound silly , Are we rebuilding the kernel here ?
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
The Fix works :-) Thanks .
But I am not sure , if an injection is succeeding .
That is airodump doesnt show in an increase in packets .
root@narayant-VPCEB16FG:~# aireplay-ng --arpreplay -b D8:5D:4C:C1:64:01 mon0
No source MAC (-h) specified. Using the device MAC (78:DD:08:CC:1C:FE)
00:14:11 Waiting for beacon frame (BSSID: D8:5D:4C:C1:64:01) on channel 1
Saving ARP requests in replay_arp-1018-001411.cap
You should also start airodump-ng to capture replies.
Notice: got a deauth/disassoc packet. Is the source MAC associated ?
Notice: got a deauth/disassoc packet. Is the source MAC associated ?
^Cad 5868 packets (got 0 ARP requests and 642 ACKs), sent 0 packets...(0 pps)
--------------------------------------------------------------------------------------------------------------
CH 1 ][ Elapsed: 8 mins ][ 2010-10-18 00:19 ][ Decloak: D8:5D:4C:C1:64:01
BSSID PWR Beacons #Data, #/s CH MB ENC CIPHER AUTH ESSID
D8:5D:4C:C1:64:01 -50 4938 784 0 1 54 WEP WEP OPN Binat
BSSID STATION PWR Rate Lost Packets Probes
D8:5D:4C:C1:64:01 78:DD:08:CC:1C:FE 0 54 -54 0 1436 Binatone
Of course this is my wifi that I am trying to hack wep:-)
Re: [Tutorial] Fix: Compat wireless & aircrack-ng
thanks man!
worked like a charm :)
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Quote:
Originally Posted by
hallucynogenyc
Great, no problem mate. I was just trying to help hehe ;)
Btw, the code worked for me, at least the one based on the initial one that I executed.
Good good!
Its great to hear its working!
Quote:
Originally Posted by
SriNarayanan
Just one question , may sound silly , Are we rebuilding the kernel here ?
I dont think we are! Just editing the drivers. :)
Quote:
Originally Posted by
SriNarayanan
The Fix works :-) Thanks .
But I am not sure , if an injection is succeeding .
That is airodump doesnt show in an increase in packets .
Ive tested airodump-ng myself, was going on what someone else said they are injection working. Ill try and find my old WiFi router, and give WEP ago later tonight. (=
Quote:
Originally Posted by
xorman2k7
thanks man!
worked like a charm :)
Im glad its working for you!
Re: [Tutorial] Fix: Compat wireless - 'fixed channel mon0: -1'
Quote:
Originally Posted by
SquirrelScript
Good good!
Its great to hear its working!
I dont think we are! Just editing the drivers. :)
Ive tested airodump-ng myself, was going on what someone else said they are injection working. Ill try and find my old WiFi router, and give WEP ago later tonight. (=
Im glad its working for you!
Thanks for the reply buddy,
Few educational questions :-)
1. If we are editing drivers ,can a faulty edited driver damage the hardware.
In other words , is it OK to play with the drivers .
2. Initially I dint find the chan.c anywhere , I guess the patch is applied to this file .
Which means , does the compat-wireless driver package contain this file?
In that case what is the wireless driver currently active and what has compat wireless have to do with the fix
----
Machine details :
Sony Vaio EB15FG / Atheros AR9285