diff --git a/lib/core/option.py b/lib/core/option.py index ac6e0e04d..a24d5a8a7 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -350,6 +350,11 @@ def _feedTargetsDict(reqFile, addedTargetUrls): _parseBurpLog(content) _parseWebScarabLog(content) + if not addedTargetUrls: + errMsg = "unable to find usable request(s) " + errMsg += "in provided file ('%s')" % reqFile + raise SqlmapGenericException(errMsg) + def _loadQueries(): """ Loads queries from 'xml/queries.xml' file.