minor fix for a bug reported by nightman

This commit is contained in:
Miroslav Stampar 2011-01-11 12:27:22 +00:00
parent 643c464268
commit e3146464da

View File

@ -349,6 +349,8 @@ def dictionaryAttack(attack_dict):
for word in kb.wordlist:
count += 1
try:
current = __functions__[hash_regex](password = word, uppercase = False)
for item in attack_info:
@ -373,6 +375,11 @@ def dictionaryAttack(attack_dict):
status = '%d/%d words (%d%s)' % (count, length, round(100.0*count/length), '%')
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status))
except:
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
warnMsg += "Please report by e-mail to sqlmap-users@lists.sourceforge.net."
logger.critical(warnMsg)
clearConsoleLine()
else:
@ -382,7 +389,7 @@ def dictionaryAttack(attack_dict):
for word in kb.wordlist:
current = __functions__[hash_regex](password = word, uppercase = False, **kwargs)
count += 1
try:
if hash_ == current:
if regex == HASH.ORACLE_OLD: #only for cosmetic purposes
word = word.upper()
@ -404,6 +411,11 @@ def dictionaryAttack(attack_dict):
status = '%d/%d words (%d%s) (user: %s)' % (count, length, round(100.0*count/length), '%', user)
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status))
except:
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
warnMsg += "Please report by e-mail to sqlmap-users@lists.sourceforge.net."
logger.critical(warnMsg)
clearConsoleLine()
if len(hash_regexes) == 0: