Bug fix (introduced in last hour or so)

This commit is contained in:
Miroslav Stampar 2019-04-30 14:13:35 +02:00
parent 48c55d15ea
commit 26cb07cc26
2 changed files with 10 additions and 10 deletions

View File

@ -306,15 +306,15 @@ class Agent(object):
if payload is None: if payload is None:
return return
replacements = ( replacements = {
("[DELIMITER_START]", kb.chars.start), "[DELIMITER_START]": kb.chars.start,
("[DELIMITER_STOP]", kb.chars.stop), "[DELIMITER_STOP]": kb.chars.stop,
("[AT_REPLACE]", kb.chars.at), "[AT_REPLACE]": kb.chars.at,
("[SPACE_REPLACE]", kb.chars.space), "[SPACE_REPLACE]": kb.chars.space,
("[DOLLAR_REPLACE]", kb.chars.dollar), "[DOLLAR_REPLACE]": kb.chars.dollar,
("[HASH_REPLACE]", kb.chars.hash_), "[HASH_REPLACE]": kb.chars.hash_,
("[GENERIC_SQL_COMMENT]", GENERIC_SQL_COMMENT) "[GENERIC_SQL_COMMENT]": GENERIC_SQL_COMMENT
) }
for value in re.findall(r"\[[A-Z_]+\]", payload): for value in re.findall(r"\[[A-Z_]+\]", payload):
if value in replacements: if value in replacements:

View File

@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
from lib.core.enums import OS from lib.core.enums import OS
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.4.49" VERSION = "1.3.4.50"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)