Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- from sys import argv
- formats = {'\x10':'rgb5a1', '\x50':'ci*', '\x70':'ia*', '\x90':'i*'}
- file = open(argv[1], 'rb').read()
- texs = re.findall('\xfd(.)\x00\x00\x06(...)', file)
- tes = []
- for i in texs:
- tes.append((i[1], i[0]))
- tes = list(set(tes))
- tes.sort()
- for i in tes:
- print hexlify(i[0]), formats[i[1]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement