Update option.py

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 09:57:50 -04:00 committed by GitHub
parent 9a48a27593
commit b95539bb29
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)