From 23c95107ede14f56315a6579e102ebf005abf4a1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 2 Feb 2011 09:24:37 +0000 Subject: [PATCH] we must do this because people tend to use ignorantly huge number threads resulting in lots of CRITICAL (timeout) connection messages (also, avoiding DoS) --- lib/core/option.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 679a93f9b..ab25de377 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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