fix for those ugly DEBUG messages in brute mode

This commit is contained in:
Miroslav Stampar
2011-04-08 11:02:21 +00:00
parent 5b21352656
commit 228cc68747
5 changed files with 15 additions and 9 deletions

View File

@@ -63,8 +63,9 @@ def __goInference(payload, expression, charsetType=None, firstChar=None, lastCha
count, value = bisection(payload, expression, length, charsetType, firstChar, lastChar, dump)
debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start))
logger.debug(debugMsg)
if not kb.bruteMode:
debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start))
logger.debug(debugMsg)
return value