mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-02-13 08:56:35 +00:00
implemented parameter --skip
This commit is contained in:
@@ -1290,6 +1290,12 @@ def __cleanupOptions():
|
||||
else:
|
||||
conf.rParam = []
|
||||
|
||||
if conf.skip:
|
||||
conf.skip = conf.skip.replace(" ", "")
|
||||
conf.skip = re.split(PARAMETER_SPLITTING_REGEX, conf.skip)
|
||||
else:
|
||||
conf.skip = []
|
||||
|
||||
if conf.delay:
|
||||
conf.delay = float(conf.delay)
|
||||
|
||||
@@ -1768,6 +1774,10 @@ def __basicOptionValidation():
|
||||
errMsg = "switch --tor is incompatible with switch --proxy"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
if conf.skip and conf.testParameter:
|
||||
errMsg = "switch --skip is incompatible with switch -p"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
if conf.mobile and conf.agent:
|
||||
errMsg = "switch --mobile is incompatible with switch --user-agent"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
@@ -61,6 +61,7 @@ optDict = {
|
||||
"os": "string",
|
||||
"prefix": "string",
|
||||
"suffix": "string",
|
||||
"skip": "string",
|
||||
"tamper": "string"
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user