Minor patch for an Issue #274 (just in case to avoid this kind of problems)

This commit is contained in:
Miroslav Stampar 2012-12-04 16:14:14 +01:00
parent c636c26acc
commit 6b007ab188

View File

@ -1964,6 +1964,10 @@ def __basicOptionValidation():
errMsg = "switch '--forms' requires usage of option '-u' (--url)" errMsg = "switch '--forms' requires usage of option '-u' (--url)"
raise sqlmapSyntaxException, errMsg raise sqlmapSyntaxException, errMsg
if conf.requestFile and conf.url:
errMsg = "option '-r' is incompatible with option '-u' (--url)"
raise sqlmapSyntaxException, errMsg
if conf.tor and conf.ignoreProxy: if conf.tor and conf.ignoreProxy:
errMsg = "switch '--tor' is incompatible with switch '--ignore-proxy'" errMsg = "switch '--tor' is incompatible with switch '--ignore-proxy'"
raise sqlmapSyntaxException, errMsg raise sqlmapSyntaxException, errMsg