Skip to content

Commit 08aae2b

Browse files
committed
Bug fix (--prefix should not fix the origValue in REPLACEMENT payloads)
1 parent b07685a commit 08aae2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
125125
origValue = origValue.split(' ')[-1].split(':')[-1]
126126

127127
if value is None:
128-
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
128+
if where == PAYLOAD.WHERE.ORIGINAL:
129129
value = origValue
130130
elif where == PAYLOAD.WHERE.NEGATIVE:
131131
if conf.invalidLogical:
@@ -228,7 +228,7 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
228228

229229
# If we are replacing (<where>) the parameter original value with
230230
# our payload do not prepend with the prefix
231-
if where == PAYLOAD.WHERE.REPLACE and not conf.prefix:
231+
if where == PAYLOAD.WHERE.REPLACE:
232232
query = ""
233233

234234
# If the technique is stacked queries (<stype>) do not put a space

0 commit comments

Comments
 (0)