File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def tableExists(tableFile, regex=None):
54
54
count = [0 ]
55
55
length = len (tables )
56
56
threads = []
57
+ items = set ()
57
58
tbllock = threading .Lock ()
58
59
iolock = threading .Lock ()
59
60
kb .threadContinue = True
@@ -75,9 +76,11 @@ def tableExistsThread():
75
76
76
77
iolock .acquire ()
77
78
78
- if result :
79
+ if result and table . lower () not in items :
79
80
retVal .append (table )
80
81
82
+ items .add (table .lower ())
83
+
81
84
dataToSessionFile ("[%s][%s][%s][TABLE_EXISTS][%s]\n " % (conf .url ,\
82
85
kb .injection .place , safeFormatString (conf .parameters [kb .injection .place ]),\
83
86
safeFormatString (fullTableName )))
@@ -152,12 +155,7 @@ def tableExistsThread():
152
155
warnMsg = "no table found"
153
156
logger .warn (warnMsg )
154
157
else :
155
- items = set ()
156
158
for item in retVal :
157
- if item .lower () in items :
158
- continue
159
- else :
160
- items .add (item .lower ())
161
159
if not kb .data .cachedTables .has_key (conf .db ):
162
160
kb .data .cachedTables [conf .db ] = [item ]
163
161
else :
You can’t perform that action at this time.
0 commit comments