diff --git a/misc/pagehash.py b/misc/pagehash.py new file mode 100644 index 0000000..2ac5008 --- /dev/null +++ b/misc/pagehash.py @@ -0,0 +1,139 @@ +#!/usr/bin/python + +import struct +import sys +import hashlib +from pyasn1.type import univ +from pyasn1.codec.ber import encoder, decoder + +f = open(sys.argv[1], 'rb') +b = f.read(1024) +if b[0:2] != 'MZ': + print "Not a DOS file." + sys.exit(0) +pepos = struct.unpack('