other techniques use dataToStdout for retrieved string, hence this update (also, fixing ugly retrieved: 0 or 1 while doing fingerprinting --flush-session -f --technique=2)

This commit is contained in:
Miroslav Stampar 2011-02-12 20:03:28 +00:00
parent 9f7d666451
commit 83d7803ce7

View File

@ -14,6 +14,7 @@ from lib.core.agent import agent
from lib.core.common import Backend
from lib.core.common import calculateDeltaSeconds
from lib.core.common import dataToSessionFile
from lib.core.common import dataToStdout
from lib.core.common import extractRegexResult
from lib.core.common import initTechnique
from lib.core.common import isNumPosStrValue
@ -117,7 +118,7 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N
output = __oneShotErrorUse(expressionReplaced, field)
if output is not None:
logger.info("retrieved: %s" % output)
dataToStdout("[%s] [INFO] retrieved: %s\n" % (time.strftime("%X"), replaceNewlineTabs(output, stdout=True)))
if isinstance(num, int):
expression = origExpr