From 3729b76c14f853c9871518a5ea88e7e4f968b468 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 11 May 2020 11:31:36 +0200 Subject: [PATCH] Fixes #4194 --- lib/core/agent.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index ce5bb3459..94a1e63ff 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -420,7 +420,7 @@ class Agent(object): rootQuery = queries[Backend.getIdentifiedDbms()] hexField = field - if "hex" in rootQuery: + if "hex" in rootQuery and hasattr(rootQuery.hex, "query"): hexField = rootQuery.hex.query % field else: warnMsg = "switch '--hex' is currently not supported on DBMS '%s'" % Backend.getIdentifiedDbms() diff --git a/lib/core/settings.py b/lib/core/settings.py index b4bcb67da..5d5985dfc 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.5.11" +VERSION = "1.4.5.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)