run like --threads=20! will skip the maximum number of threads check

This commit is contained in:
Miroslav Stampar
2014-12-21 05:15:42 +01:00
parent 4f122ee008
commit 76f79ece13
3 changed files with 17 additions and 8 deletions

View File

@@ -2190,7 +2190,7 @@ def _basicOptionValidation():
errMsg = "switch '--predict-output' is incompatible with option '--threads' and switch '-o'"
raise SqlmapSyntaxException(errMsg)
if conf.threads > MAX_NUMBER_OF_THREADS:
if conf.threads > MAX_NUMBER_OF_THREADS and not conf.get("skipThreadCheck"):
errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS
raise SqlmapSyntaxException(errMsg)