From 1d26e46bd9e447ea8edfd5772075e76ecebb35d2 Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:01:52 +0800 Subject: [PATCH] Add files via upload --- PYAS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PYAS.py b/PYAS.py index c2fc9e3..f47dc5f 100644 --- a/PYAS.py +++ b/PYAS.py @@ -1257,9 +1257,9 @@ class MainWindow_Controller(QMainWindow): for p in psutil.process_iter(): try: if p.pid not in existing_processes: - psutil.Process(p.pid).suspend() name, file, cmd = p.name(), p.exe().replace("\\", "/"), p.cmdline() if file != self.pyas and file not in self.whitelist: + psutil.Process(p.pid).suspend() if "powershell" in name and self.api_scan(cmd[-1].split("'")[-2]): p.kill() file = cmd[-1].split("'")[-2].replace("\\", "/") @@ -1278,7 +1278,7 @@ class MainWindow_Controller(QMainWindow): elif ":/Windows" not in file and self.sign_scan(file): existing_processes.add(p.pid) self.proc = p - psutil.Process(p.pid).resume() + psutil.Process(p.pid).resume() elif not psutil.pid_exists(p.pid): existing_processes.remove(p.pid) except: