In [4]:
#!/usr/bin/python

import hashlib
import re

salt = "yzbqklnj"

found1 = False
star1 = "00000"
found2 = False
star2 = "000000"

i = 1
while not (found1 and found2):
    if i % 1000000 == 0:
        print ("%i no match" % i)
    md5 = hashlib.md5()
    md5.update((salt + str(i)).encode())
    if (md5.hexdigest().startswith(star1)):
        if not found1:
            print("Star 1 answer: %s%s (value: %s)" % (salt, i, md5.hexdigest()))
            found1 = True
        if (md5.hexdigest().startswith(star2)):
            print("Star 2 answer: %s%s (value: %s)" % (salt, i, md5.hexdigest()))
            found2 = True
    i += 1


Star 1 answer: yzbqklnj282749 (value: 000002c655df7738246e88f6c1c43eb7)
1000000 no match
2000000 no match
3000000 no match
4000000 no match
5000000 no match
6000000 no match
7000000 no match
8000000 no match
9000000 no match
Star 2 answer: yzbqklnj9962624 (value: 0000004b347bf4b398b3f62ace7cd301)

In [ ]: