Facebook
From Smelly Gorilla, 5 Years ago, written in Python.
This paste is a reply to Re: DlaCiembie from Tiny Mockingjay - view diff
Embed
Download Paste or View Raw
Hits: 344
  1. import hashlib
  2. import time
  3. from random import randint
  4.  
  5. micsta = "Michal Starski (434786)\n"
  6. hashlast = ''
  7.  
  8. #for 0.txt
  9. while 1:
  10.     str = ''
  11.     for k in range(32):
  12.         str = str + hex(randint(0,15))[2:]
  13.     str = str + '\n'
  14.     hash = hashlib.md5( (micsta + str).encode('utf-8') ).hexdigest()
  15.     if hash[0:2] == '00' and hash[30:32] == '00':
  16.         f = open('0.txt', 'w+')
  17.         f.write(micsta+str)
  18.         f.close
  19.         hashlast = hash + '\n'
  20.         break
  21.  
  22. #for 1.txt and 2.txt
  23. p = 1
  24. while 1:
  25.         while 1:
  26.                 str = ''
  27.                 for k in range(32):
  28.                         str = str + hex(randint(0,15))[2:]
  29.                 str = str + '\n'
  30.                 hash = hashlib.md5( (micsta+hashlast+str).encode('utf-8') ).hexdigest()
  31.                 if hash[0:2] == '00' and hash[30:32] == '00':
  32.                         print( repr(p) )
  33.                         f = open( (repr(p)+'.txt'),'w+')
  34.                         f.write(micsta+hashlast+str)
  35.                         f.close()
  36.                         break
  37.         p = p + 1
  38.         hashlast = hash+'\n'
  39.