Got the same problem on 14.04:
ii aircrack-ng 1:1.1-6 amd64 wireless WEP/WPA cracking utilities
ii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compiler
ii gcc-4.8 4.8.2-19ubuntu1 amd64 GNU C compiler
The problem is that in /usr/sbin/airdriver-ng we have this:
#check if gcc version matches the kernel gcc version
gccvers="`$GCC --version | head -n 1 | sed 's/^[^ ]* [^ ]* \([2-4]..*\)$/\1/'`"
ret="`cat /proc/version | grep "$gccvers"`"
if [ x"$ret" == x ]
then
echo "Your current GCC version doesn't match the version your kernel was compiled with."
echo "The build modules will probably not load into the running kernel."
fi
but
root@dell:~# gcc --version | head -n 1 | sed 's/^[^ ]* [^ ]* \([2-4]..*\)$/\1/'
4.8.2-19ubuntu1) 4.8.2
root@dell:~# cat /proc/version
Linux version 3.13.0-24-generic (buildd@panlong) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014
so the version check fails although the versions match.
Changing the sed to 's/^[^ ]* [^ ]* \([2-4]..*\)).*$/\1/' gets you past that point, but then (on kubuntu 14.04) if you don't have the kernel sources in place you hit
1. Getting the source...Couldn't find the correct driver file: linux-3.3.13.0-24-generic.3.13.0-24-generic.tar.bz2
"v2.6" is hardcoded in the script, so it won't work for 3.x source fetching.
Then looking furhter in the script I found that at least for my case (broadcom chipset), it probably will fail the kernel patching, because the script also has the patch for kernel 2.6 hardcoded:
At this point I conclude that aircrack-ng was poorly (or not at all) integrated to ubuntu, so I'm going to look for a live dvd pentest distro for my tests.
Got the same problem on 14.04:
ii aircrack-ng 1:1.1-6 amd64 wireless WEP/WPA cracking utilities
ii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compiler
ii gcc-4.8 4.8.2-19ubuntu1 amd64 GNU C compiler
The problem is that in /usr/sbin/ airdriver- ng we have this:
#check if gcc version matches the kernel gcc version ..*\)$/ \1/'`"
gccvers="`$GCC --version | head -n 1 | sed 's/^[^ ]* [^ ]* \([2-4]
ret="`cat /proc/version | grep "$gccvers"`"
if [ x"$ret" == x ]
then
echo "Your current GCC version doesn't match the version your kernel was compiled with."
echo "The build modules will probably not load into the running kernel."
fi
but
root@dell:~# gcc --version | head -n 1 | sed 's/^[^ ]* [^ ]* \([2-4]..*\)$/\1/'
4.8.2-19ubuntu1) 4.8.2
root@dell:~# cat /proc/version
Linux version 3.13.0-24-generic (buildd@panlong) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014
so the version check fails although the versions match.
Changing the sed to 's/^[^ ]* [^ ]* \([2-4] ..*\)). *$/\1/' gets you past that point, but then (on kubuntu 14.04) if you don't have the kernel sources in place you hit
1. Getting the source...Couldn't find the correct driver file: linux-3. 3.13.0- 24-generic. 3.13.0- 24-generic. tar.bz2
because the script can't handle the 3.xx.x kernel version string and looks for kernel. org/pub/ linux/kernel/ v2.6/linux- 3.3.13. 0-24-generic. 3.13.0- 24-generic. tar.bz2
ftp://ftp.
"v2.6" is hardcoded in the script, so it won't work for 3.x source fetching.
Then looking furhter in the script I found that at least for my case (broadcom chipset), it probably will fail the kernel patching, because the script also has the patch for kernel 2.6 hardcoded:
DI_PATCHFILE[ $i]="bcm43xx- injection- linux-2. 6.20.patch"
At this point I conclude that aircrack-ng was poorly (or not at all) integrated to ubuntu, so I'm going to look for a live dvd pentest distro for my tests.