mirror of
https://github.com/thecompu/Driv3rs.git
synced 2024-06-11 13:29:32 +00:00
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
|
# encode file as hexadecimal
|
||||||
SOSHex = SOS.encode('hex_codec')
|
SOSHex = SOS.encode('hex_codec')
|
||||||
print SOSHex[0x10:0x14]
|
|
||||||
SOSstruct = struct.unpack('< f', SOS[0x10:0x14])
|
#Search for 0x2205 byte pair
|
||||||
print SOSstruct
|
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
Block a user