diff --git a/lib/core/common.py b/lib/core/common.py index c778d4475..d0df15379 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1256,7 +1256,7 @@ def parseTargetUrl(): conf.path = __urlSplit[2].strip() conf.hostname = __hostnamePort[0].strip() - if re.search(r'\s', conf.hostname): + if any((re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'))): errMsg = "invalid target url" raise sqlmapSyntaxException, errMsg