diff --git a/lib/core/common.py b/lib/core/common.py index 1cf955862..73cd925b3 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1398,6 +1398,10 @@ def parseTargetUrl(): else: conf.port = 80 + if conf.port < 0 or conf.port > 65535: + errMsg = "invalid target URL's port (%d)" % conf.port + raise SqlmapSyntaxException(errMsg) + conf.url = getUnicode("%s://%s:%d%s" % (conf.scheme, ("[%s]" % conf.hostname) if conf.ipv6 else conf.hostname, conf.port, conf.path)) conf.url = conf.url.replace(URI_QUESTION_MARKER, '?') diff --git a/lib/core/settings.py b/lib/core/settings.py index 90042f051..4ba70858b 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.6.31" +VERSION = "1.0.6.32" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")