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

Skip to content

Commit 3865b3a

Browse files
committed
Minor improvement in case of technique E (when waiting for large entry - lots of chunks)
1 parent d6bcbba commit 3865b3a

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.65"
22+
VERSION = "1.0.5.66"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/techniques/error/use.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from lib.core.settings import MAX_ERROR_CHUNK_LENGTH
4545
from lib.core.settings import NULL
4646
from lib.core.settings import PARTIAL_VALUE_MARKER
47+
from lib.core.settings import ROTATING_CHARS
4748
from lib.core.settings import SLOW_ORDER_COUNT_THRESHOLD
4849
from lib.core.settings import SQL_SCALAR_REGEX
4950
from lib.core.settings import TURN_OFF_RESUME_INFO_LIMIT
@@ -55,6 +56,7 @@
5556

5657
def _oneShotErrorUse(expression, field=None, chunkTest=False):
5758
offset = 1
59+
rotator = 0
5860
partialValue = None
5961
threadData = getCurrentThreadData()
6062
retVal = hashDBRetrieve(expression, checkConf=True)
@@ -174,8 +176,16 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
174176
else:
175177
break
176178

177-
if kb.fileReadMode and output:
178-
dataToStdout(_formatPartialContent(output).replace(r"\n", "\n").replace(r"\t", "\t"))
179+
if output:
180+
if kb.fileReadMode:
181+
dataToStdout(_formatPartialContent(output).replace(r"\n", "\n").replace(r"\t", "\t"))
182+
elif offset > 1:
183+
rotator += 1
184+
185+
if rotator >= len(ROTATING_CHARS):
186+
rotator = 0
187+
188+
dataToStdout("\r%s\r" % ROTATING_CHARS[rotator])
179189
else:
180190
retVal = output
181191
break

0 commit comments

Comments
 (0)