HOWTO : Patch AirCrack-NG For 5GHz Band On Kali Linux 2017.3

Since AirCrack-NG release 1.2rc4 and github repository commit number 7552fdc do not detect 5GHz channel number properly, you need to use jpmv27's repository for the workaround till official is patched in the next release.



The following is the best way than this as it uses the latest source of AirCrack-NG from GitHub.



Step 1 :



apt install pkg-config libssl-dev libsqlite3-dev libnl-3-dev libnl-genl-3-dev libpcre3-dev



Step 2 :



To patch for 5GHz band :



git clone https://github.com/aircrack-ng/aircrack-ng

cd aircrack-ng/src



wget https://github.com/jpmv27/aircrack-ng/commit/8199c04357ea05daaf2de2ae7eebb28d30baef87.patch



patch < 8199c04357ea05daaf2de2ae7eebb28d30baef87.patch




Step 3 :



To fix a typo :



nano bessid-ng.c



Replace line 709 where



err(1, "wi_wirte()");



to



err(1, "wi_write()");



Step 4 :



make

make install




Important



Make sure not to uninstall aircrack-ng by "apt" command as it will also uninstall some useful packages at the same time.



Kali Linux's Aircrack-ng is installed at /usr/bin and /usr/sbin while GitHub's Aircrack-ng is installed at /usr/local/bin and /usr/local/sbin. The $PATH will search for /usr/local first. Therefore, you will run GitHub version instead of original one.



When Kali Linux updated AirCrack-ng, you can uninstall the GitHub version by the following command when the source code is still there :



cd aircrack-ng

make clean

make uninstall




Remarks :



If using WAIDPS, make sure to use v1.0 R.6d (or newer) as it fixed for the newer aireplay-ng display.



Reference



5GHz Patch

Typo Patch



That's all! See you.