mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Making 10% less requests in futile higher level/risk runs (using static template payloads for where==NEGATIVE)
This commit is contained in:
parent
c9d3974205
commit
e6f71c2130
|
@ -328,13 +328,14 @@ def checkSqlInjection(place, parameter, value):
|
||||||
# Use different page template than the original
|
# Use different page template than the original
|
||||||
# one as we are changing parameters value, which
|
# one as we are changing parameters value, which
|
||||||
# will likely result in a different content
|
# will likely result in a different content
|
||||||
|
kb.data.setdefault("randomInt", str(randomInt(10)))
|
||||||
if conf.invalidLogical:
|
if conf.invalidLogical:
|
||||||
_ = 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 = "%d.%d" % (randomInt(6), randomInt(1))
|
origValue = "%s.%s" % (kb.data.randomInt[:6], kb.data.randomInt[0])
|
||||||
else:
|
else:
|
||||||
origValue = "-%s" % randomInt()
|
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)
|
||||||
elif where == PAYLOAD.WHERE.REPLACE:
|
elif where == PAYLOAD.WHERE.REPLACE:
|
||||||
origValue = ""
|
origValue = ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user