Advertisement
TrashRat

Spec

Jan 6th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.96 KB | None | 0 0
  1. """
  2. Generate all permutations of two english words and an interger between 999, i.e.
  3. ducklemon584
  4. """
  5. import itertools
  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 = ("".join([word.rstrip('\n'), word2.rstrip('\n'), str(integer)]) for word in wordlist  
  16.                  for word2 in wordlist
  17.                  for integer in intlist)
  18.  
  19. # print("Concatenating permutations into passwords...")
  20. # for permu in result:
  21. #     word1, word2, interger = permu
  22. #     finresult.append(word1+word2+interger)
  23.  
  24.  
  25. print("saving passwords...")
  26. with open ('spectrumTEST', 'w') as file:
  27.     for i in result:
  28.         file.write(str(i) + "\n")
  29. # print("Saving passwords to SpectrumOutput.lst...")
  30. # with open('SpectrumOutput.lst', 'w') as file:
  31. #     for password in result:
  32. #         file.write(password + '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement