Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Export Hash Method #354

Merged
merged 1 commit into from
Feb 1, 2023
Merged

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