Skip to content

Commit

Permalink
Merge pull request #377 from N0fix/master
Browse files Browse the repository at this point in the history
Exphash from sha256 to md5 to match imphash
  • Loading branch information
erocarrera authored Jan 11, 2024
2 parents d0eae2a + 8ccc16b commit b20afc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5845,7 +5845,7 @@ def get_exphash(self):
if len(export_list) == 0:
return ""

return sha256(",".join(export_list).encode()).hexdigest()
return md5(",".join(export_list).encode()).hexdigest()

def parse_import_directory(self, rva, size, dllnames_only=False):
"""Walk and parse the import directory."""
Expand Down

0 comments on commit b20afc5

Please sign in to comment.