File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5656from lib .core .enums import NOTE
5757from lib .core .enums import PAYLOAD
5858from lib .core .enums import PLACE
59+ from lib .core .enums import POST_HINT
5960from lib .core .exception import SqlmapBaseException
6061from lib .core .exception import SqlmapConnectionException
6162from lib .core .exception import SqlmapNoneDataException
@@ -711,6 +712,16 @@ def start():
711712 if not conf .randomAgent :
712713 errMsg += " and/or switch '--random-agent'"
713714
715+ if kb .postHint in (POST_HINT .SOAP , POST_HINT .XML ):
716+ if conf .skipXmlEncode :
717+ errMsg += ". Also, you can try to rerun by omitting the "
718+ errMsg += "option '--skip-xmlencode' as the target may "
719+ errMsg += "require proper XML encoding of payload data"
720+ else :
721+ errMsg += ". Also, you can try to rerun by providing the "
722+ errMsg += "option '--skip-xmlencode' as the target may "
723+ errMsg += "not require XML encoding of payload data"
724+
714725 raise SqlmapNotVulnerableException (errMsg .rstrip ('.' ))
715726 else :
716727 # Flush the flag
You can’t perform that action at this time.
0 commit comments