From 08aae2b7c57531afd7c9760e2fccb046475ff274 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 5 Feb 2016 11:53:24 +0100 Subject: [PATCH] Bug fix (--prefix should not fix the origValue in REPLACEMENT payloads) --- lib/core/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index c6bcf89ef..195025053 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -125,7 +125,7 @@ class Agent(object): origValue = origValue.split(' ')[-1].split(':')[-1] if value is None: - if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix: + if where == PAYLOAD.WHERE.ORIGINAL: value = origValue elif where == PAYLOAD.WHERE.NEGATIVE: if conf.invalidLogical: @@ -228,7 +228,7 @@ class Agent(object): # If we are replacing () the parameter original value with # our payload do not prepend with the prefix - if where == PAYLOAD.WHERE.REPLACE and not conf.prefix: + if where == PAYLOAD.WHERE.REPLACE: query = "" # If the technique is stacked queries () do not put a space