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

Skip to content

Commit 4ded9a9

Browse files
committed
Small patch for existing option validation
1 parent 77c96de commit 4ded9a9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,6 +2261,14 @@ def _basicOptionValidation():
22612261
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
22622262
raise SqlmapSyntaxException(errMsg)
22632263

2264+
if conf.safePost and not conf.safeUrl:
2265+
errMsg = "option '--safe-post' requires usage of option '--safe-url'"
2266+
raise SqlmapSyntaxException(errMsg)
2267+
2268+
if conf.safeFreq and not conf.safeUrl:
2269+
errMsg = "option '--safe-freq' requires usage of option '--safe-url'"
2270+
raise SqlmapSyntaxException(errMsg)
2271+
22642272
if conf.csrfUrl and not conf.csrfToken:
22652273
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
22662274
raise SqlmapSyntaxException(errMsg)

0 commit comments

Comments
 (0)