mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Couple of drei updates
This commit is contained in:
parent
c3f15ef309
commit
cc9711ef5b
6 changed files with 12 additions and 12 deletions
|
|
@ -49,7 +49,7 @@ class Enumeration(GenericEnumeration):
|
|||
retVal = pivotDumpTable("(%s) AS %s" % (query, kb.aliasName), ['%s.schemaname' % kb.aliasName], blind=True)
|
||||
|
||||
if retVal:
|
||||
kb.data.cachedDbs = list(retVal[0].values())[0]
|
||||
kb.data.cachedDbs = six.itervalues(retVal[0]).next()
|
||||
|
||||
if kb.data.cachedDbs:
|
||||
kb.data.cachedDbs.sort()
|
||||
|
|
@ -134,7 +134,7 @@ class Enumeration(GenericEnumeration):
|
|||
if len(kb.data.cachedTables) > 0:
|
||||
tblList = list(kb.data.cachedTables.values())
|
||||
|
||||
if isListLike(tblList[0]):
|
||||
if tblList and isListLike(tblList[0]):
|
||||
tblList = tblList[0]
|
||||
else:
|
||||
errMsg = "unable to retrieve the tables "
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Enumeration(GenericEnumeration):
|
|||
retVal = pivotDumpTable("(%s) AS %s" % (query, kb.aliasName), ['%s.name' % kb.aliasName], blind=blind, alias=kb.aliasName)
|
||||
|
||||
if retVal:
|
||||
kb.data.cachedDbs = list(retVal[0].values())[0]
|
||||
kb.data.cachedDbs = six.itervalues(retVal[0]).next()
|
||||
break
|
||||
|
||||
if kb.data.cachedDbs:
|
||||
|
|
@ -147,7 +147,7 @@ class Enumeration(GenericEnumeration):
|
|||
retVal = pivotDumpTable("(%s) AS %s" % (query, kb.aliasName), ['%s.name' % kb.aliasName], blind=blind, alias=kb.aliasName)
|
||||
|
||||
if retVal:
|
||||
for table in list(retVal[0].values())[0]:
|
||||
for table in six.itervalues(retVal[0]).next():
|
||||
if db not in kb.data.cachedTables:
|
||||
kb.data.cachedTables[db] = [table]
|
||||
else:
|
||||
|
|
@ -196,9 +196,9 @@ class Enumeration(GenericEnumeration):
|
|||
self.getTables()
|
||||
|
||||
if len(kb.data.cachedTables) > 0:
|
||||
tblList = list(kb.data.cachedTables.values())
|
||||
tblList = list(six.itervalues(kb.data.cachedTables))
|
||||
|
||||
if isListLike(tblList[0]):
|
||||
if tblList and isListLike(tblList[0]):
|
||||
tblList = tblList[0]
|
||||
else:
|
||||
errMsg = "unable to retrieve the tables "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue