From 3b0323ab6855da8d1cddca1509a72ebb31600306 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 17 May 2019 11:10:34 +0200 Subject: [PATCH] Minor patch --- lib/controller/controller.py | 5 +++-- lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index c35dd5679..632caed20 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -454,6 +454,9 @@ def start(): skip = (place == PLACE.USER_AGENT and conf.level < 3) skip |= (place == PLACE.REFERER and conf.level < 3) + # --param-filter + skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter) + # Test Host header only if # --level >= 5 skip |= (place == PLACE.HOST and conf.level < 5) @@ -466,8 +469,6 @@ def start(): skip |= (place == PLACE.COOKIE and intersect(PLACE.COOKIE, conf.skip, True) not in ([], None)) skip |= (place == PLACE.HOST and intersect(PLACE.HOST, conf.skip, True) not in ([], None)) - skip |= (conf.paramFilter and place.upper() not in conf.paramFilter) - skip &= not (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.testParameter, True)) skip &= not (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.testParameter, True)) skip &= not (place == PLACE.HOST and intersect(HOST_ALIASES, conf.testParameter, True)) diff --git a/lib/core/settings.py b/lib/core/settings.py index 9204094af..a55a8b654 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.5.103" +VERSION = "1.3.5.104" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)