Couple of drei updates

This commit is contained in:
Miroslav Stampar 2019-05-15 10:30:47 +02:00
parent c3f15ef309
commit cc9711ef5b
6 changed files with 12 additions and 12 deletions

View File

@ -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)

View File

@ -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)):

View File

@ -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 "

View File

@ -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 "

View File

@ -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)

View File

@ -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 "