mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Couple of drei updates
This commit is contained in:
parent
c3f15ef309
commit
cc9711ef5b
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.3.5.91"
|
||||
VERSION = "1.3.5.92"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
@ -352,7 +352,7 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
key = re.sub(r"[^A-Za-z0-9]", "", item).lower()
|
||||
if key not in filtered or re.search(r"[^A-Za-z0-9]", item):
|
||||
filtered[key] = item
|
||||
items = list(filtered.values())
|
||||
items = list(six.itervalues(filtered))
|
||||
items = [items]
|
||||
index = None
|
||||
for index in xrange(1 + len(threadData.shared.buffered)):
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -478,9 +478,9 @@ class Databases:
|
|||
if conf.db in kb.data.cachedTables:
|
||||
tblList = kb.data.cachedTables[conf.db]
|
||||
else:
|
||||
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]
|
||||
|
||||
tblList = list(tblList)
|
||||
|
|
|
@ -93,9 +93,9 @@ class Entries:
|
|||
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]
|
||||
elif not conf.search:
|
||||
errMsg = "unable to retrieve the tables "
|
||||
|
|
Loading…
Reference in New Issue
Block a user