import time

#colors
red='\033[91m'
b='\033[21m'
gren='\033[92m'
yellow='\033[93m'
cyan='\033[96m'
blue='\033[94m'

print (red+b+"soci-concept.blogspot.com")
print (" ")

length=int(input(cyan+b+"Enter the number of characters: "+b+cyan))
print (" ")
name=input(cyan+b+"Name your wordlist wit (.txt) extension: "+b+cyan)
tic = time.process_time()
print (" ")
print (blue+b+"<><><><><><><><><><><><><><><><><><><><><>"+b+blue)
print (" ")
print (yellow+b+"Wordlist Generating Please Wait!"+b+yellow)
print (" ")
print (blue+b+"<><><><><><><><><><><><><><><><><><><><><>"+b+blue)
print (" ")
lista=[0 for x in range(length)]
x=length-1
string="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*"
list_of_results=[]
file1=open(name,"w")							       
while(x>-1):
    result=""
    if lista[x]==len(string)-1:
        for z in range (length):
            result+=string[lista[z]]
        lista[x]=0
        x-=1
    elif x==length-1:
        for z in range (length):
            result+=string[lista[z]]
        lista[x]+=1
    else:
        for z in range (length):
            result+=string[lista[z]]
        lista[x]+=1
        if x>0:
            x+=1
        else:
            x=length-1
    file1.write(result+"\n")
toc = time.process_time()
ttn = toc - tic
print (red+b+"<<<========================================>>>"+b+red)
print (" ")
print (gren+b+"Completed in "+str(ttn)+" seconds."+b+gren)
print (" ")
print (gren+b+"Please check "+str(name)+" in your lazy bee directoy"+b+gren)
print (" ")
print (red+b+"<<<========================================>>>"+b+red)
print (" ")
