mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Adding a switch --invalid-string
This commit is contained in:
@@ -122,6 +122,8 @@ class Agent(object):
|
||||
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
|
||||
elif conf.invalidBignum:
|
||||
value = randomInt(6)
|
||||
elif conf.invalidString:
|
||||
value = randomStr(6)
|
||||
else:
|
||||
if newValue.startswith("-"):
|
||||
value = ""
|
||||
|
||||
@@ -72,6 +72,7 @@ optDict = {
|
||||
"os": "string",
|
||||
"invalidBignum": "boolean",
|
||||
"invalidLogical": "boolean",
|
||||
"invalidString": "boolean",
|
||||
"noCast": "boolean",
|
||||
"noEscape": "boolean",
|
||||
"prefix": "string",
|
||||
|
||||
Reference in New Issue
Block a user