From 80aedbe2840679e12cd62870c544c69b008cb19e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 May 2012 18:17:32 +0000 Subject: [PATCH] adding a warning about --tor switch --- lib/core/option.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index d979eb417..b3cb70f89 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1778,6 +1778,12 @@ def __setTorHttpProxySettings(): raise sqlmapConnectionException, errMsg + if not conf.checkTor: + warnMsg = "please use regularly switch '--check-tor' for your own security when using " + warnMsg += "default HTTP proxy settings (option '--tor-type') for accessing Tor anonymizing " + warnMsg += "network because of known issues with default settings of various 'bundles' (e.g. Vidalia/Polipo)" + logger.warn(warnMsg) + def __setTorSocksProxySettings(): infoMsg = "setting Tor SOCKS proxy settings" logger.info(infoMsg)