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

Skip to content

Commit 32ab717

Browse files
committed
minor update
1 parent 9975ff8 commit 32ab717

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,8 +1768,8 @@ def __basicOptionValidation():
17681768
errMsg = "switch --tor is incompatible with switch --proxy"
17691769
raise sqlmapSyntaxException, errMsg
17701770

1771-
if conf.checkTor and not conf.tor:
1772-
errMsg = "switch --check-tor requires usage of switch --tor"
1771+
if conf.checkTor and not (conf.tor or conf.proxy):
1772+
errMsg = "switch --check-tor requires usage of switch --tor (or --proxy with HTTP proxy address using Tor)"
17731773
raise sqlmapSyntaxException, errMsg
17741774

17751775
if conf.skip and conf.testParameter:

0 commit comments

Comments
 (0)