This commit is contained in:
Miroslav Stampar
2022-03-21 14:26:47 +01:00
parent 32acb1e4ff
commit 7149991faf
2 changed files with 7 additions and 1 deletions

View File

@@ -5408,6 +5408,12 @@ def parseRequestFile(reqFile, checkParams=True):
if conf.scope:
logger.info("using regular expression '%s' for filtering targets" % conf.scope)
try:
re.compile(conf.scope)
except Exception as ex:
errMsg = "invalid regular expression '%s' ('%s')" % (conf.scope, getSafeExString(ex))
raise SqlmapSyntaxException(errMsg)
for target in _parseBurpLog(content):
yield target