@@ -146,6 +146,13 @@ def checkSqlInjection(place, parameter, value):
146146 logger .debug (debugMsg )
147147 continue
148148
149+ # Skip tests if title is not included by the given filter
150+ if conf .testFilter and not re .search (conf .testFilter , test .title , re .I ):
151+ debugMsg = "skipping test '%s' because " % title
152+ debugMsg += "it's name is not included by the given filter"
153+ logger .debug (debugMsg )
154+ continue
155+
149156 # Skip DBMS-specific test if it does not match either the
150157 # previously identified or the user's provided DBMS (either
151158 # from program switch or from parsed error message(s))
@@ -160,14 +167,12 @@ def checkSqlInjection(place, parameter, value):
160167 debugMsg += "the back-end DBMS identified is "
161168 debugMsg += "%s" % injection .dbms
162169 logger .debug (debugMsg )
163-
164170 continue
165171
166172 if conf .dbms is not None and not intersect (conf .dbms .lower (), [value .lower () for value in arrayizeValue (dbms )]):
167173 debugMsg = "skipping test '%s' because " % title
168174 debugMsg += "the provided DBMS is %s" % conf .dbms
169175 logger .debug (debugMsg )
170-
171176 continue
172177
173178 if len (Backend .getErrorParsedDBMSes ()) > 0 and not intersect (dbms , Backend .getErrorParsedDBMSes ()) and kb .skipOthersDbms is None :
@@ -186,7 +191,6 @@ def checkSqlInjection(place, parameter, value):
186191 debugMsg += "that the back-end DBMS could be "
187192 debugMsg += "%s" % Format .getErrorParsedDBMSes ()
188193 logger .debug (debugMsg )
189-
190194 continue
191195
192196 # Skip test if it does not match the same SQL injection clause
0 commit comments