From 64a58760ce8561ccfd0751b76e45a60ebd56eff5 Mon Sep 17 00:00:00 2001 From: Cutieguwu <109807080+Cutieguwu@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:05:13 -0500 Subject: [PATCH] Update Detectowor.py --- Detectowor.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Detectowor.py b/Detectowor.py index 9a59234..65cfe34 100644 --- a/Detectowor.py +++ b/Detectowor.py @@ -56,8 +56,6 @@ def scan(): threats_found = [] threats_found.append(current_search_object[l]) print(current_search_object[l], "Found in system. Possible threat detected!") - else: - pass def scan_summary(): global threats_found @@ -67,8 +65,6 @@ def scan_summary(): if len(threats_found) > 0: for _ in threats_found: print("FOUND:", _) - else: - pass def run(): __DEBUG.run("Checking OS") @@ -77,7 +73,7 @@ def run(): __DEBUG.run("Windows system detected.") print("Ending here; Windows is not supported.") - exit() + raise SystemExit elif osname == "posix": @@ -98,7 +94,10 @@ def run(): scan() scan_summary() - exit() + raise SystemExit + else: + __DEBUG.run("Unknown System detected. Exiting") + if __name__ == '__main__': try: