mirror of
https://github.com/thecompu/Driv3rs.git
synced 2024-06-12 04:29:31 +00:00
14 lines
340 B
Python
14 lines
340 B
Python
import struct
|
|
import binascii
|
|
SOSfile = open('SOSCFFA.DRIVER', 'rb')
|
|
try:
|
|
SOS = SOSfile.read()
|
|
finally:
|
|
SOSfile.close()
|
|
|
|
SOSSlice = SOS.encode('hex_codec')[0x10:0x14]
|
|
print '0x' + SOSSlice
|
|
SOSunhexlify = binascii.unhexlify(SOSSlice)
|
|
print 'Unhexlified: ' + SOSunhexlify
|
|
SOSstruct = str(struct.pack('>2s', SOSunhexlify)[0])
|