diff --git a/lib/core/option.py b/lib/core/option.py index 798b82cfe..afeb1b0ea 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -324,6 +324,10 @@ def _feedTargetsDict(reqFile, addedTargetUrls): scheme = "https" port = port or "443" + if not host: + errMsg = "invalid format of a request file" + raise SqlmapSyntaxException, errMsg + if not url.startswith("http"): url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url) scheme = None