This commit is contained in:
Miroslav Stampar 2016-05-22 11:37:27 +02:00
parent 5e8b105677
commit 633e4dfe48
2 changed files with 8 additions and 5 deletions

View File

@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.0.5.39" VERSION = "1.0.5.40"
REVISION = getRevisionNumber() REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2 STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

View File

@ -134,10 +134,13 @@ def pivotDumpTable(table, colList, count=None, blind=True):
value = _(column, pivotValue) value = _(column, pivotValue)
if column == colList[0]: if column == colList[0]:
if isNoneValue(value): if isNoneValue(value):
for pivotValue in filter(None, (" " if pivotValue == " " else None, "%s%s" % (pivotValue[0], unichr(ord(pivotValue[1]) + 1)) if len(pivotValue) > 1 else None, unichr(ord(pivotValue[0]) + 1))): try:
value = _(column, pivotValue) for pivotValue in filter(None, (" " if pivotValue == " " else None, "%s%s" % (pivotValue[0], unichr(ord(pivotValue[1]) + 1)) if len(pivotValue) > 1 else None, unichr(ord(pivotValue[0]) + 1))):
if not isNoneValue(value): value = _(column, pivotValue)
break if not isNoneValue(value):
break
except ValueError:
pass
if isNoneValue(value): if isNoneValue(value):
breakRetrieval = True breakRetrieval = True