Skip to content

Commit

Permalink
Fixed issue due to recent change in peid
Browse files Browse the repository at this point in the history
  • Loading branch information
dhondta committed Jan 20, 2024
1 parent b2a680d commit 769f461
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [
]
dependencies = [
"pefile",
"peid>=1.1.0",
"peid>=2.0.0",
]
dynamic = ["version"]

Expand Down
2 changes: 1 addition & 1 deletion src/pypackerdetect/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
4 changes: 2 additions & 2 deletions src/pypackerdetect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def __add(i, msg):
if self.__config['peid']:
db = os.path.join(os.path.dirname(__file__), "db", "sigs_long.txt") if self.__config['peid_large_db'] \
else os.path.join(os.path.dirname(__file__), "db", "sigs_short.txt")
for m in peid.identify_packer(pe, db=db, ep_only=self.__config['peid_ep_only'], logger=self.logger):
if len(m[1]) > 0:
for m in peid.identify_packer(pe.path, db=db, ep_only=self.__config['peid_ep_only'], logger=self.logger):
if len(m[1] or []) > 0:
__add(0, "Found PEID signature: %s" % ", ".join(m[1]))
return r

Expand Down

0 comments on commit 769f461

Please sign in to comment.