@@ -81,13 +81,13 @@ def tableExistsThread():
8181 threadData = getCurrentThreadData ()
8282
8383 while kb .threadContinue :
84- kb .locks .countLock .acquire ()
84+ kb .locks .count .acquire ()
8585 if threadData .shared .count < threadData .shared .limit :
8686 table = safeSQLIdentificatorNaming (tables [threadData .shared .count ], True )
8787 threadData .shared .count += 1
88- kb .locks .countLock .release ()
88+ kb .locks .count .release ()
8989 else :
90- kb .locks .countLock .release ()
90+ kb .locks .count .release ()
9191 break
9292
9393 if conf .db and METADB_SUFFIX not in conf .db :
@@ -97,7 +97,7 @@ def tableExistsThread():
9797
9898 result = inject .checkBooleanExpression ("%s" % safeStringFormat (BRUTE_TABLE_EXISTS_TEMPLATE , (randomInt (1 ), fullTableName )))
9999
100- kb .locks .ioLock .acquire ()
100+ kb .locks .io .acquire ()
101101
102102 if result and table .lower () not in threadData .shared .unique :
103103 threadData .shared .outputs .append (table )
@@ -112,7 +112,7 @@ def tableExistsThread():
112112 status = '%d/%d items (%d%s)' % (threadData .shared .count , threadData .shared .limit , round (100.0 * threadData .shared .count / threadData .shared .limit ), '%' )
113113 dataToStdout ("\r [%s] [INFO] tried %s" % (time .strftime ("%X" ), status ), True )
114114
115- kb .locks .ioLock .release ()
115+ kb .locks .io .release ()
116116
117117 try :
118118 runThreads (conf .threads , tableExistsThread , threadChoice = True )
@@ -180,18 +180,18 @@ def columnExistsThread():
180180 threadData = getCurrentThreadData ()
181181
182182 while kb .threadContinue :
183- kb .locks .countLock .acquire ()
183+ kb .locks .count .acquire ()
184184 if threadData .shared .count < threadData .shared .limit :
185185 column = safeSQLIdentificatorNaming (columns [threadData .shared .count ])
186186 threadData .shared .count += 1
187- kb .locks .countLock .release ()
187+ kb .locks .count .release ()
188188 else :
189- kb .locks .countLock .release ()
189+ kb .locks .count .release ()
190190 break
191191
192192 result = inject .checkBooleanExpression (safeStringFormat (BRUTE_COLUMN_EXISTS_TEMPLATE , (column , table )))
193193
194- kb .locks .ioLock .acquire ()
194+ kb .locks .io .acquire ()
195195
196196 if result :
197197 threadData .shared .outputs .append (column )
@@ -205,7 +205,7 @@ def columnExistsThread():
205205 status = '%d/%d items (%d%s)' % (threadData .shared .count , threadData .shared .limit , round (100.0 * threadData .shared .count / threadData .shared .limit ), '%' )
206206 dataToStdout ("\r [%s] [INFO] tried %s" % (time .strftime ("%X" ), status ), True )
207207
208- kb .locks .ioLock .release ()
208+ kb .locks .io .release ()
209209
210210 try :
211211 runThreads (conf .threads , columnExistsThread , threadChoice = True )
0 commit comments