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.
我被困在这里:
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 ...
或者类似的东西(它没有按任何特定顺序循环字符,我只需要一个所有可能组合的列表。
谢谢你的帮助!
Dave