mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
minor update
This commit is contained in:
parent
68462466f2
commit
3d23f226ae
|
@ -1218,6 +1218,8 @@ class Enumeration:
|
||||||
indexRange = getRange(count, dump=True, plusOne=plusOne)
|
indexRange = getRange(count, dump=True, plusOne=plusOne)
|
||||||
|
|
||||||
if kb.dbms == DBMS.ACCESS:
|
if kb.dbms == DBMS.ACCESS:
|
||||||
|
validColumnList = False
|
||||||
|
|
||||||
for column in colList:
|
for column in colList:
|
||||||
infoMsg = "fetching number of distinct "
|
infoMsg = "fetching number of distinct "
|
||||||
infoMsg += "values for column '%s'" % column
|
infoMsg += "values for column '%s'" % column
|
||||||
|
@ -1226,14 +1228,20 @@ class Enumeration:
|
||||||
query = rootQuery.blind.count2 % (column, conf.tbl)
|
query = rootQuery.blind.count2 % (column, conf.tbl)
|
||||||
value = inject.getValue(query, inband=False)
|
value = inject.getValue(query, inband=False)
|
||||||
|
|
||||||
if isNumPosStrValue(value) and value == count:
|
if isNumPosStrValue(value):
|
||||||
infoMsg = "using column '%s' as a pivot " % column
|
validColumnList = True
|
||||||
infoMsg += "for retrieving row data"
|
if value == count:
|
||||||
logger.info(infoMsg)
|
infoMsg = "using column '%s' as a pivot " % column
|
||||||
|
infoMsg += "for retrieving row data"
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
||||||
colList.remove(column)
|
colList.remove(column)
|
||||||
colList.insert(0, column)
|
colList.insert(0, column)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if not validColumnList:
|
||||||
|
errMsg = "all column name(s) provided are non-existent"
|
||||||
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
pivotValue = " "
|
pivotValue = " "
|
||||||
for index in indexRange:
|
for index in indexRange:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user