Advertisement
AbsoluteGamer

Gamesave Decryptor (Geometry Dash)

Jun 6th, 2017
11,322
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 1 0
  1. import base64,zlib,os
  2.  
  3. saves = ['CCGameManager.dat','CCLocalLevels.dat']
  4.  
  5. def Xor(path,key):
  6.     fr = open(path,'rb')
  7.     data = fr.read()
  8.     fr.close()
  9.    
  10.     res = []
  11.     for i in data:
  12.         res.append(i^key)
  13.     return bytearray(res).decode()
  14.  
  15. def Decrypt(data):
  16.     return zlib.decompress(base64.b64decode(data.replace('-','+').replace('_','/').encode())[10:],-zlib.MAX_WBITS)
  17.  
  18. for x in range(2):
  19.     fPath = os.getenv('localappdata')+'\\GeometryDash\\'
  20.     res = Xor(fPath+saves[x],11)
  21.     fin = Decrypt(res)
  22.  
  23.     fw = open(saves[x]+'.txt','wb')
  24.     fw.write(fin)
  25.     fw.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement