From d66056fe3992972957bdf75037d094c03c15ea9e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 16 Mar 2012 13:16:53 +0000 Subject: [PATCH] one more related commit --- 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 3b7a177a3..da5176739 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -63,8 +63,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None if retVal: if PARTIAL_VALUE_MARKER in retVal: - partialValue = retVal.replace(PARTIAL_VALUE_MARKER, "") - dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), safecharencode(partialValue))) + retVal = retVal.replace(PARTIAL_VALUE_MARKER, "") + if retVal: + partialValue = retVal + dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), safecharencode(partialValue))) else: dataToStdout("[%s] [INFO] resumed: %s\r\n" % (time.strftime("%X"), safecharencode(retVal))) return 0, retVal