From 0d1690de6135a0a6758e144ca52db18af6f44b7f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 Apr 2014 21:09:27 +0200 Subject: [PATCH] Minor fix --- 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 1ce0ecef2..b6d7a5f0a 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -185,7 +185,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: + if where == PAYLOAD.WHERE.REPLACE and not conf.prefix: query = "" # If the technique is stacked queries () do not put a space @@ -234,7 +234,7 @@ class Agent(object): # If we are replacing () the parameter original value with # our payload do not append the suffix - if where == PAYLOAD.WHERE.REPLACE: + if where == PAYLOAD.WHERE.REPLACE and not conf.suffix: pass elif suffix and not comment: