Advertisement
Guest User

solveeeeee

a guest
Aug 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.38 KB | None | 0 0
  1. """
  2. length = 0x4020b7 - 0x402008
  3. bytearr = []
  4. s = (GetManyBytes(0x402008,length))
  5. for i in s:
  6.    bytearr.append(hex((ord(i))))
  7. print bytearr
  8. """
  9.  
  10. import sys
  11. text = ""
  12. temp = []
  13.  
  14. s = ['0xe0', '0x81', '0x89', '0xc0', '0xa0', '0xc1', '0xae', '0xe0', '0x81', '0xa5', '0xc1', '0xb6', '0xf0', '0x80', '0x81', '0xa5', '0xe0', '0x81', '0xb2', '0xf0', '0x80', '0x80', '0xa0', '0xe0', '0x81', '0xa2', '0x72', '0x6f', '0xc1', '0xab', '0x65', '0xe0', '0x80', '0xa0', '0xe0', '0x81', '0xb4', '0xe0', '0x81', '0xa8', '0xc1', '0xa5', '0x20', '0xc1', '0xa5', '0xe0', '0x81', '0xae', '0x63', '0xc1', '0xaf', '0xe0', '0x81', '0xa4', '0xf0', '0x80', '0x81', '0xa9', '0x6e', '0xc1', '0xa7', '0xc0', '0xba', '0x20', '0x49', '0xf0', '0x80', '0x81', '0x9f', '0xc1', '0xa1', '0xc1', '0x9f', '0xc1', '0x8d', '0xe0', '0x81', '0x9f', '0xc1', '0xb4', '0xf0', '0x80', '0x81', '0x9f', '0xf0', '0x80', '0x81', '0xa8', '0xc1', '0x9f', '0xf0', '0x80', '0x81', '0xa5', '0xe0', '0x81', '0x9f', '0xc1', '0xa5', '0xe0', '0x81', '0x9f', '0xf0', '0x80', '0x81', '0xae', '0xc1', '0x9f', '0xf0', '0x80', '0x81', '0x83', '0xc1', '0x9f', '0xe0', '0x81', '0xaf', '0xe0', '0x81', '0x9f', '0xc1', '0x84', '0x5f', '0xe0', '0x81', '0xa9', '0xf0', '0x80', '0x81', '0x9f', '0x6e', '0xe0', '0x81', '0x9f', '0xe0', '0x81', '0xa7', '0xe0', '0x81', '0x80', '0xf0', '0x80', '0x81', '0xa6', '0xf0', '0x80', '0x81', '0xac', '0xe0', '0x81', '0xa1', '0xc1', '0xb2', '0xc1', '0xa5', '0xf0', '0x80', '0x80', '0xad', '0xf0', '0x80', '0x81', '0xaf', '0x6e', '0xc0', '0xae', '0xf0', '0x80', '0x81', '0xa3', '0x6f', '0xf0', '0x80', '0x81', '0xad','0x0']
  15. a3 = 28
  16.  
  17. def manipulate(i):
  18.  
  19.     v3 = 0
  20.     v4 = 0
  21.     if int(s[i],16) >> 3 == 30:
  22.         v4 =  (int(s[i+3],16)&0x3f) |  ((int(s[i+2],16) & 0x3f)<<6) | ((int(s[i+1],16)&0x3f)<<12) | ((int(s[i+7],16)&7)<<18)
  23.         v3 = 4
  24.     elif int(s[i],16)>> 4 == 14:
  25.         v4 =  (int(s[i+2] ,16)&0x3f) |  ((int(s[i+1],16) & 0x3f)<<6) | ((int(s[i+0],16)&0xf)<<12)
  26.         v3 = 3
  27.     elif  int(s[i],16)>> 5 == 6:
  28.         v4 = (int(s[i+1],16)&0x3f) |  ((int(s[i+0],16) & 0x1f)<<6)
  29.         v3 = 2
  30.     else:
  31.         v4 = (int(s[i],16))
  32.         v3 = 1
  33.     temp.append(v4)
  34.     return v3
  35.  
  36. for i in range(1):
  37.     index = i
  38.     for _ in range(56):
  39.         index += manipulate(index)
  40.         #print "index : "  + str(index)
  41.        
  42.     print("")
  43. for i in temp:
  44.     if not i > 0x400:
  45.         sys.stdout.write( chr(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement