Abandoning all ye hope
This commit is contained in:
parent
186b4f40cf
commit
69a49be099
14
Beginning.py
14
Beginning.py
|
@ -8,6 +8,14 @@ finally:
|
|||
|
||||
# encode file as hexadecimal
|
||||
SOSHex = SOS.encode('hex_codec')
|
||||
print SOSHex[0x10:0x14]
|
||||
SOSstruct = struct.unpack('< f', SOS[0x10:0x14])
|
||||
print SOSstruct
|
||||
|
||||
#Search for 0x2205 byte pair
|
||||
print 'Searching for first bytepair...'
|
||||
SOSfindbyte = SOSHex.find('2205')
|
||||
print 'I found it.'
|
||||
|
||||
#Reorder for Little Endian
|
||||
MSB = SOSHex[SOSfindbyte+2:SOSfindbyte+4]
|
||||
LSB = SOSHex[SOSfindbyte:SOSfindbyte+2]
|
||||
|
||||
print "In File: " + LSB, MSB + "\nLittle Endian: " + MSB, LSB
|
||||
|
|
Loading…
Reference in New Issue