Skip to content

Instantly share code, notes, and snippets.

@h4z31
Created October 15, 2018 12:59
Show Gist options
  • Save h4z31/98062f74278f3733d702bf96fbaa21e3 to your computer and use it in GitHub Desktop.
Save h4z31/98062f74278f3733d702bf96fbaa21e3 to your computer and use it in GitHub Desktop.
[snippet] dump PE surface information by LIEF
# coding: utf-8
import lief
binary = lief.parse("C:\\Windows\\explorer.exe")
with open("a.json", 'w') as f:
f.write(lief.to_json(binary).encode('utf-8'))
@h4z31
Copy link
Author

h4z31 commented Oct 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment