From 86c6e3d5fccd0358b27b6b3c415063493cb68b2c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 26 Feb 2020 21:47:10 +0100 Subject: [PATCH] Minor adjustment --- lib/core/settings.py | 2 +- plugins/generic/databases.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 6f3f4792a..704973240 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.2.40" +VERSION = "1.4.2.41" 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) diff --git a/plugins/generic/databases.py b/plugins/generic/databases.py index 8fb6e50c0..3d95eb9c7 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -220,9 +220,9 @@ class Databases(object): if bruteForce is None: if Backend.isDbms(DBMS.MYSQL) and not kb.data.has_information_schema: - errMsg = "information_schema not available, " - errMsg += "back-end DBMS is MySQL < 5.0" - logger.error(errMsg) + warnMsg = "information_schema not available, " + warnMsg += "back-end DBMS is MySQL < 5.0" + logger.warn(warnMsg) bruteForce = True elif Backend.getIdentifiedDbms() in (DBMS.MCKOI, DBMS.EXTREMEDB): @@ -235,9 +235,9 @@ class Databases(object): tables = None if not tables: - errMsg = "cannot retrieve table names, " - errMsg += "back-end DBMS is %s" % Backend.getIdentifiedDbms() - logger.error(errMsg) + warnMsg = "cannot retrieve table names, " + warnMsg += "back-end DBMS is %s" % Backend.getIdentifiedDbms() + logger.warn(warnMsg) bruteForce = True else: return tables @@ -529,15 +529,15 @@ class Databases(object): if bruteForce is None: if Backend.isDbms(DBMS.MYSQL) and not kb.data.has_information_schema: - errMsg = "information_schema not available, " - errMsg += "back-end DBMS is MySQL < 5.0" - logger.error(errMsg) + warnMsg = "information_schema not available, " + warnMsg += "back-end DBMS is MySQL < 5.0" + logger.warn(warnMsg) bruteForce = True elif Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.MCKOI, DBMS.EXTREMEDB): - errMsg = "cannot retrieve column names, " - errMsg += "back-end DBMS is %s" % Backend.getIdentifiedDbms() - logger.error(errMsg) + warnMsg = "cannot retrieve column names, " + warnMsg += "back-end DBMS is %s" % Backend.getIdentifiedDbms() + logger.warn(warnMsg) bruteForce = True if bruteForce: