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

Skip to content

Commit c3d0295

Browse files
committed
minor update (checking for --time-sec value)
1 parent b75d7fa commit c3d0295

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,10 @@ def __basicOptionValidation():
13581358
errMsg = "switch --forms is compatible only with -u (--url) target switch"
13591359
raise sqlmapSyntaxException, errMsg
13601360

1361+
if conf.timeSec < 1:
1362+
errMsg = "value for --time-sec option must be an integer greater than 0"
1363+
raise sqlmapSyntaxException, errMsg
1364+
13611365
def init(inputOptions=advancedDict()):
13621366
"""
13631367
Set attributes into both configuration and knowledge base singletons

0 commit comments

Comments
 (0)