mirror of
https://github.com/thecompu/Driv3rs.git
synced 2025-01-09 02:30:37 +00:00
Simplifying
This commit is contained in:
parent
187d3a2651
commit
157569bb20
@ -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])
|
|
||||||
|
Loading…
Reference in New Issue
Block a user