Adding my scripts and writeups to the folder
This commit is contained in:
4
Crimson_Defense/Scripts/combine/README.md
Normal file
4
Crimson_Defense/Scripts/combine/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
Pretty handy wordlist generation tool. Takes a wordlist with individual words on each line and creates the full list of permutations of that list. Works well when you have a limited set of custom words but need more customization
|
||||
|
||||
|
||||
Typically paired with john --wordlist --rules=(single/jumbo) --stdout > betterWordlist
|
||||
18
Crimson_Defense/Scripts/combine/combine.py
Normal file
18
Crimson_Defense/Scripts/combine/combine.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#Takes a file containing separate words and returns all permutations to further generate a wordlist from
|
||||
|
||||
from itertools import permutations
|
||||
|
||||
#Begin with list of words and append results to original list
|
||||
infile = "words"
|
||||
outfile = "wordlist"
|
||||
|
||||
#Create list L that contains each word
|
||||
with open(infile) as wordlist:
|
||||
L = [line.rstrip() for line in wordlist]
|
||||
|
||||
#Permutate words at every length from 1 through len(words)
|
||||
with open(outfile, "w") as wordlist:
|
||||
for n in range(len(L)+1):
|
||||
for perm in permutations(L, n):
|
||||
wordlist.write(''.join(perm))
|
||||
wordlist.write('\n')
|
||||
Reference in New Issue
Block a user