mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
minor update
This commit is contained in:
parent
823e4351b5
commit
cc47737c44
|
@ -251,7 +251,6 @@ class Enumeration:
|
|||
else:
|
||||
kb.data.cachedUsersPasswords[user].append(password)
|
||||
getCurrentThreadData().disableStdOut = False
|
||||
return kb.data.cachedUsersPasswords
|
||||
else:
|
||||
value = inject.getValue(query, blind=False)
|
||||
|
||||
|
@ -280,10 +279,13 @@ class Enumeration:
|
|||
users = kb.data.cachedUsers
|
||||
|
||||
if Backend.getIdentifiedDbms() == DBMS.SYBASE:
|
||||
getCurrentThreadData().disableStdOut = True
|
||||
|
||||
randStr = randomStr()
|
||||
query = rootQuery.inband.query
|
||||
getCurrentThreadData().disableStdOut = True
|
||||
|
||||
retVal = self.__pivotDumpTable("(%s) AS %s" % (query, randStr), ['%s.name' % randStr,'%s.password' % randStr], blind=True)
|
||||
|
||||
if retVal:
|
||||
for user, password in zip(retVal[0]["%s.name" % randStr], retVal[0]["%s.password" % randStr]):
|
||||
password = "0x%s" % strToHex(password)
|
||||
|
@ -291,9 +293,10 @@ class Enumeration:
|
|||
kb.data.cachedUsersPasswords[user] = [password]
|
||||
else:
|
||||
kb.data.cachedUsersPasswords[user].append(password)
|
||||
getCurrentThreadData().disableStdOut = False
|
||||
return kb.data.cachedUsersPasswords
|
||||
|
||||
getCurrentThreadData().disableStdOut = False
|
||||
|
||||
else:
|
||||
retrievedUsers = set()
|
||||
|
||||
for user in users:
|
||||
|
|
Loading…
Reference in New Issue
Block a user