mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Fixing non-resumal of MsSQL/Sybase/MaxDB enumeration queries
This commit is contained in:
parent
721046831b
commit
e697354765
8 changed files with 33 additions and 33 deletions
|
|
@ -32,7 +32,7 @@ from lib.core.settings import NULL
|
|||
from lib.core.unescaper import unescaper
|
||||
from lib.request import inject
|
||||
|
||||
def pivotDumpTable(table, colList, count=None, blind=True):
|
||||
def pivotDumpTable(table, colList, count=None, blind=True, alias=None):
|
||||
lengths = {}
|
||||
entries = {}
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ def pivotDumpTable(table, colList, count=None, blind=True):
|
|||
if not validPivotValue:
|
||||
for column in colList:
|
||||
infoMsg = "fetching number of distinct "
|
||||
infoMsg += "values for column '%s'" % column
|
||||
infoMsg += "values for column '%s'" % column.replace(("%s." % alias) if alias else "", "")
|
||||
logger.info(infoMsg)
|
||||
|
||||
query = dumpNode.count2 % (column, table)
|
||||
|
|
@ -100,7 +100,7 @@ def pivotDumpTable(table, colList, count=None, blind=True):
|
|||
validColumnList = True
|
||||
|
||||
if value == count:
|
||||
infoMsg = "using column '%s' as a pivot " % column
|
||||
infoMsg = "using column '%s' as a pivot " % column.replace(("%s." % alias) if alias else "", "")
|
||||
infoMsg += "for retrieving row data"
|
||||
logger.info(infoMsg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue