mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
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:
parent
af99105c27
commit
23c95107ed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user