Skip to content

Commit

Permalink
Update option.py (#5736)
Browse files Browse the repository at this point in the history
auth-type=pki requires auth-file option to pass in a certificate. auth-pki is not a valid option
  • Loading branch information
swgee authored Jun 24, 2024
1 parent c1af880 commit 73a62f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73a62f9

Please sign in to comment.