Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
87owo authored Mar 1, 2024
1 parent 6f05974 commit e119e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PYAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,10 @@ def pe_scan(self, file):
except:
pass
m1, m0 = self.pe.predict(fn)
#print(m1, m0, file)
#print(m1 - m0, file)
if self.json["high_sensitive"]:
return m1 >= m0
return m1 >= 0.9 and m1 > m0
return m1 - m0 > 0.03
except:
return False

Expand Down Expand Up @@ -1289,7 +1289,7 @@ def protect_file_thread(self):
ftype = str(f".{fpath.split('.')[-1]}").lower()
if action == 2 and ":/Users" in fpath and "/AppData/" not in fpath:
file = self.proc.exe().replace("\\", "/")
if ":/Program" not in file and ftype in alist:
if ":/Program" not in file and "/AppData/" not in file and ftype in alist:
self.kill_process(self.proc)
self.send_notify(self.trans("勒索行為攔截: ")+file)
elif action == 3 and ":/Users" in fpath and ":/Windows" not in fpath:
Expand Down
2 changes: 1 addition & 1 deletion PYAS_Model.json

Large diffs are not rendered by default.

0 comments on commit e119e34

Please sign in to comment.