From 4643bd6517cd9eaa417068f67148c0246587555b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 21 Apr 2017 17:44:51 +0200 Subject: [PATCH] Quick patch for #2498 --- lib/core/agent.py | 2 +- lib/core/common.py | 2 +- lib/core/settings.py | 2 +- txt/checksum.md5 | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 2154bdb3f..5ee917cb5 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -452,7 +452,7 @@ class Agent(object): @rtype: C{str} """ - if not Backend.getDbms(): + if not Backend.getIdentifiedDbms(): return fields if fields.startswith("(CASE") or fields.startswith("(IIF") or fields.startswith("SUBSTR") or fields.startswith("MID(") or re.search(r"\A'[^']+'\Z", fields): diff --git a/lib/core/common.py b/lib/core/common.py index 4b5a2caca..68eb5237d 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -4131,7 +4131,7 @@ def decodeHexValue(value, raw=False): retVal = value if value and isinstance(value, basestring): if len(value) % 2 != 0: - retVal = "%s?" % hexdecode(value[:-1]) + retVal = "%s?" % hexdecode(value[:-1]) if len(value) > 1 else value singleTimeWarnMessage("there was a problem decoding value '%s' from expected hexadecimal form" % value) else: retVal = hexdecode(value) diff --git a/lib/core/settings.py b/lib/core/settings.py index 6e0f0821b..31b824efd 100755 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.4.44" +VERSION = "1.1.4.45" 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/txt/checksum.md5 b/txt/checksum.md5 index 793c1961c..c43c37b77 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -25,9 +25,9 @@ c55b400b72acc43e0e59c87dd8bb8d75 extra/shellcodeexec/windows/shellcodeexec.x32. df647d57cf02cc0e4bda6b8ccc9d8138 lib/controller/controller.py 52a3969f57170e935e3fc0156335bf2c lib/controller/handler.py 310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py -d3b4e1139bf117fe4cf6451d43d8253c lib/core/agent.py +3dfaab045a72c3faae2bfcab24c60ec3 lib/core/agent.py 6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py -128a9fbdf43c064e96af3f1493d3baea lib/core/common.py +6517ed1b9cac3780b6ed565d1feff90e lib/core/common.py 5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py 7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py @@ -46,7 +46,7 @@ ebb778c2d26eba8b34d7d8658e4105a6 lib/core/optiondict.py d8e9250f3775119df07e9070eddccd16 lib/core/replication.py 785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py 40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py -67af5c012b781810e14301748cb43e21 lib/core/settings.py +c67ce72cf54307123a0007d66b3c4fd7 lib/core/settings.py d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py 2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py 155e2d3fda87b2e3ffa4f7a770513946 lib/core/target.py