From 381deb68ff36437cdfa99acb1652ad51945aeeb2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 27 Sep 2016 13:26:11 +0200 Subject: [PATCH] Implementation for an Issue #2137 --- lib/controller/checks.py | 16 +++++++++------- lib/core/settings.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 105990747..7361eec12 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1329,7 +1329,7 @@ def identifyWaf(): kb.redirectChoice = popValue() return page or "", headers or {}, code - retVal = False + retVal = [] for function, product in kb.wafFunctions: try: @@ -1343,18 +1343,20 @@ def identifyWaf(): found = False if found: - retVal = product - break + errMsg = "WAF/IDS/IPS identified as '%s'" % product + logger.critical(errMsg) + + retVal.append(product) if retVal: - errMsg = "WAF/IDS/IPS identified as '%s'. Please " % retVal - errMsg += "consider usage of tamper scripts (option '--tamper')" - logger.critical(errMsg) - message = "are you sure that you want to " message += "continue with further target testing? [y/N] " output = readInput(message, default="N") + if not conf.tamper: + warnMsg = "please consider usage of tamper scripts (option '--tamper')" + singleTimeWarnMessage(warnMsg) + if output and output[0] not in ("Y", "y"): raise SqlmapUserQuitException else: diff --git a/lib/core/settings.py b/lib/core/settings.py index 74e8320a2..d2a11419b 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.9.39" +VERSION = "1.0.9.40" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/txt/checksum.md5 b/txt/checksum.md5 index df1680308..d651aae1b 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -20,7 +20,7 @@ b46521e29ea3d813bab5aeb16cac6498 extra/shutils/duplicates.py cc9c82cfffd8ee9b25ba3af6284f057e extra/sqlharvest/__init__.py 4f2f817596540d82f9fcc0c5b2228beb extra/sqlharvest/sqlharvest.py 2daa39e4d59526acb4772b6c47eb315f lib/controller/action.py -1caf7c1bad475d3e1276edffc6da8a8c lib/controller/checks.py +66cddf7f40c002d663d4401a440ec1aa lib/controller/checks.py 7c5ba631796f12d6de9b667e4cc7812b lib/controller/controller.py 0a64305c3b3a01a2fc3a5e6204f442f1 lib/controller/handler.py cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -25daaeb7b15df46b1d9abccc49719654 lib/core/settings.py +beddfa335e49041ded23235064af09de lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py