Changing --invalid-bignum from float producing to int producing

This commit is contained in:
Miroslav Stampar 2014-01-23 09:07:25 +01:00
parent fc02badf40
commit f88f6dcd7e
2 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ def checkSqlInjection(place, parameter, value):
_ = int(kb.data.randomInt[:2]) _ = int(kb.data.randomInt[:2])
origValue = "%s AND %s=%s" % (value, _, _ + 1) origValue = "%s AND %s=%s" % (value, _, _ + 1)
elif conf.invalidBignum: elif conf.invalidBignum:
origValue = "%s.%s" % (kb.data.randomInt[:6], kb.data.randomInt[0]) origValue = kb.data.randomInt[:6]
else: else:
origValue = "-%s" % kb.data.randomInt[:4] origValue = "-%s" % kb.data.randomInt[:4]
templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where) templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)

View File

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