This commit is contained in:
Miroslav Stampar 2019-08-04 01:05:13 +02:00
parent b5063fc25a
commit a42a7c88bd
2 changed files with 14 additions and 14 deletions

View File

@ -676,28 +676,28 @@ class Dump(object):
else:
colConsiderStr = " '%s' was" % unsafeSQLIdentificatorNaming(column)
msg = "column%s found in the " % colConsiderStr
msg += "following databases:"
self._write(msg)
_ = {}
found = {}
for db, tblData in dbs.items():
for tbl, colData in tblData.items():
for col, dataType in colData.items():
if column.lower() in col.lower():
if db in _:
if tbl in _[db]:
_[db][tbl][col] = dataType
if db in found:
if tbl in found[db]:
found[db][tbl][col] = dataType
else:
_[db][tbl] = {col: dataType}
found[db][tbl] = {col: dataType}
else:
_[db] = {}
_[db][tbl] = {col: dataType}
found[db] = {}
found[db][tbl] = {col: dataType}
continue
self.dbTableColumns(_)
if found:
msg = "column%s found in the " % colConsiderStr
msg += "following databases:"
self._write(msg)
self.dbTableColumns(found)
def sqlQuery(self, query, queryRes):
self.string(query, queryRes, content_type=CONTENT_TYPE.SQL_QUERY)

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.8.1"
VERSION = "1.3.8.2"
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)