Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 694b141

Browse files
committed
skipping suffix if comment is used in agent.suffixQuery (and --suffix not explicitly set)
1 parent c7a6066 commit 694b141

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def suffixQuery(self, expression, comment=None, suffix=None, where=None):
199199
if where == PAYLOAD.WHERE.REPLACE:
200200
pass
201201

202-
elif any([kb.injection.suffix, suffix]):
202+
elif any([kb.injection.suffix, suffix]) and not (comment and not conf.suffix):
203203
expression += " %s" % (kb.injection.suffix or suffix)
204204

205205
return re.sub(r"(?s);\W*;", ";", expression)

0 commit comments

Comments
 (0)