mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
cosmetics
This commit is contained in:
parent
f4f0bc9db3
commit
7a147041c4
|
@ -277,7 +277,7 @@ def dictionaryAttack():
|
||||||
if hash_ == current:
|
if hash_ == current:
|
||||||
results.append((user, hash_, word))
|
results.append((user, hash_, word))
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
dataToStdout("[%s] [INFO] found: %s\n" % (time.strftime("%X"), word), True)
|
dataToStdout("[%s] [INFO] found: '%s' for user: '%s'\n" % (time.strftime("%X"), word, user), True)
|
||||||
attack_info.remove(item)
|
attack_info.remove(item)
|
||||||
|
|
||||||
elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD):
|
elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD):
|
||||||
|
@ -297,7 +297,7 @@ def dictionaryAttack():
|
||||||
if hash_ == current:
|
if hash_ == current:
|
||||||
results.append((user, hash_, word))
|
results.append((user, hash_, word))
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
dataToStdout("[%s] [INFO] found: %s\n" % (time.strftime("%X"), word), True)
|
dataToStdout("[%s] [INFO] found: '%s' for user: '%s'\n" % (time.strftime("%X"), word, user), True)
|
||||||
break
|
break
|
||||||
|
|
||||||
elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD):
|
elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD):
|
||||||
|
@ -309,7 +309,7 @@ def dictionaryAttack():
|
||||||
for (user, hash_, password) in results:
|
for (user, hash_, password) in results:
|
||||||
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
|
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
|
||||||
if kb.data.cachedUsersPasswords[user][i] and hash_.lower() in kb.data.cachedUsersPasswords[user][i].lower():
|
if kb.data.cachedUsersPasswords[user][i] and hash_.lower() in kb.data.cachedUsersPasswords[user][i].lower():
|
||||||
kb.data.cachedUsersPasswords[user][i] += "%s password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', password)
|
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', password)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
warnMsg = "unknown hash format. "
|
warnMsg = "unknown hash format. "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user