Skip to content

Commit 7149991

Browse files
committed
Fixes #5042
1 parent 32acb1e commit 7149991

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/core/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5408,6 +5408,12 @@ def _parseBurpLog(content):
54085408
if conf.scope:
54095409
logger.info("using regular expression '%s' for filtering targets" % conf.scope)
54105410

5411+
try:
5412+
re.compile(conf.scope)
5413+
except Exception as ex:
5414+
errMsg = "invalid regular expression '%s' ('%s')" % (conf.scope, getSafeExString(ex))
5415+
raise SqlmapSyntaxException(errMsg)
5416+
54115417
for target in _parseBurpLog(content):
54125418
yield target
54135419

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.3.14"
23+
VERSION = "1.6.3.15"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)