From 827a0aea0538d8da93db63bad15c682ed99394d6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 3 Dec 2010 11:15:11 +0000 Subject: [PATCH] Minor bug fix --- lib/core/agent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 97452a6d8..72425aadf 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -148,6 +148,8 @@ class Agent: if conf.direct: return self.payloadDirect(string) + query = None + # Either if the technique is stacked queries () or we are # replacing () the parameter original value with our # payload, do not put a space after the prefix @@ -158,7 +160,8 @@ class Agent: if where == 3: query = kb.injection.prefix - else: + + if query is None: query = "%s " % kb.injection.prefix query = "%s%s" % (query, string)