Sunday, December 11, 2011

Aircrack-ng (fixed channel mon0: -1)


Everyone knows the message: "fixed channel -1" on aireplay, in previous versions of Ubuntu 10.10 didn't happen, so we probably think in create a new partition only for the aircrack, but there is an easier solution, consist in patch the aircrack, cause the aircrack don't recognize your wlan driver. To install it:
We open a terminal and type:
sudo apt-get install linux-headers-$(uname -r) 
Now download the newest patch in http://linuxwireless.org/en/users/Download/stable and uncompress it in our home folder.
In the terminal again, we type:
cd (location of the file uncompressed)
Now, we download the patch, typing:
 wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
and now install it:
  sudo apt-get install patch
Apply the patch:
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
And we open this file in the terminal again:
gedit scripts/update-initramfs
Search: #*** line 13: KLIB=/lib/modules/2.6.31-wl/build #*** And placed it with : KLIB=/lib/modules/$(uname -r)/build 
Close gedit and save, then type in the terminal:
make
Then:
sudo make install
and then:
sudo make unload
And finally:
sudo reboot
Now everything's ok, but it's possible that the name of our wlan chipset has changed, so we type:
sudo iwconfig

No comments:

Post a Comment