mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Switching --invalid-bignum to a pure integer constant (more generic - more statements require pure integer constant)
This commit is contained in:
parent
a639dbbeab
commit
a097ee1505
|
@ -332,7 +332,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
_ = randomInt(2)
|
_ = randomInt(2)
|
||||||
origValue = "%s AND %s=%s" % (value, _, _ + 1)
|
origValue = "%s AND %s=%s" % (value, _, _ + 1)
|
||||||
elif conf.invalidBignum:
|
elif conf.invalidBignum:
|
||||||
origValue = "%d.%d" % (randomInt(6), randomInt(1))
|
origValue = randomInt(6)
|
||||||
else:
|
else:
|
||||||
origValue = "-%s" % randomInt()
|
origValue = "-%s" % randomInt()
|
||||||
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)
|
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)
|
||||||
|
|
|
@ -117,7 +117,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 = ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user