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: