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

Skip to content

Commit c76d740

Browse files
committed
just a precaution
1 parent 70e87d9 commit c76d740

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/controller/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ def start():
357357
warnMsg += "injectable"
358358
logger.warn(warnMsg)
359359

360-
if len(kb.injections) == 0 and not kb.injection.place and not kb.injection.parameter:
360+
if (len(kb.injections) == 0 or len(kb.injections) == 1 and kb.injections[0].parameter is None) \
361+
and not kb.injection.place and not kb.injection.parameter:
361362
errMsg = "all parameters are not injectable, try "
362363
errMsg += "a higher --level"
363364
raise sqlmapNotVulnerableException, errMsg

0 commit comments

Comments
 (0)