mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Changing --invalid-bignum from float producing to int producing
This commit is contained in:
parent
fc02badf40
commit
f88f6dcd7e
|
@ -333,7 +333,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
_ = int(kb.data.randomInt[:2])
|
||||
origValue = "%s AND %s=%s" % (value, _, _ + 1)
|
||||
elif conf.invalidBignum:
|
||||
origValue = "%s.%s" % (kb.data.randomInt[:6], kb.data.randomInt[0])
|
||||
origValue = kb.data.randomInt[:6]
|
||||
else:
|
||||
origValue = "-%s" % kb.data.randomInt[:4]
|
||||
templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)
|
||||
|
|
|
@ -121,7 +121,7 @@ class Agent(object):
|
|||
_ = randomInt(2)
|
||||
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
|
||||
elif conf.invalidBignum:
|
||||
value = "%d.%d" % (randomInt(6), randomInt(1))
|
||||
value = randomInt(6)
|
||||
else:
|
||||
if newValue.startswith("-"):
|
||||
value = ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user