Simplifying

This commit is contained in:
ultramagnus_tcv 2015-07-28 18:22:59 -05:00
parent 187d3a2651
commit 157569bb20

View File

@ -6,8 +6,6 @@ try:
finally: finally:
SOSfile.close() SOSfile.close()
SOSSlice = SOS.encode('hex_codec')[0x10:0x14] #Slice two bytes
print '0x' + SOSSlice SOSSlice = SOS[0x10:0x11]
SOSunhexlify = binascii.unhexlify(SOSSlice) SOSstruct = struct.unpack('< H', SOSSlice[0])
print 'Unhexlified: ' + SOSunhexlify
SOSstruct = str(struct.pack('>2s', SOSunhexlify)[0])