Facebook
From Smelly Gorilla, 5 Years ago, written in Python.
This paste is a reply to Re: DlaCiembie from Tiny Mockingjay - go back
Embed
Viewing differences between Re: DlaCiembie and Re: Re: DlaCiembie
import hashlib
import time
from random import randint
konpie 
randint

micsta 
"Konrad Pierzynski (442333)\n"

"Michal Starski (434786)\n"
hashlast = ''

#for 0.txt
while 1:
    str = ''
    for k in range(32):
        str = str + hex(randint(0,15))[2:]
    str = str + '\n'
    hash = hashlib.md5( (micsta + str).encode('utf-8') ).hexdigest()
    if hash[0:2] == '00' and hash[30:32] == '00':
        f = open('0.txt', 'w+')
        f.write(micsta+str)
        f.close
        hashlast = hash + '\n'
        break

#for 1.txt and 2.txt
p = 1
hashlast = '000701ade3e5ab9ccbb7e74ffef6d100'+'\n'
while 1:
        while 1:
                str = ''
                for k in range(32):
                        str = str + hex(randint(0,15))[2:]
                str = str + '\n'
                hash = hashlib.md5( (konpie+hashlast+str).(micsta+hashlast+str).encode('utf-8') ).hexdigest()
                if hash[0:2] == '00' and hash[30:32] == '00':
                        print( repr(p) )
                        f = open( (repr(p)+'.txt'),'w+')
                        f.write(konpie+hashlast+str)
write(micsta+hashlast+str)
                        f.close()
                        break
        p = p + 1
        hashlast = hash+'\n'

hash+'\n'