We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0ec86 commit 82e6bc6Copy full SHA for 82e6bc6
lib/core/option.py
@@ -2477,6 +2477,13 @@ def _basicOptionValidation():
2477
errMsg = "invalid regular expression '%s' ('%s')" % (conf.crawlExclude, getSafeExString(ex))
2478
raise SqlmapSyntaxException(errMsg)
2479
2480
+ if conf.scope:
2481
+ try:
2482
+ re.compile(conf.scope)
2483
+ except Exception as ex:
2484
+ errMsg = "invalid regular expression '%s' ('%s')" % (conf.scope, getSafeExString(ex))
2485
+ raise SqlmapSyntaxException(errMsg)
2486
+
2487
if conf.dumpTable and conf.dumpAll:
2488
errMsg = "switch '--dump' is incompatible with switch '--dump-all'"
2489
0 commit comments