now [SLEEPTIME] is changeable properly in vivo

This commit is contained in:
Miroslav Stampar
2012-01-05 14:45:05 +00:00
parent 9d50c806e1
commit 1f085a0241
5 changed files with 9 additions and 4 deletions

View File

@@ -464,6 +464,9 @@ def checkSqlInjection(place, parameter, value):
if vector is None and "vector" in test and test.vector is not None:
vector = "%s%s" % (test.vector, comment or "")
if method == PAYLOAD.METHOD.TIME:
reqPayload = reqPayload.replace(test.request.payload.replace("[SLEEPTIME]", str(conf.timeSec)), test.request.payload)
injection.data[stype] = AttribDict()
injection.data[stype].title = title
injection.data[stype].payload = agent.removePayloadDelimiters(reqPayload)