mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
quick fix
This commit is contained in:
parent
cbd0ea0866
commit
4ca81dd345
|
@ -1442,11 +1442,13 @@ class Enumeration:
|
||||||
break
|
break
|
||||||
|
|
||||||
for column in colList:
|
for column in colList:
|
||||||
if column == colList[0]:
|
# Correction for pivotValues with unrecognized/problematic chars
|
||||||
# Correction for pivotValues with unrecognized chars
|
for char in ('\'', '?'):
|
||||||
if pivotValue and '?' in pivotValue and pivotValue[0] != '?':
|
if pivotValue and char in pivotValue and pivotValue[0] != char:
|
||||||
pivotValue = pivotValue.split('?')[0]
|
pivotValue = pivotValue.split(char)[0]
|
||||||
pivotValue = pivotValue[:-1] + chr(ord(pivotValue[-1]) + 1)
|
pivotValue = pivotValue[:-1] + chr(ord(pivotValue[-1]) + 1)
|
||||||
|
break
|
||||||
|
if column == colList[0]:
|
||||||
query = dumpNode.query % (column, table, column, pivotValue)
|
query = dumpNode.query % (column, table, column, pivotValue)
|
||||||
else:
|
else:
|
||||||
query = dumpNode.query2 % (column, table, colList[0], pivotValue)
|
query = dumpNode.query2 % (column, table, colList[0], pivotValue)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user