mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
making --no-cast unhidden and renaming --negative-logic to --logical-negate to prevent confusion with stuff used in OR boolean based injection
This commit is contained in:
parent
79c3d6f2aa
commit
56638f9e95
|
@ -285,7 +285,7 @@ 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.logicNegative:
|
||||
if not conf.logicalNegate:
|
||||
origValue = "-%s" % randomInt()
|
||||
else:
|
||||
origValue = "%s AND %s=%s" % (origValue, randomInt(), randomInt())
|
||||
|
|
|
@ -87,7 +87,7 @@ class Agent:
|
|||
if where == PAYLOAD.WHERE.ORIGINAL:
|
||||
value = origValue
|
||||
elif where == PAYLOAD.WHERE.NEGATIVE:
|
||||
if not conf.logicNegative:
|
||||
if not conf.logicalNegate:
|
||||
if newValue.startswith("-"):
|
||||
value = ""
|
||||
else:
|
||||
|
|
|
@ -65,7 +65,7 @@ optDict = {
|
|||
"os": "string",
|
||||
"prefix": "string",
|
||||
"suffix": "string",
|
||||
"logicNegative": "boolean",
|
||||
"logicalNegate": "boolean",
|
||||
"skip": "string",
|
||||
"tamper": "string"
|
||||
},
|
||||
|
|
|
@ -196,9 +196,13 @@ def cmdLineParser():
|
|||
injection.add_option("--suffix", dest="suffix",
|
||||
help="Injection payload suffix string")
|
||||
|
||||
injection.add_option("--logic-negative", dest="logicNegative",
|
||||
injection.add_option("--logical-negate", dest="logicalNegate",
|
||||
action="store_true",
|
||||
help="Use logic operation(s) instead of negating values")
|
||||
help="Use logic operation(s) for negating values")
|
||||
|
||||
injection.add_option("--no-cast", dest="noCast",
|
||||
action="store_true",
|
||||
help="Turn off payload casting mechanism")
|
||||
|
||||
injection.add_option("--skip", dest="skip",
|
||||
help="Skip testing for given parameter(s)")
|
||||
|
@ -622,9 +626,6 @@ def cmdLineParser():
|
|||
parser.add_option("--group-concat", dest="groupConcat", action="store_true",
|
||||
help=SUPPRESS_HELP)
|
||||
|
||||
parser.add_option("--no-cast", dest="noCast", action="store_true",
|
||||
help=SUPPRESS_HELP)
|
||||
|
||||
parser.add_option("--test-filter", dest="testFilter",
|
||||
help=SUPPRESS_HELP)
|
||||
|
||||
|
|
|
@ -197,9 +197,13 @@ prefix =
|
|||
# Injection payload suffix string.
|
||||
suffix =
|
||||
|
||||
# Use logic operation(s) instead of negating values.
|
||||
# Use logic operation(s) for negating values.
|
||||
# Valid: True or False
|
||||
logicNegative = False
|
||||
logicalNegate = False
|
||||
|
||||
# Turn off payload casting mechanism
|
||||
# Valid: True or False
|
||||
noCast = False
|
||||
|
||||
# Skip testing for given parameter(s).
|
||||
skip =
|
||||
|
|
Loading…
Reference in New Issue
Block a user