for a in range(10):
    for b in range(10):
        for c in range(10):
            for d in range(10):
                for e in range(10):
                    for f in range(10):
                        for g in range(10):
                            for h in range(10):
                                print("{}{}{}{}{}{}{}{}".format(a,b,c,d,e,f,g,h))

add pwgen