fork(3) download
  1. import re
  2. import hashlib
  3.  
  4. md5 = lambda s: hashlib.md5(s).hexdigest()
  5.  
  6. def search(begin=0, maxresults=1):
  7. reg = re.compile('^0+e[0-9]+$')
  8. i = begin
  9. res = 0
  10. while 1:
  11. password = str(i)
  12. if reg.match(md5(password)[:16]):
  13. print "md5(\"{}\")={}".format(password,md5(password))
  14. res += 1
  15. if res == maxresults:
  16. return
  17. i+=1
  18.  
  19. if __name__ == '__main__':
  20. search(0, 3)
Success #stdin #stdout 0.43s 10952KB
stdin
Standard input is empty
stdout
md5("7554")=0e16366727185813f59d4a9467878901
md5("78641")=0e64614222628536fee1d0b1c78fab92
md5("98928")=0e54996000837117d966a98b91b5a25f