From c3d0295d217861aac013640f4152c3739f5d6410 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 14 Dec 2010 12:37:21 +0000 Subject: [PATCH] minor update (checking for --time-sec value) --- lib/core/option.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 1861311f3..9bbe7f8d8 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1358,6 +1358,10 @@ def __basicOptionValidation(): errMsg = "switch --forms is compatible only with -u (--url) target switch" raise sqlmapSyntaxException, errMsg + if conf.timeSec < 1: + errMsg = "value for --time-sec option must be an integer greater than 0" + raise sqlmapSyntaxException, errMsg + def init(inputOptions=advancedDict()): """ Set attributes into both configuration and knowledge base singletons