mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
minor fix for a bug reported by nightman
This commit is contained in:
parent
643c464268
commit
e3146464da
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user