From 1119a85f39ae5ea981d8a72acdeb4ac3d53b583b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 25 Mar 2011 21:31:26 +0000 Subject: [PATCH] it's a must after all - partial union is specific and as there is no output for fetched value, we have to display something to the user. also, there is a bug fix (removed the leftover parseUnionPage) --- lib/techniques/inband/union/use.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/techniques/inband/union/use.py b/lib/techniques/inband/union/use.py index 1719b8853..c7b23c0e6 100644 --- a/lib/techniques/inband/union/use.py +++ b/lib/techniques/inband/union/use.py @@ -13,6 +13,8 @@ import time from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import calculateDeltaSeconds +from lib.core.common import clearConsoleLine +from lib.core.common import dataToStdout from lib.core.common import extractRegexResult from lib.core.common import filterStringValue from lib.core.common import getUnicode @@ -248,7 +250,15 @@ def unionUse(expression, unpack=True, dump=False): if output: value += output - parseUnionPage(output, limitedExpr) + + if conf.verbose == 1: + length = stopLimit - startLimit + count = num - startLimit + 1 + status = '%d/%d entries (%d%s)' % (count, length, round(100.0*count/length), '%') + dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), status), True) + + if conf.verbose == 1: + clearConsoleLine(True) except KeyboardInterrupt: print