mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
minor fix for a bug reported by nightman
This commit is contained in:
@@ -349,6 +349,8 @@ def dictionaryAttack(attack_dict):
|
|||||||
|
|
||||||
for word in kb.wordlist:
|
for word in kb.wordlist:
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
|
try:
|
||||||
current = __functions__[hash_regex](password = word, uppercase = False)
|
current = __functions__[hash_regex](password = word, uppercase = False)
|
||||||
|
|
||||||
for item in attack_info:
|
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), '%')
|
status = '%d/%d words (%d%s)' % (count, length, round(100.0*count/length), '%')
|
||||||
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status))
|
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()
|
clearConsoleLine()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@@ -382,7 +389,7 @@ def dictionaryAttack(attack_dict):
|
|||||||
for word in kb.wordlist:
|
for word in kb.wordlist:
|
||||||
current = __functions__[hash_regex](password = word, uppercase = False, **kwargs)
|
current = __functions__[hash_regex](password = word, uppercase = False, **kwargs)
|
||||||
count += 1
|
count += 1
|
||||||
|
try:
|
||||||
if hash_ == current:
|
if hash_ == current:
|
||||||
if regex == HASH.ORACLE_OLD: #only for cosmetic purposes
|
if regex == HASH.ORACLE_OLD: #only for cosmetic purposes
|
||||||
word = word.upper()
|
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)
|
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))
|
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()
|
clearConsoleLine()
|
||||||
|
|
||||||
if len(hash_regexes) == 0:
|
if len(hash_regexes) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user