improvement of heuristic check (now original value is included too)

This commit is contained in:
Miroslav Stampar 2010-11-12 23:06:01 +00:00
parent 06a872fc99
commit 84849316b3

View File

@ -125,7 +125,7 @@ def heuristicCheckSqlInjection(place, parameter, value):
if conf.postfix:
postfix = conf.postfix
payload = "%s%s%s" % (prefix, randomStr(length=10, alphabet=['"', '\'', ')', '(']), postfix)
payload = "%s%s%s%s" % (value, prefix, randomStr(length=10, alphabet=['"', '\'', ')', '(']), postfix)
payload = agent.payload(place, parameter, value, payload)
Request.queryPage(payload, place, raise404=False)
result = wasLastRequestError()