mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-14 18:22:24 +03:00
Minor update
This commit is contained in:
parent
a3defc175d
commit
f11e15a180
|
@ -1123,17 +1123,18 @@ def _setHTTPAuthentication():
|
||||||
errMsg += "but did not provide the type"
|
errMsg += "but did not provide the type"
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
|
elif conf.authType.lower() not in (AUTH_TYPE.BASIC, AUTH_TYPE.DIGEST, AUTH_TYPE.NTLM, AUTH_TYPE.PKI):
|
||||||
|
errMsg = "HTTP authentication type value must be "
|
||||||
|
errMsg += "Basic, Digest, NTLM or PKI"
|
||||||
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
if not conf.authPrivate:
|
if not conf.authPrivate:
|
||||||
debugMsg = "setting the HTTP authentication type and credentials"
|
debugMsg = "setting the HTTP authentication type and credentials"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
aTypeLower = conf.authType.lower()
|
aTypeLower = conf.authType.lower()
|
||||||
|
|
||||||
if aTypeLower not in (AUTH_TYPE.BASIC, AUTH_TYPE.DIGEST, AUTH_TYPE.NTLM, AUTH_TYPE.PKI):
|
if aTypeLower in (AUTH_TYPE.BASIC, AUTH_TYPE.DIGEST):
|
||||||
errMsg = "HTTP authentication type value must be "
|
|
||||||
errMsg += "Basic, Digest, NTLM or PKI"
|
|
||||||
raise SqlmapSyntaxException(errMsg)
|
|
||||||
elif aTypeLower in (AUTH_TYPE.BASIC, AUTH_TYPE.DIGEST):
|
|
||||||
regExp = "^(.*?):(.*?)$"
|
regExp = "^(.*?):(.*?)$"
|
||||||
errMsg = "HTTP %s authentication credentials " % aTypeLower
|
errMsg = "HTTP %s authentication credentials " % aTypeLower
|
||||||
errMsg += "value must be in format 'username:password'"
|
errMsg += "value must be in format 'username:password'"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user