afallenhope
September 12th, 2009, 08:35 PM
Alright, I've been looking everywhere on how to install this dang thing.
so, I figured I'd post a how-to I guess you could call it.
[Needed files]
mac80211 patch - mac80211_2.6.28-rc4-wl_frag+ack_v3.patch (http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch)
First it's nice to keep your packages updated so let's update / upgrade any packages.
sudo apt-get update && sudo apt-get upgrade
Yehah! Up-to-date!
Now, install the source as well as the compiling utils.
cd /usr/src
sudo apt-get install linux-source-2.6.28 build-essential gawk bison linux-kernel-headers linux-headers-$(uname -r)
Right! If you see what's in the directory you should see linux-source-2.6.28.tar.gz2 if not.. sorry. I screwed up somewhere and I don't feel like backtracing. You get the general impression.
Moving on! Unzip it the source!
sudo tar -xjf linux-source-2.6.28.tar.gz2
cd linux-source-2.6.28/
Time to patch!
sudo wget http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch && sudo patch -p1 < mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
Paaaaaaaatched. Let's make the module!
sudo cp /usr/src/linux-headers-$(uname -r)/.config ./
sudo make modules_prepare
sudo make -C /usr/src/linux-source-2.6.28/ M=/usr/src/linux-source-2.6.28/net/mac80211/ modules
sudo cp /usr/src/linux-source-2.6.28/net/mac80211/modules.order ./
shouldn't have any more issues... now let's install the bugger!
sudo make modules_install
aaaand let's load it!
depmod -ae
modprobe b43
Now, you shouldn't have to reboot..
Test it out and see if it works.
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor channel 6
sudo ifconfig wlan0 up
sudo aireplay -9 wlan0
Should see "injection is working"
if not, you broke it and owe me a twinky!
NOTE: in the beginning of everything if you don't want to type "sudo" for everything simply type "sudo -s" and that should make you root in the current dir you're in.
to go back into "managed mode" so that you can actually use the Internet.
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed channel 6 essid YOUR-AP-HERE key INSERT-SPECIAL-PASSWORD-HERE
sudo ifconfig wlan0 up
and you should be hunky-dori!
That's at least what I did and worked for me :)
NOTE/UPDATE: I noticed that I haven't added a bunch of "sudo"'s where they needed to be, thus causing the issue below. If you want to save yourself the trouble of writing "sudo" before starting anything type
sudo -i
than do the rest of the stuff minus the sudo.
so, I figured I'd post a how-to I guess you could call it.
[Needed files]
mac80211 patch - mac80211_2.6.28-rc4-wl_frag+ack_v3.patch (http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch)
First it's nice to keep your packages updated so let's update / upgrade any packages.
sudo apt-get update && sudo apt-get upgrade
Yehah! Up-to-date!
Now, install the source as well as the compiling utils.
cd /usr/src
sudo apt-get install linux-source-2.6.28 build-essential gawk bison linux-kernel-headers linux-headers-$(uname -r)
Right! If you see what's in the directory you should see linux-source-2.6.28.tar.gz2 if not.. sorry. I screwed up somewhere and I don't feel like backtracing. You get the general impression.
Moving on! Unzip it the source!
sudo tar -xjf linux-source-2.6.28.tar.gz2
cd linux-source-2.6.28/
Time to patch!
sudo wget http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch && sudo patch -p1 < mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
Paaaaaaaatched. Let's make the module!
sudo cp /usr/src/linux-headers-$(uname -r)/.config ./
sudo make modules_prepare
sudo make -C /usr/src/linux-source-2.6.28/ M=/usr/src/linux-source-2.6.28/net/mac80211/ modules
sudo cp /usr/src/linux-source-2.6.28/net/mac80211/modules.order ./
shouldn't have any more issues... now let's install the bugger!
sudo make modules_install
aaaand let's load it!
depmod -ae
modprobe b43
Now, you shouldn't have to reboot..
Test it out and see if it works.
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor channel 6
sudo ifconfig wlan0 up
sudo aireplay -9 wlan0
Should see "injection is working"
if not, you broke it and owe me a twinky!
NOTE: in the beginning of everything if you don't want to type "sudo" for everything simply type "sudo -s" and that should make you root in the current dir you're in.
to go back into "managed mode" so that you can actually use the Internet.
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed channel 6 essid YOUR-AP-HERE key INSERT-SPECIAL-PASSWORD-HERE
sudo ifconfig wlan0 up
and you should be hunky-dori!
That's at least what I did and worked for me :)
NOTE/UPDATE: I noticed that I haven't added a bunch of "sudo"'s where they needed to be, thus causing the issue below. If you want to save yourself the trouble of writing "sudo" before starting anything type
sudo -i
than do the rest of the stuff minus the sudo.