Update option.py (#5736)

auth-type=pki requires auth-file option to pass in a certificate. auth-pki is not a valid option
This commit is contained in:
Ben Kofman 2024-06-24 12:20:09 -04:00 committed by GitHub
parent c1af880fb8
commit 73a62f9f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1360,7 +1360,7 @@ def _setHTTPAuthentication():
errMsg += "be in format 'DOMAIN\\username:password'"
elif authType == AUTH_TYPE.PKI:
errMsg = "HTTP PKI authentication require "
errMsg += "usage of option `--auth-pki`"
errMsg += "usage of option `--auth-file`"
raise SqlmapSyntaxException(errMsg)
aCredRegExp = re.search(regExp, conf.authCred)