From 3abe87ac89814172e862c5946c1c264da2225265 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 7 Jan 2013 18:53:08 +0100 Subject: [PATCH] Minor fix with status update (Issue #305) --- lib/techniques/blind/inference.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 88c8e4d37..8f6305e68 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -410,9 +410,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None output = output[:-2] + '..' if conf.verbose in (1, 2) and not showEta: + _ = count - firstChar output += '_' * (min(length, conf.progressWidth) - len(output)) - status = ' %d/%d (%d%s)' % (count, length, round(100.0*count/length), '%') - output += status if count != length else " " * len(status) + status = ' %d/%d (%d%s)' % (_, length, round(100.0 * _ / length), '%') + output += status if _ != length else " " * len(status) dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), filterControlChars(output)))