mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
adding --invalid-bignum (Havij like bignum style for invalidating/negating values); renaming --logical-negate to --invalid-logical
This commit is contained in:
parent
4da03d898e
commit
6f67dc85ee
5 changed files with 38 additions and 25 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue