From 14676bdffb33185562320a1230b330560450a343 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Nov 2017 10:35:01 +0100 Subject: [PATCH] Switching proxies when Google detects unusual traffic --- lib/utils/search.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/utils/search.py b/lib/utils/search.py index 9ef1e52d0..2296b1b5b 100644 --- a/lib/utils/search.py +++ b/lib/utils/search.py @@ -104,7 +104,11 @@ def _search(dork): if not retVal and "detected unusual traffic" in page: warnMsg = "Google has detected 'unusual' traffic from " warnMsg += "used IP address disabling further searches" - logger.warn(warnMsg) + + if conf.proxyList: + raise SqlmapBaseException(warnMsg) + else: + logger.critical(warnMsg) if not retVal: message = "no usable links found. What do you want to do?"