Implementing --proxy-freq (Issue #4496)

This commit is contained in:
Miroslav Stampar
2020-12-26 23:04:48 +01:00
parent bb02eefb70
commit 1b2ac3069d
5 changed files with 18 additions and 1 deletions

View File

@@ -2714,6 +2714,10 @@ def _basicOptionValidation():
errMsg = "switch '--proxy' is incompatible with option '--proxy-file'"
raise SqlmapSyntaxException(errMsg)
if conf.proxyFreq and not conf.proxyFile:
errMsg = "option '--proxy-freq' requires usage of option '--proxy-file'"
raise SqlmapSyntaxException(errMsg)
if conf.checkTor and not any((conf.tor, conf.proxy)):
errMsg = "switch '--check-tor' requires usage of switch '--tor' (or option '--proxy' with HTTP proxy address of Tor service)"
raise SqlmapSyntaxException(errMsg)