implemented parameter --skip

This commit is contained in:
Miroslav Stampar
2011-08-29 13:29:42 +00:00
parent e0f521cf9d
commit 9be89422da
5 changed files with 26 additions and 3 deletions

View File

@@ -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

View File

@@ -61,6 +61,7 @@ optDict = {
"os": "string",
"prefix": "string",
"suffix": "string",
"skip": "string",
"tamper": "string"
},