mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-22 19:53:46 +00:00
added --text-only switch
This commit is contained in:
parent
47022071cb
commit
d2ec132469
5 changed files with 16 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue