Skip to content

Instantly share code, notes, and snippets.

@TheNaterz
Created November 12, 2018 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNaterz/c1f6aea1b54af9e836ae57a9e357d7e1 to your computer and use it in GitHub Desktop.
Save TheNaterz/c1f6aea1b54af9e836ae57a9e357d7e1 to your computer and use it in GitHub Desktop.
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