Revert of last commit (there is a chance that that big integer value is really valid :)

This commit is contained in:
stamparm 2013-07-15 13:34:38 +02:00
parent a097ee1505
commit ac2d40e259
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ def checkSqlInjection(place, parameter, value):
_ = randomInt(2)
origValue = "%s AND %s=%s" % (value, _, _ + 1)
elif conf.invalidBignum:
origValue = randomInt(6)
origValue = "%d.%d" % (randomInt(6), randomInt(1))
else:
origValue = "-%s" % randomInt()
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)

View File

@ -117,7 +117,7 @@ class Agent(object):
_ = randomInt(2)
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
elif conf.invalidBignum:
value = randomInt(6)
value = "%d.%d" % (randomInt(6), randomInt(1))
else:
if newValue.startswith("-"):
value = ""