mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Fix for invalid logical test cases
This commit is contained in:
@@ -112,7 +112,8 @@ class Agent(object):
|
|||||||
if conf.invalidLogical:
|
if conf.invalidLogical:
|
||||||
match = re.search(r'\A[^ ]+', newValue)
|
match = re.search(r'\A[^ ]+', newValue)
|
||||||
newValue = newValue[len(match.group() if match else ""):]
|
newValue = newValue[len(match.group() if match else ""):]
|
||||||
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", randomInt(2), randomInt(2))
|
_ = randomInt(2)
|
||||||
|
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 = "%d.%d" % (randomInt(6), randomInt(1))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user