So im trying to make a brute force type program for reasons.. And so far i have made it work.. but only for one character, im am really unsure of how to increase it from checking "a" to "aa", "ab" "ba" etc. Here is the code i have so far
target = input("What is the target word for you to get?\n")
chars = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "3", "4", "5", "6", "7", "8", "9"]
for attempt in chars :
if(attempt == target):
break
else :
print(attempt)
print("Success! \""+ attempt + "\" was the correct password correct!")
UPDATE
My output desire would be where target = "password" and instead of only looping untill it reaches "9" or the end of the chars array continue so when it gets to "9" it would do "aa" - "a9" then start again "ba" to "b9" and so forth