#!/usr/bin/env python import sys, re, string, crypt def mktripcode(pw): pw = pw.decode('utf_8', 'ignore') \ .encode('shift_jis', 'ignore') \ .replace('"', '"') \ .replace("'", '') \ .replace('<', '<') \ .replace('>', '>') \ .replace(',', ',') salt = (pw + '...')[1:3] salt = re.compile('[^\.-z]').sub('.', salt) salt = salt.translate(string.maketrans(':;<=>?@[\\]^_`', 'ABCDEFGabcdef')) trip = crypt.crypt(pw, salt)[-10:] return trip x=0 y=0 #mackie done: 34732252 #4chan 38759849 48531118 #ethoxy 6885633 #sakaki 155400000 while 1==1: if re.search('moot',string.lower(mktripcode(str(x))))>-1: print x print '###########FOUND###########\n'+mktripcode(str(x))+'\n###########FOUND###########\n' elif x==y: print x y=y+100000 x=x+1