minor bug fix

This commit is contained in:
Miroslav Stampar 2011-12-12 14:38:06 +00:00
parent 25cde9e2c7
commit 73a500833d
2 changed files with 2 additions and 11 deletions

View File

@ -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_ = {}

View File

@ -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