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

Skip to content

Commit 661b441

Browse files
committed
Minor bug fix
1 parent 9c264e6 commit 661b441

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/controller/controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def start():
276276
testSqlInj = False
277277

278278
if PLACE.GET in conf.parameters and not any([conf.data, conf.testParameter]):
279-
for parameter in re.findall(r"([^=]+)=([^%s]+%s?|\Z)" % (conf.pDel or ";", conf.pDel or ";"), conf.parameters[PLACE.GET]):
279+
for parameter in re.findall(r"([^=]+)=([^%s]+%s?|\Z)" % (conf.pDel or DEFAULT_GET_POST_DELIMITER, conf.pDel or DEFAULT_GET_POST_DELIMITER), conf.parameters[PLACE.GET]):
280280
paramKey = (conf.hostname, conf.path, PLACE.GET, parameter[0])
281281

282282
if paramKey not in kb.testedParams:
@@ -287,7 +287,6 @@ def start():
287287
if paramKey not in kb.testedParams:
288288
testSqlInj = True
289289

290-
testSqlInj &= (conf.hostname, conf.path, None, None) not in kb.testedParams
291290
testSqlInj &= conf.hostname not in kb.vulnHosts
292291

293292
if not testSqlInj:

0 commit comments

Comments
 (0)