Add files via upload

This commit is contained in:
PYDT authored and GitHub committed 2023-10-07 14:10:49 +08:00
1 parent 8990b97a32
commit 32987c1274
1 file changed
+2 -5
+2 -5
View File
@@ -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("\\", "/")