Minor fix (templatePayload had duplicate string patterns for where==NEGATIVE)

This commit is contained in:
stamparm 2013-07-15 13:54:02 +02:00
parent ac2d40e259
commit c9d3974205

View File

@ -335,7 +335,7 @@ def checkSqlInjection(place, parameter, value):
origValue = "%d.%d" % (randomInt(6), randomInt(1)) origValue = "%d.%d" % (randomInt(6), randomInt(1))
else: else:
origValue = "-%s" % randomInt() origValue = "-%s" % randomInt()
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where) templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)
elif where == PAYLOAD.WHERE.REPLACE: elif where == PAYLOAD.WHERE.REPLACE:
origValue = "" origValue = ""