mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
some fixes
This commit is contained in:
parent
3d883a2218
commit
a99547363f
|
@ -252,8 +252,6 @@ def attackCachedUsersPasswords():
|
|||
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', password)
|
||||
|
||||
def attackDumpedTable():
|
||||
isOracle, isMySQL = Backend.isDbms(DBMS.ORACLE), Backend.isDbms(DBMS.MYSQL)
|
||||
|
||||
if kb.data.dumpedTable:
|
||||
infoMsg = "analyzing table dump for possible password hashes"
|
||||
logger.info(infoMsg)
|
||||
|
@ -281,7 +279,7 @@ def attackDumpedTable():
|
|||
|
||||
value = table[column]['values'][i]
|
||||
|
||||
if hashRecognition(value, isOracle, isMySQL):
|
||||
if hashRecognition(value):
|
||||
if colUser and i < len(table[colUser]['values']):
|
||||
if table[colUser]['values'][i] not in attack_dict:
|
||||
attack_dict[table[colUser]['values'][i]] = []
|
||||
|
@ -318,9 +316,11 @@ def attackDumpedTable():
|
|||
table[column]['values'][i] += " (%s)" % password
|
||||
table[column]['length'] = max(table[column]['length'], len(table[column]['values'][i]))
|
||||
|
||||
def hashRecognition(value, isOracle=False, isMySQL=False):
|
||||
def hashRecognition(value):
|
||||
retVal = None
|
||||
|
||||
isOracle, isMySQL = Backend.isDbms(DBMS.ORACLE), Backend.isDbms(DBMS.MYSQL)
|
||||
|
||||
if isinstance(value, basestring):
|
||||
for name, regex in getPublicTypeMembers(HASH):
|
||||
# Hashes for Oracle and old MySQL look the same hence these checks
|
||||
|
|
Loading…
Reference in New Issue
Block a user