From b218f60b4217b4785f168f4cd3f875f7214241d7 Mon Sep 17 00:00:00 2001 From: Abir Abedin Khan <67215274+abirabedinkhan@users.noreply.github.com> Date: Sat, 12 Nov 2022 17:56:02 +0600 Subject: [PATCH] regex fix There wlp interface in some laptop ```^wlp[A-Za-z0-9]+|^wlan[0-9]+``` this needs to be added --- wifi_dos_type1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi_dos_type1.py b/wifi_dos_type1.py index 42ebb32..0ed03a6 100644 --- a/wifi_dos_type1.py +++ b/wifi_dos_type1.py @@ -79,7 +79,7 @@ def check_for_essid(essid, lst): shutil.move(file_name, directory + "/backup/" + str(timestamp) + "-" + file_name) # Regex to find wireless interfaces. We're making the assumption they will all be wlan0 or higher. -wlan_pattern = re.compile("^wlan[0-9]+") +wlan_pattern = re.compile("^wlp[A-Za-z0-9]+|^wlan[0-9]+") # Python allows is to run system commands by using a function provided by the subprocess module. # subprocess.run()