diff --git a/lib/controller/action.py b/lib/controller/action.py index f2b7fe465..8d185c6d4 100644 --- a/lib/controller/action.py +++ b/lib/controller/action.py @@ -54,6 +54,8 @@ def action(): conf.dumper.singleString(conf.dbmsHandler.getFingerprint()) + kb.fingerprinted = True + # Enumeration options if conf.getBanner: conf.dumper.banner(conf.dbmsHandler.getBanner()) diff --git a/lib/core/option.py b/lib/core/option.py index fdf288f61..336a20271 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1916,6 +1916,7 @@ def _setKnowledgeBaseAttributes(flushAll=True): kb.errorIsNone = True kb.falsePositives = [] kb.fileReadMode = False + kb.fingerprinted = False kb.followSitemapRecursion = None kb.forcedDbms = None kb.forcePartialUnion = False diff --git a/lib/core/settings.py b/lib/core/settings.py index ab62c4e83..24023a303 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.3.11" +VERSION = "1.4.3.12" 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/lib/request/inject.py b/lib/request/inject.py index ce9a2c0ec..8c58beaed 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -499,7 +499,7 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser kb.safeCharEncode = False - if not any((kb.testMode, conf.dummy, conf.offline)) and value is None and Backend.getDbms() and conf.dbmsHandler and not conf.noCast and not conf.hexConvert: + if not any((kb.testMode, conf.dummy, conf.offline, conf.noCast, conf.hexConvert)) and value is None and Backend.getDbms() and conf.dbmsHandler and kb.fingerprinted: warnMsg = "in case of continuous data retrieval problems you are advised to try " warnMsg += "a switch '--no-cast' " warnMsg += "or switch '--hex'" if hasattr(queries[Backend.getIdentifiedDbms()], "hex") else ""