mirror of
https://github.com/thecompu/Driv3rs.git
synced 2025-01-07 20:31:35 +00:00
Simplifying
This commit is contained in:
parent
187d3a2651
commit
157569bb20
@ -6,8 +6,6 @@ try:
|
||||
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])
|
||||
#Slice two bytes
|
||||
SOSSlice = SOS[0x10:0x11]
|
||||
SOSstruct = struct.unpack('< H', SOSSlice[0])
|
||||
|
Loading…
Reference in New Issue
Block a user