Advertisement
TrashRat

Permu

Dec 26th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. """
  2. Generate all permutations of two english words and an interger between 999, i.e.
  3. ducklemon584
  4. """
  5.  
  6. wordlist = []
  7. intlist = list(range(100,1000))
  8. finresult = []  
  9.  
  10. with open('words_alpha.lst') as file:
  11.     for line in file:
  12.         wordlist.append(line)
  13.  
  14. print("Generating all permutations...")
  15. result = [[word.rstrip('\n'), word2.rstrip('\n'), str(integer)] for word in wordlist  
  16.                  for word2 in wordlist
  17.                  for integer in intlist]
  18. print("Concatenating permutations into passwords...")
  19. for permu in result:
  20.     word1, word2, interger = permu
  21.     finresult.append(word1+word2+interger)
  22.  
  23. print("Saving passwords to SpectrumOutput.lst...")
  24. with open('SpectrumOutput.lst', 'w') as file:
  25.     for password in finresult:
  26.         file.write(password + '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement