Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 064d443

Browse files
committed
replaced unnecessary dataToStdout() call with appropriate logger.info() call
1 parent 2926c81 commit 064d443

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
6969

7070
if retVal:
7171
partialValue = retVal
72-
dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), safecharencode(partialValue)))
72+
infoMsg = "resuming partial value: %s" % safecharencode(partialValue)
73+
logger.info(infoMsg)
7374
else:
74-
dataToStdout("[%s] [INFO] resumed: %s\r\n" % (time.strftime("%X"), safecharencode(retVal)))
75+
infoMsg = "resumed: %s" % safecharencode(retVal)
76+
logger.info(infoMsg)
77+
7578
return 0, retVal
7679

7780
try:

0 commit comments

Comments
 (0)