mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
trivial code cleanup
This commit is contained in:
parent
5b65d2e133
commit
79d4d970a5
|
@ -350,6 +350,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
# will likely result in a different content
|
# will likely result in a different content
|
||||||
kb.data.setdefault("randomInt", str(randomInt(10)))
|
kb.data.setdefault("randomInt", str(randomInt(10)))
|
||||||
kb.data.setdefault("randomStr", str(randomStr(10)))
|
kb.data.setdefault("randomStr", str(randomStr(10)))
|
||||||
|
|
||||||
if conf.invalidLogical:
|
if conf.invalidLogical:
|
||||||
_ = int(kb.data.randomInt[:2])
|
_ = int(kb.data.randomInt[:2])
|
||||||
origValue = "%s AND %s=%s" % (value, _, _ + 1)
|
origValue = "%s AND %s=%s" % (value, _, _ + 1)
|
||||||
|
@ -359,6 +360,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
origValue = kb.data.randomStr[:6]
|
origValue = kb.data.randomStr[: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)
|
||||||
elif where == PAYLOAD.WHERE.REPLACE:
|
elif where == PAYLOAD.WHERE.REPLACE:
|
||||||
origValue = ""
|
origValue = ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user