Skip to content

Conversation

LloydLabs
Copy link

Much like an imphash, an exphash is simply a SHA-256 hash of the exports defined in the Export Address Table. This is helpful for comparing PE files which export functions, which can then be compared to others.

I used SHA-256, but if the maintainers wish to use MD5 to stay inline with the current get_imphash method - please leave a comment on this PR.

If no exports are found, an empty string is simply returned. This PR does not modify any other existing functionality within pefile.

A SHA-256 hash of the exports outlined in the EAT
@erocarrera erocarrera merged commit b34683c into erocarrera:master Feb 1, 2023
erocarrera added a commit that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants