mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-01 22:59:33 +00:00
Add a test file that uses the bindings.
This commit is contained in:
parent
a928a15b8b
commit
14e2848aa2
12
python/test.py
Executable file
12
python/test.py
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/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)
|
Loading…
x
Reference in New Issue
Block a user