I am trying to build a dynamic password recovery tool. You can specify a password, and an unknown character list which correspond to unknown password indexes. So, if you remember 90% of your password, and can't remember a few letters, this will do a light weight brute force for you. I am able to combine the user supplied password with an unknown character list; however, I am stuck trying to print every potential password.
I am stuck here:
password = 'Dude123'
charList = ['d8','vV','','D8','','','']
finalString = [''.join(set((a, b))) for a, b in zip(password, charList)]
print(finalString) #This statement yields the following
['Dd8', 'uv^', 'd', 'eD8', '1', '2', '3']
Now I need to print: Dude123 dude123 8ude123 Dvde123 dvde123 8vde123 ...
or something to that effect (it doesn't have loop through the characters in any particular order, I just need a list of all the possible combinations.
Thank you for any help!
Dave