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 Feb 16, 2025
1 parent 2e7628a commit b160d2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PYAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def init_config_pyas(self):

def init_config_vars(self): # 初始化變數
self.pyae_version = "AI Engine"
self.pyas_version = "3.2.9"
self.pyas_version = "3.3.0"
self.mbr_value = None
self.track_proc = None
self.first_startup = 1
Expand Down
6 changes: 4 additions & 2 deletions PYAS_Engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def is_text_file(self, content, sample_size):
try:
raw_data = content[:sample_size]
encoding = chardet.detect(raw_data)["encoding"]
if encoding and raw_data.decode(encoding):
return True
if encoding in ["ascii", "utf-8", "utf-8-sig"]:
if raw_data.decode(encoding):
return True
return False
except:
return False
Expand All @@ -143,6 +144,7 @@ def get_type(self, file_path):
name = section.Name.rstrip(b'\x00').decode('latin1')
if (section.Characteristics & 0x00000020 and not
any(s in name.lower() for s in self.shells)):
print(name)
match_data[name] = section.get_data()
except:
with open(file_path, 'rb') as f:
Expand Down
2 changes: 1 addition & 1 deletion PYAS_Version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version='3.2.9',
version='3.3.0',
company_name="PYAS Security",
file_description="Python Antivirus Software",
internal_name="PYAS",
Expand Down

0 comments on commit b160d2f

Please sign in to comment.