From 22484c8599adc489c8a4e9656380e1d58ed759c6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 9 Nov 2015 13:19:55 +0100 Subject: [PATCH] Bug fix (-p Host didn't work, while -p host worked) --- lib/core/target.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/target.py b/lib/core/target.py index 98101d433..6d5dd9622 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -327,7 +327,7 @@ def _setRequestParams(): if httpHeader == HTTP_HEADER.USER_AGENT: conf.parameters[PLACE.USER_AGENT] = urldecode(headerValue) - condition = any((not conf.testParameter, intersect(conf.testParameter, USER_AGENT_ALIASES))) + condition = any((not conf.testParameter, intersect(conf.testParameter, USER_AGENT_ALIASES, True))) if condition: conf.paramDict[PLACE.USER_AGENT] = {PLACE.USER_AGENT: headerValue} @@ -336,7 +336,7 @@ def _setRequestParams(): elif httpHeader == HTTP_HEADER.REFERER: conf.parameters[PLACE.REFERER] = urldecode(headerValue) - condition = any((not conf.testParameter, intersect(conf.testParameter, REFERER_ALIASES))) + condition = any((not conf.testParameter, intersect(conf.testParameter, REFERER_ALIASES, True))) if condition: conf.paramDict[PLACE.REFERER] = {PLACE.REFERER: headerValue} @@ -345,7 +345,7 @@ def _setRequestParams(): elif httpHeader == HTTP_HEADER.HOST: conf.parameters[PLACE.HOST] = urldecode(headerValue) - condition = any((not conf.testParameter, intersect(conf.testParameter, HOST_ALIASES))) + condition = any((not conf.testParameter, intersect(conf.testParameter, HOST_ALIASES, True))) if condition: conf.paramDict[PLACE.HOST] = {PLACE.HOST: headerValue}