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

Skip to content

Commit 8d84dcc

Browse files
committed
More sense
1 parent c8f943f commit 8d84dcc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

lib/controller/checks.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,6 @@ def checkSqlInjection(place, parameter, value):
113113
logger.debug(debugMsg)
114114
continue
115115

116-
# Skip test if it is the same SQL injection type already
117-
# identified by another test
118-
if injection.data and stype in injection.data:
119-
debugMsg = "skipping test '%s' because " % title
120-
debugMsg += "the payload for %s has " % PAYLOAD.SQLINJECTION[stype]
121-
debugMsg += "already been identified"
122-
logger.debug(debugMsg)
123-
continue
124-
125116
# Skip DBMS-specific test if it does not match either the
126117
# previously identified or the user's provided DBMS
127118
if "details" in test and "dbms" in test.details:
@@ -145,6 +136,15 @@ def checkSqlInjection(place, parameter, value):
145136

146137
continue
147138

139+
# Skip test if it is the same SQL injection type already
140+
# identified by another test
141+
if injection.data and stype in injection.data:
142+
debugMsg = "skipping test '%s' because " % title
143+
debugMsg += "the payload for %s has " % PAYLOAD.SQLINJECTION[stype]
144+
debugMsg += "already been identified"
145+
logger.debug(debugMsg)
146+
continue
147+
148148
infoMsg = "testing '%s'" % title
149149
logger.info(infoMsg)
150150

0 commit comments

Comments
 (0)