mirror of
https://github.com/thecompu/Driv3rs.git
synced 2025-01-18 16:30:07 +00:00
Initial
This commit is contained in:
commit
26d01b2e79
14
Beginning.py
Normal file
14
Beginning.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import struct
|
||||||
|
import binascii
|
||||||
|
SOSfile = open('SOSCFFA.DRIVER', 'rb')
|
||||||
|
try:
|
||||||
|
SOS = SOSfile.read()
|
||||||
|
finally:
|
||||||
|
SOSfile.close()
|
||||||
|
|
||||||
|
SOSSlice = SOS.encode('hex_codec')[0x10:0x14]
|
||||||
|
print '0x' + SOSSlice
|
||||||
|
SOSstruct = str(struct.pack('>2s', SOSSlice) [0])
|
||||||
|
print 'Packed: ' + SOSstruct
|
||||||
|
SOSunhexlify = binascii.unhexlify(SOSstruct)
|
||||||
|
print 'Unhexlified: ' + SOSunhexlify
|
BIN
SOSCFFA.DRIVER
Normal file
BIN
SOSCFFA.DRIVER
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user