Facebook
From 123, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 160
  1. import itertools
  2.  
  3. # Keywords
  4. keywords = ["1997", "creeper", "lastman", "hello"]
  5.  
  6. # Special characters
  7. special_characters = "!@#$%^&*()-_=+"
  8.  
  9. # Function to generate combinations
  10. def generate_combinations(keywords, special_characters):
  11.     combinations = []
  12.     for r in range(1, len(keywords) + 1):
  13.         for subset in itertools.permutations(keywords, r):
  14.             for special_char in special_characters:
  15.                 combinations.append(''.join(subset) + special_char)
  16.     return combinations
  17.  
  18. # Generate combinations
  19. generated_combinations = generate_combinations(keywords, special_characters)
  20.  
  21. # Write combinations to a file
  22. with open('wordlist.txt', 'w') as f:
  23.     for combination in generated_combinations:
  24.         f.write(combination + 'n')
  25.