From e290f2b80ba21e189b6220c9395e5b657a61cbc4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 28 Oct 2011 11:11:55 +0000 Subject: [PATCH] minor update --- lib/techniques/blind/inference.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 79af5e528..82725efad 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -108,13 +108,15 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None progress = ProgressBar(maxValue=length) progressTime = [] + if timeBasedCompare and conf.threads > 1: + warnMsg = "multi-threading is considered unsafe in time-based data retrieval. Going to switch it off automatically" + singleTimeWarnMessage(warnMsg) + if numThreads > 1: if not timeBasedCompare: debugMsg = "starting %d thread%s" % (numThreads, ("s" if numThreads > 1 else "")) logger.debug(debugMsg) else: - debugMsg = "multi-threading is not considered safe in time-based data retrieval" - logger.debug(debugMsg) numThreads = 1 if conf.threads == 1 and not timeBasedCompare: