Notice»

Recent Post»

Recent Comment»

Recent Trackback»

Archive»

« 2026/1 »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

[Python] binary 파일 역 변환

카테고리 없음 | 2016. 4. 25. 18:54 | Posted by binaryU

import sys, binascii


f = open(sys.argv[1], 'rb')

data = f.read()

f.close()


tmp = binascii.hexlify(data)


output = open(sys.argv[1] + '_output.jpg', 'wb')

output.write(binascii.unhexlify(tmp[::-1]))

output.close



: