Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79e9782

Browse files
committed
adding user names to the attack dictionary
1 parent 93838fb commit 79e9782

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/utils/hash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ def dictionaryAttack(attack_dict):
324324
infoMsg = "starting dictionary attack (%s)" % __functions__[hash_regex].func_name
325325
logger.info(infoMsg)
326326

327+
for item in attack_info:
328+
((user, _), _) = item
329+
kb.wordlist.append(user)
330+
327331
if hash_regex in (HASH.MYSQL, HASH.MYSQL_OLD, HASH.MD5_GENERIC, HASH.SHA1_GENERIC):
328332
count = 0
329333

0 commit comments

Comments
 (0)