Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import re
  2. from sys import argv
  3.  
  4. formats = {'\x10':'rgb5a1', '\x50':'ci*', '\x70':'ia*', '\x90':'i*'}
  5.  
  6. file = open(argv[1], 'rb').read()
  7.  
  8. texs = re.findall('\xfd(.)\x00\x00\x06(...)', file)
  9. tes = []
  10.  
  11. for i in texs:
  12.     tes.append((i[1], i[0]))
  13.  
  14. tes = list(set(tes))
  15. tes.sort()
  16.  
  17. for i in tes:
  18.     print hexlify(i[0]), formats[i[1]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement