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

Skip to content

Commit b41ee8d

Browse files
committed
minor refactoring
1 parent aa5d038 commit b41ee8d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/utils/hash.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,6 @@ def dictionaryAttack():
290290
if kb.data.cachedUsersPasswords[user][i] and hash_.lower() in kb.data.cachedUsersPasswords[user][i].lower():
291291
kb.data.cachedUsersPasswords[user][i] += "%s%spassword: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', blank, password)
292292
else:
293-
errMsg = "hash format unrecognized"
294-
logger.error(errMsg)
293+
warnMsg = "unknown hash format. "
294+
warnMsg += "Please report by e-mail to [email protected]."
295+
logger.warn(warnMsg)

0 commit comments

Comments
 (0)