Skip to content

Instantly share code, notes, and snippets.

W = 57
H = 25
MAP = bytearray(" "*W*H)
counter = 0
class Walker(object):
def __init__(self):
self.x = 0 # Starting pos.
from PIL import Image, ImageChops
from os import listdir
workDir = './data/' # dir with extracted files
onlyfiles = [f for f in listdir(workDir) if '.' not in f]
base = Image.open(workDir + onlyfiles[0])
for file in onlyfiles[1:]:
im = Image.open(workDir + file)
import urllib2 as ul
cookie = bytearray(ul.unquote('6VhhU05LYPoyhOCajJ9mZw%2BdSO1%2FAj4%3D').decode('base64'))
cookie[-6] ^= (ord('u') ^ ord('a'))
cookie[-5] ^= (ord('s') ^ ord('d'))
cookie[-4] ^= (ord('e') ^ ord('m'))
cookie[-3] ^= (ord('r') ^ ord('i'))
cookie[-2] ^= (ord('"') ^ ord('n'))
cookie[-1] ^= (ord('}') ^ ord('"'))
import itertools
import string
import zlib
print "START!"
#extrected CRC for all files from zip file
crcs = [2052753413, 1113988531, 110572445, 3531532864, 2044948426, 1259702269,
2791285457, 866085692, 80487387, 3991321359, 3808665081, 3058506935,
3110191185, 3078787955, 1525006434, 501092716, 3982160619, 1058723290,