From 70cf8edc75e3c1b52579ec80f4d790cf5a081ffa Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 24 May 2016 14:17:00 +0200 Subject: [PATCH] Fixes #1887 --- lib/core/common.py | 4 ++-- lib/core/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index ac39dbfda..277c54147 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1379,8 +1379,8 @@ def parseTargetUrl(): except UnicodeError: _ = None - if any((_ is None, re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'))): - errMsg = "invalid target URL" + if any((_ is None, re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'), '\n' in originalUrl)): + errMsg = "invalid target URL ('%s')" % originalUrl raise SqlmapSyntaxException(errMsg) if len(hostnamePort) == 2: diff --git a/lib/core/settings.py b/lib/core/settings.py index a4d1215a2..3110e9fcf 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.5.51" +VERSION = "1.0.5.52" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")