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

Skip to content

Commit 5b4eaf4

Browse files
committed
minor fix (for those blank suffixes out of nowhere at the end of payload - not related to "-- ")
1 parent 8a8b948 commit 5b4eaf4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/core/agent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,8 @@ def suffixQuery(self, expression, comment=None, suffix=None, where=None):
193193
if where == PAYLOAD.WHERE.REPLACE:
194194
pass
195195

196-
elif kb.injection.suffix is not None:
197-
expression += " %s" % kb.injection.suffix
198-
elif suffix is not None:
199-
expression += " %s" % suffix
196+
elif any([kb.injection.suffix, suffix]):
197+
expression += " %s" % (kb.injection.suffix or suffix)
200198

201199
return expression
202200

0 commit comments

Comments
 (0)