From 3865b3a398757c419e4acce9ae0c9ada394d25cc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 25 May 2016 12:50:53 +0200 Subject: [PATCH] Minor improvement in case of technique E (when waiting for large entry - lots of chunks) --- lib/core/settings.py | 2 +- lib/techniques/error/use.py | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8390af3ba..709851bf2 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.5.65" +VERSION = "1.0.5.66" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 81b490fcf..b4710c05d 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -44,6 +44,7 @@ from lib.core.settings import MIN_ERROR_CHUNK_LENGTH from lib.core.settings import MAX_ERROR_CHUNK_LENGTH from lib.core.settings import NULL from lib.core.settings import PARTIAL_VALUE_MARKER +from lib.core.settings import ROTATING_CHARS from lib.core.settings import SLOW_ORDER_COUNT_THRESHOLD from lib.core.settings import SQL_SCALAR_REGEX from lib.core.settings import TURN_OFF_RESUME_INFO_LIMIT @@ -55,6 +56,7 @@ from lib.utils.progress import ProgressBar def _oneShotErrorUse(expression, field=None, chunkTest=False): offset = 1 + rotator = 0 partialValue = None threadData = getCurrentThreadData() retVal = hashDBRetrieve(expression, checkConf=True) @@ -174,8 +176,16 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False): else: break - if kb.fileReadMode and output: - dataToStdout(_formatPartialContent(output).replace(r"\n", "\n").replace(r"\t", "\t")) + if output: + if kb.fileReadMode: + dataToStdout(_formatPartialContent(output).replace(r"\n", "\n").replace(r"\t", "\t")) + elif offset > 1: + rotator += 1 + + if rotator >= len(ROTATING_CHARS): + rotator = 0 + + dataToStdout("\r%s\r" % ROTATING_CHARS[rotator]) else: retVal = output break