From 5925a80d3bb2f1283ffab03abe963c82f824965a Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:19:31 +0800 Subject: [PATCH] Add files via upload --- PYAS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PYAS.py b/PYAS.py index 98d7776..eb50b87 100644 --- a/PYAS.py +++ b/PYAS.py @@ -1261,15 +1261,16 @@ class MainWindow_Controller(QMainWindow): while self.mbr_protect and self.mbr_value: try: time.sleep(0.5) - file = self.proc.exe().replace("\\", "/") with open(r"\\.\PhysicalDrive0", "r+b") as f: if self.mbr_value[510:512] != b'\x55\xAA': self.proc.kill() + file = self.proc.exe().replace("\\", "/") self.send_notify(self.trans("惡意行為攔截: ")+file) elif f.read(512) != self.mbr_value: f.seek(0) f.write(self.mbr_value) self.proc.kill() + file = self.proc.exe().replace("\\", "/") self.send_notify(self.trans("惡意行為攔截: ")+file) except: pass