From 064d443d60341fd905ebbc8ca59e00453a69dd58 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 17 Dec 2012 11:30:08 +0000 Subject: [PATCH] replaced unnecessary dataToStdout() call with appropriate logger.info() call --- lib/techniques/blind/inference.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 495a4a3e1..5a7c1406d 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -69,9 +69,12 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None if retVal: partialValue = retVal - dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), safecharencode(partialValue))) + infoMsg = "resuming partial value: %s" % safecharencode(partialValue) + logger.info(infoMsg) else: - dataToStdout("[%s] [INFO] resumed: %s\r\n" % (time.strftime("%X"), safecharencode(retVal))) + infoMsg = "resumed: %s" % safecharencode(retVal) + logger.info(infoMsg) + return 0, retVal try: