This commit is contained in:
ultramagnus_tcv 2015-07-28 13:46:34 -05:00
commit 26d01b2e79
2 changed files with 14 additions and 0 deletions

14
Beginning.py Normal file
View File

@ -0,0 +1,14 @@
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
SOSstruct = str(struct.pack('>2s', SOSSlice) [0])
print 'Packed: ' + SOSstruct
SOSunhexlify = binascii.unhexlify(SOSstruct)
print 'Unhexlified: ' + SOSunhexlify

BIN
SOSCFFA.DRIVER Normal file

Binary file not shown.