mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
minor bug fix
This commit is contained in:
parent
25cde9e2c7
commit
73a500833d
|
@ -1338,7 +1338,7 @@ def getRange(count, dump=False, plusOne=False):
|
|||
|
||||
return indexRange
|
||||
|
||||
def parseUnionPage(output, expression, partial=False, condition=None, sort=True):
|
||||
def parseUnionPage(output, expression, partial=False, sort=True):
|
||||
if output is None:
|
||||
return None
|
||||
|
||||
|
@ -1354,15 +1354,6 @@ def parseUnionPage(output, expression, partial=False, condition=None, sort=True)
|
|||
regExpr = '%s(.*?)%s' % (DUMP_START_MARKER, DUMP_STOP_MARKER)
|
||||
|
||||
output = re.findall(regExpr, output, re.DOTALL | re.IGNORECASE)
|
||||
if condition is None:
|
||||
condition = (
|
||||
kb.resumedQueries and conf.url in kb.resumedQueries.keys()
|
||||
and expression in kb.resumedQueries[conf.url].keys()
|
||||
)
|
||||
|
||||
if partial or not condition:
|
||||
logOutput = "".join("%s%s%s" % (DUMP_START_MARKER, replaceNewlineTabs(value), DUMP_STOP_MARKER) for value in output)
|
||||
dataToSessionFile("[%s][%s][%s][%s][%s]\n" % (conf.url, kb.injection.place, conf.parameters[kb.injection.place], expression, logOutput))
|
||||
|
||||
if sort:
|
||||
dict_ = {}
|
||||
|
|
|
@ -384,7 +384,7 @@ def __goInband(expression, expected=None, sort=True, resumeValue=True, unpack=Tr
|
|||
if isinstance(output, list):
|
||||
data = output
|
||||
else:
|
||||
data = parseUnionPage(output, expression, partial, None, sort)
|
||||
data = parseUnionPage(output, expression, partial, sort)
|
||||
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user