Skip to content

Instantly share code, notes, and snippets.

@seb3point0
Created March 11, 2013 12:57
Show Gist options
  • Select an option

  • Save seb3point0/5134050 to your computer and use it in GitHub Desktop.

Select an option

Save seb3point0/5134050 to your computer and use it in GitHub Desktop.

Revisions

  1. scouture created this gist Mar 11, 2013.
    15 changes: 15 additions & 0 deletions password-list-generator.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # 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)