mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-17 03:50:42 +03:00
minor fixes for hash cracking
This commit is contained in:
parent
18affca0bc
commit
0b68144c8f
|
@ -344,8 +344,6 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
|
||||||
if not attack_info:
|
if not attack_info:
|
||||||
break
|
break
|
||||||
|
|
||||||
count += 1
|
|
||||||
|
|
||||||
if not isinstance(word, basestring):
|
if not isinstance(word, basestring):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -358,12 +356,14 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
|
||||||
for item in attack_info:
|
for item in attack_info:
|
||||||
((user, hash_), _) = item
|
((user, hash_), _) = item
|
||||||
|
|
||||||
|
count += 1
|
||||||
|
|
||||||
if hash_ == current:
|
if hash_ == current:
|
||||||
retVal.put((user, hash_, word))
|
retVal.put((user, hash_, word))
|
||||||
|
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
|
|
||||||
infoMsg = "[%s] [INFO] cracked password '%s'" % (time.strftime("%X"), word)
|
infoMsg = "\r[%s] [INFO] cracked password '%s'" % (time.strftime("%X"), word)
|
||||||
|
|
||||||
if user and not user.startswith(DUMMY_USER_PREFIX):
|
if user and not user.startswith(DUMMY_USER_PREFIX):
|
||||||
infoMsg += " for user '%s'\n" % user
|
infoMsg += " for user '%s'\n" % user
|
||||||
|
@ -420,7 +420,7 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re
|
||||||
|
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
|
|
||||||
infoMsg = "[%s] [INFO] cracked password '%s'" % (time.strftime("%X"), word)
|
infoMsg = "\r[%s] [INFO] cracked password '%s'" % (time.strftime("%X"), word)
|
||||||
|
|
||||||
if user and not user.startswith(DUMMY_USER_PREFIX):
|
if user and not user.startswith(DUMMY_USER_PREFIX):
|
||||||
infoMsg += " for user '%s'\n" % user
|
infoMsg += " for user '%s'\n" % user
|
||||||
|
|
Loading…
Reference in New Issue
Block a user