Created
March 11, 2013 12:57
-
-
Save seb3point0/5134050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import dependancies | |
import itertools | |
# Create array with known parts of the password | |
parts = ['foo', 'FOO', 'Foo', 'bar', 'BAR', 'Bar', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '!', '@', '#', '$', '%', '^', '&', '*'] | |
# Number of parts per password | |
number = 4 | |
# Build a list of combinations of knows parts with number of parts | |
permutations = list(itertools.permutations(parts, number)) | |
# Print list | |
for (i, permutation) in enumerate(permutations): | |
print ''.join(permutation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment