diff --git a/lib/core/option.py b/lib/core/option.py index fea7dce07..43bf6ec75 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1208,6 +1208,10 @@ def __basicOptionValidation(): errMsg = "switch --text-only is incompatible with switch --null-connection" raise sqlmapSyntaxException, errMsg + if conf.data and conf.useNullConnection: + errMsg = "switch --data is incompatible with switch --null-connection" + raise sqlmapSyntaxException, errMsg + def init(inputOptions=advancedDict()): """ Set attributes into both configuration and knowledge base singletons