mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-21 13:49:04 +00:00
adding --invalid-bignum (Havij like bignum style for invalidating/negating values); renaming --logical-negate to --invalid-logical
This commit is contained in:
@@ -302,10 +302,12 @@ def checkSqlInjection(place, parameter, value):
|
||||
# Use different page template than the original
|
||||
# one as we are changing parameters value, which
|
||||
# will likely result in a different content
|
||||
if not conf.logicalNegate:
|
||||
origValue = "-%s" % randomInt()
|
||||
else:
|
||||
if conf.invalidLogical:
|
||||
origValue = "%s AND %s=%s" % (origValue, randomInt(), randomInt())
|
||||
elif conf.invalidBignum:
|
||||
origValue = "%d.%d" % (randomInt(6), randomInt(1))
|
||||
else:
|
||||
origValue = "-%s" % randomInt()
|
||||
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)
|
||||
elif where == PAYLOAD.WHERE.REPLACE:
|
||||
origValue = ""
|
||||
|
||||
Reference in New Issue
Block a user