From 32987c12745af4e175b373365e9fbca53981388d Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:10:49 +0800 Subject: [PATCH] Add files via upload --- PYAS.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PYAS.py b/PYAS.py index 148a302..d52fc92 100644 --- a/PYAS.py +++ b/PYAS.py @@ -1143,10 +1143,7 @@ class MainWindow_Controller(QMainWindow): elif "cmd.exe" in name and self.api_scan(" ".join(cmd[2:])): p.kill() self.send_notify(self.trans("惡意腳本攔截: ")+name) - elif "msiexec.exe" in name and self.api_scan(cmd[-1]): - p.kill() - self.send_notify(self.trans("惡意軟體攔截: ")+name) - elif self.scr_scan(cmd) or self.api_scan(file): + elif self.scr_scan(cmd) or self.api_scan(cmd[-1]): p.kill() self.send_notify(self.trans("惡意軟體攔截: ")+name) elif file != self.pyas and file not in self.whitelist: @@ -1170,7 +1167,7 @@ class MainWindow_Controller(QMainWindow): self.proc.kill() self.ransom_block = False self.send_notify(self.trans("勒索軟體攔截: ")+self.proc.name()) - elif "/AppData/" not in file: + elif "AppData" not in file: self.ransom_block = True elif action == 3 and str(f".{file.split('.')[-1]}").lower() in slist: file = str(f"C:/Users/{file}").replace("\\", "/")