Skip to content

Commit

Permalink
Exphash from sha256 to md5 to match imphash
Browse files Browse the repository at this point in the history
  • Loading branch information
N0fix authored Jul 7, 2023
1 parent 593d094 commit 8ccc16b
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 @@ -5900,7 +5900,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 8ccc16b

Please sign in to comment.