From 26cb07cc26ae86467a42dd9f9eb61520ac3c12b2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 30 Apr 2019 14:13:35 +0200 Subject: [PATCH] Bug fix (introduced in last hour or so) --- lib/core/agent.py | 18 +++++++++--------- lib/core/settings.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index e1dd364c4..4121cdfbd 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -306,15 +306,15 @@ class Agent(object): if payload is None: return - replacements = ( - ("[DELIMITER_START]", kb.chars.start), - ("[DELIMITER_STOP]", kb.chars.stop), - ("[AT_REPLACE]", kb.chars.at), - ("[SPACE_REPLACE]", kb.chars.space), - ("[DOLLAR_REPLACE]", kb.chars.dollar), - ("[HASH_REPLACE]", kb.chars.hash_), - ("[GENERIC_SQL_COMMENT]", GENERIC_SQL_COMMENT) - ) + replacements = { + "[DELIMITER_START]": kb.chars.start, + "[DELIMITER_STOP]": kb.chars.stop, + "[AT_REPLACE]": kb.chars.at, + "[SPACE_REPLACE]": kb.chars.space, + "[DOLLAR_REPLACE]": kb.chars.dollar, + "[HASH_REPLACE]": kb.chars.hash_, + "[GENERIC_SQL_COMMENT]": GENERIC_SQL_COMMENT + } for value in re.findall(r"\[[A-Z_]+\]", payload): if value in replacements: diff --git a/lib/core/settings.py b/lib/core/settings.py index 9de531fca..33883d367 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.4.49" +VERSION = "1.3.4.50" 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)