Ubuntu 12.04安装最新 Reaver和 aircrack

主要步骤:
1. 下载工具软件源代码
2. 安装必要的软件依赖库和工具
3. aircrack-ng
4. reaver
5. =)

下载源码

从这个网址下载 reaver源代码 wget

Ubuntu 12.04安装最新 Reaver和 aircrack-ng 无线网络破解工具

解压 tar -xzvf reaver-1.4.tar.gz

安装必要的软件依赖库和工具
在您编译 reaver前需要先安装 pcaplib等工具,后面还需要 aircrack-ng sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev

编译和安装
配置和编译 Reaver
cd reaver-1.4 cd src ./configure make
安装 Reaver
sudo make install

下载 aircrack-ng 源代码并编译
Ubuntu 12.04版本开始 aircrack-ng不再被包含在版本软件仓库中,不过我们可以从网上下载它的源代码进行编译安装。编译安装中有个小技巧,不做的话将导致编译不成功,如下:

@linuxidc:~/aircrack-ng-1.1$ make make -C src all make[1]: Entering directory `/home/johan/aircrack-ng-1.1/src’ make -C osdep make[2]: Entering directory `/home/johan/aircrack-ng-1.1/src/osdep’ Building for Linux make[3]: Entering directory `/home/johan/aircrack-ng-1.1/src/osdep’ gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o osdep.o osdep.c gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o network.o network.c gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c linux.c: In function ‘is_ndiswrapper’: linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘linux_set_rate’: linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘linux_set_channel’: linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘linux_set_freq’: linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘set_monitor’: linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘do_linux_open’: linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable] linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable] linux.c: In function ‘get_battery_state’: linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make[3]: *** [linux.o] Error 1 make[3]: Leaving directory `/home/johan/aircrack-ng-1.1/src/osdep’ make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/johan/aircrack-ng-1.1/src/osdep’

make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/johan/aircrack-ng-1.1/src’
make: *** [all] Error 2

下面是在 Ubuntu 12.04中编译安装 aircrack-ng的步骤
sudo apt-get install build-essential
sudo apt-get install libssl-dev
wget
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
用 vi编辑器打开文件 common.mak vi common.mak
找到下面这一行
CFLAGS ?= -g -W -Wall -Werror -O3
去掉 “-Werror”选项,去掉后这一行如下: CFLAGS ?= -g -W -Wall -O3
保存文件,接下来编译和安装
make
sudo make install

运行
现在已经安装完毕可以用了。您需要先将无线网卡用刚才安装的 aircrack-ng工具包里面的 airmon-ng 设置成监听模式。
首先设置无线网卡的监听模式
sudo airmon-ng start wlan0
运行 Reaver
sudo reaver -i mon0 -b 00:00:00:00:00:00
用您的目标 AP SSID MAC替换上面的 00:00:00:00:00:00后即可开始破解。本方法经我验证同样适合 reaver 1.3版本的安装。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21851.html