we must do this because people tend to use ignorantly huge number threads resulting in lots of CRITICAL (timeout) connection messages (also, avoiding DoS)

This commit is contained in:
Miroslav Stampar 2011-02-02 09:24:37 +00:00
parent af99105c27
commit 23c95107ed

View File

@ -1397,6 +1397,10 @@ def __basicOptionValidation():
errMsg = "switch --predict-output is incompatible with switch --threads"
raise sqlmapSyntaxException, errMsg
if conf.threads > 10:
errMsg = "maximum number of used threads is 10 avoiding possible stability issues"
raise sqlmapSyntaxException, errMsg
if conf.forms and not conf.url:
errMsg = "switch --forms requires usage of -u (--url) switch"
raise sqlmapSyntaxException, errMsg