|
word1_idx = random.randint(1,len(words)) |
|
word2_idx = random.randint(1,len(words)) |
Problem: In a 100-line wordlist, this indexes lines 1 though 100. It should index 0 through 99. As written, when 100 is chosen, the function fails.
Recommended fix:
word1_idx = random.randint(0,len(words)-1)
word2_idx = random.randint(0,len(words)-1)
pCraft/pcraft/plugins/GenerateNewDomain.py
Line 34 in 089bac6
pCraft/pcraft/plugins/GenerateNewDomain.py
Line 35 in 089bac6
Problem: In a 100-line wordlist, this indexes lines 1 though 100. It should index 0 through 99. As written, when 100 is chosen, the function fails.
Recommended fix: