Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from lib.core.enums import NOTE
from lib.core.enums import PAYLOAD
from lib.core.enums import PLACE
from lib.core.enums import POST_HINT
from lib.core.exception import SqlmapBaseException
from lib.core.exception import SqlmapConnectionException
from lib.core.exception import SqlmapNoneDataException
Expand Down Expand Up @@ -711,6 +712,16 @@ def start():
if not conf.randomAgent:
errMsg += " and/or switch '--random-agent'"

if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML):
if conf.skipXmlEncode:
errMsg += ". Also, you can try to rerun by omitting the "
errMsg += "option '--skip-xmlencode' as the target may "
errMsg += "require proper XML encoding of payload data"
else:
errMsg += ". Also, you can try to rerun by providing the "
errMsg += "option '--skip-xmlencode' as the target may "
errMsg += "not require XML encoding of payload data"

raise SqlmapNotVulnerableException(errMsg.rstrip('.'))
else:
# Flush the flag
Expand Down
Loading