mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-28 13:24:32 +00:00
13 lines
238 B
Python
Executable File
13 lines
238 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import pepy
|
|
from pprint import pprint
|
|
|
|
p = pepy.parse(sys.argv[1])
|
|
ep = p.get_entry_point()
|
|
byts = p.get_bytes(ep, 8)
|
|
print "Bytes at 0x%x: %s" % (ep, byts)
|
|
for sect in p.get_sections():
|
|
pprint(sect)
|