diff --git a/lib/core/common.py b/lib/core/common.py index c025a1f8e..8b6541eef 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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_ = {} diff --git a/lib/request/inject.py b/lib/request/inject.py index 5254f5e85..dd3a99135 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -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