mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #4494
This commit is contained in:
parent
41e247be56
commit
99e6d56f09
2 changed files with 8 additions and 1 deletions
|
|
@ -2591,6 +2591,13 @@ def _basicOptionValidation():
|
|||
errMsg = "switch '--no-cast' is incompatible with switch '--hex'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.crawlDepth:
|
||||
try:
|
||||
xrange(conf.crawlDepth)
|
||||
except OverflowError as ex:
|
||||
errMsg = "invalid value used for option '--crawl' ('%s')" % getSafeExString(ex)
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.dumpAll and conf.search:
|
||||
errMsg = "switch '--dump-all' is incompatible with switch '--search'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue