Generate Word List for Dictionary Attack

import string, random
 
#============ Word List Gen ============
minimum=input('Please enter the minimum length of any give word to be generated: ')
maximum=input('Please enter the maximum length of any give word to be generated: ')
wmaximum=input('Please enter the max number of words to be generate in the dictionary: ')
 
alphabet = string.letters[0:52] + string.digits + string.punctuation
string=''
FILE = open("wl.txt","w")
for count in xrange(0,wmaximum):
  for x in random.sample(alphabet,random.randint(minimum,maximum)):
      string+=x
  FILE.write(string+'\n')
  string=''
FILE.close()
print 'DONE!'
Next PostNewer Post Previous PostOlder Post Home

0 comments:

Post a Comment