From 9a3879feba5b5e3999734079ea8d06acd4f34730 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 25 Oct 2010 12:33:49 +0000 Subject: [PATCH] keeping things neat and tidy --- lib/core/option.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index d625cfa47..4b569a1fb 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -987,7 +987,8 @@ def __cleanupOptions(): conf.multipleTargets = True if conf.optimize: - conf.predictOutput = conf.keepAlive = True + #conf.predictOutput = True + conf.keepAlive = True conf.nullConnection = not conf.textOnly conf.threads = 4 if conf.threads < 2 else conf.threads @@ -1229,6 +1230,10 @@ def __basicOptionValidation(): errMsg = "switch --data is incompatible with switch --null-connection" raise sqlmapSyntaxException, errMsg + if conf.predictOutput and conf.threads > 1: + errMsg = "switch --predict-output is incompatible with switch --threads" + raise sqlmapSyntaxException, errMsg + def init(inputOptions=advancedDict()): """ Set attributes into both configuration and knowledge base singletons