mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
implemented parameter --skip
This commit is contained in:
parent
e0f521cf9d
commit
9be89422da
5 changed files with 26 additions and 3 deletions
|
|
@ -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"
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue