From 5b4eaf48d9e7c792dc793764c3686b8a04dd0d14 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 27 Jun 2011 21:34:49 +0000 Subject: [PATCH] minor fix (for those blank suffixes out of nowhere at the end of payload - not related to "-- ") --- lib/core/agent.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 601ccf529..b4cf4cbba 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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