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