Ubuntu 12.04安装最新Reaver 和aircrack-ng
无线网络破解工具
<;文>苏州安信络QQ 951410471
--------------------------------------------------------------------------------------------------------
本文介绍在Ubuntu 12.04 LTS版本上安装和配置最近火热的WIFI无线网络密码恢复和破解工具Reaver及配套的aircrack-ng工具包。
主要步骤:
1.下载工具软件源代码
2.安装必要的软件依赖库和工具
3.下载和编译aircrack-ng
4.编译和安装reaver
5.开工运行=)
下载源码
从这个网址下载reaver源代码le/p/reaver-wps
wget lecode/files/reaver-1.
解压
tar -xzvf reaver-1.
安装必要的软件依赖库和工具
在您编译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不再被包含在版本软件仓库中,不过我们可以从网上下载它的源代码进行编译安装。编译安装中有个小技巧,不做的话将导致编译不成功,如下:johan@ubuntu-lab:~/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 /aircrack-ng-1.
tar -zxvf aircrack-ng-1.好冷啊
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版本的安装。
<120429>
小动物的文章
发布评论