Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 996e882

Browse files
committed
Minor update
1 parent 013dc8b commit 996e882

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/techniques/error/use.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ def _oneShotErrorUse(expression, field=None):
9797

9898
# Parse the returned page to get the exact error-based
9999
# SQL injection output
100-
output = reduce(lambda x, y: x if x is not None else y, [ \
100+
output = reduce(lambda x, y: x if x is not None else y, ( \
101101
extractRegexResult(check, page, re.DOTALL | re.IGNORECASE), \
102102
extractRegexResult(check, listToStrValue(headers.headers \
103103
if headers else None), re.DOTALL | re.IGNORECASE), \
104104
extractRegexResult(check, threadData.lastRedirectMsg[1] \
105105
if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \
106-
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)], \
106+
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)), \
107107
None)
108108

109109
if output is not None:
@@ -388,7 +388,7 @@ def errorThread():
388388
if not kb.threadContinue:
389389
break
390390

391-
if output and isinstance(output, list) and len(output) == 1:
391+
if output and isListLike(output) and len(output) == 1:
392392
output = output[0]
393393

394394
with kb.locks.outputs:

0 commit comments

Comments
 (0)