Created
November 12, 2018 18:41
-
-
Save TheNaterz/c1f6aea1b54af9e836ae57a9e357d7e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pefile | |
f = sys.argv[1] | |
pe = pefile.PE(f) | |
for exp in pe.DIRECTORY_ENTRY_EXPORT.symbols: | |
if b'Reflective' in exp.name: | |
print(pe.get_offset_from_rva(exp.address)) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment