Add files via upload

This commit is contained in:
PYDT authored and GitHub committed 2024-02-10 20:01:52 +08:00
1 parent fa0ff826a3
commit 1d26e46bd9
1 file changed
+2 -2
+2 -2
View File
@@ -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: