mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-14 01:16:59 +00:00
Add hint to change XML encoding behavior in case of unsuccessful attempt
This commit is contained in:
parent
5a097c74c0
commit
db74456212
1 changed files with 11 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ from lib.core.enums import HTTPMETHOD
|
|||
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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue