File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments