mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-28 05:14:33 +00:00
16 lines
347 B
Python
Executable File
16 lines
347 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import time
|
|
import pepy
|
|
|
|
from pprint import pprint
|
|
|
|
p = pepy.parse(sys.argv[1])
|
|
ep = p.get_entry_point()
|
|
byts = p.get_bytes(ep, 8)
|
|
print "Timedatestamp: %s" % time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(p.timedatestamp))
|
|
print "Bytes at 0x%x: %s" % (ep, byts)
|
|
for sect in p.get_sections():
|
|
pprint(sect)
|