added --text-only switch

This commit is contained in:
Miroslav Stampar
2010-10-12 19:41:29 +00:00
parent 47022071cb
commit d2ec132469
5 changed files with 16 additions and 5 deletions

View File

@@ -938,6 +938,10 @@ def __cleanupOptions():
if conf.googleDork or conf.list:
conf.multipleTargets = True
if conf.optimize:
conf.useCommonPrediction = conf.keepAlive = True
conf.useNullConnection = not conf.textOnly
def __setConfAttributes():
"""
This function set some needed attributes into the configuration
@@ -1162,6 +1166,10 @@ def __basicOptionValidation():
errMsg = "value for --ratio (matchRatio) option must be in range [0,1]"
raise sqlmapSyntaxException, errMsg
if conf.textOnly and conf.useNullConnection:
errMsg = "switch --text-only is incompatible with switch --null-connection"
raise sqlmapSyntaxException, errMsg
def init(inputOptions=advancedDict()):
"""
Set attributes into both configuration and knowledge base singletons