Minor bug fix

This commit is contained in:
Bernardo Damele 2010-12-03 11:15:11 +00:00
parent 23a86ed612
commit 827a0aea05

View File

@ -148,6 +148,8 @@ class Agent:
if conf.direct: if conf.direct:
return self.payloadDirect(string) return self.payloadDirect(string)
query = None
# Either if the technique is stacked queries (<stype>) or we are # Either if the technique is stacked queries (<stype>) or we are
# replacing (<where>) the parameter original value with our # replacing (<where>) the parameter original value with our
# payload, do not put a space after the prefix # payload, do not put a space after the prefix
@ -158,7 +160,8 @@ class Agent:
if where == 3: if where == 3:
query = kb.injection.prefix query = kb.injection.prefix
else:
if query is None:
query = "%s " % kb.injection.prefix query = "%s " % kb.injection.prefix
query = "%s%s" % (query, string) query = "%s%s" % (query, string)