minor fix (for those blank suffixes out of nowhere at the end of payload - not related to "-- ")

This commit is contained in:
Miroslav Stampar 2011-06-27 21:34:49 +00:00
parent 8a8b94883b
commit 5b4eaf48d9

View File

@ -193,10 +193,8 @@ class Agent:
if where == PAYLOAD.WHERE.REPLACE:
pass
elif kb.injection.suffix is not None:
expression += " %s" % kb.injection.suffix
elif suffix is not None:
expression += " %s" % suffix
elif any([kb.injection.suffix, suffix]):
expression += " %s" % (kb.injection.suffix or suffix)
return expression