From 996e882e7826f7b4c6ed2d41e039190f0e332c8a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 10 Dec 2012 17:13:00 +0100 Subject: [PATCH] Minor update --- lib/techniques/error/use.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 7c5d08c64..3ab4efab1 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -97,13 +97,13 @@ def _oneShotErrorUse(expression, field=None): # Parse the returned page to get the exact error-based # SQL injection output - output = reduce(lambda x, y: x if x is not None else y, [ \ + output = reduce(lambda x, y: x if x is not None else y, ( \ extractRegexResult(check, page, re.DOTALL | re.IGNORECASE), \ extractRegexResult(check, listToStrValue(headers.headers \ if headers else None), re.DOTALL | re.IGNORECASE), \ extractRegexResult(check, threadData.lastRedirectMsg[1] \ if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \ - threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)], \ + threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)), \ None) if output is not None: @@ -388,7 +388,7 @@ def errorUse(expression, dump=False): if not kb.threadContinue: break - if output and isinstance(output, list) and len(output) == 1: + if output and isListLike(output) and len(output) == 1: output = output[0] with kb.locks.outputs: