Support Kerberos authentication over SSL#70
Merged
OscarAkaElvis merged 1 commit intoHackplayers:devfrom Sep 26, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently v3.7 of evil-winrm does not support authentication over kerberos when using the -S (ssl) switch when the domain disallows NTLM authentication and forces SSL over port 5986.
evil-winrm -i dc.hades.htb -r hades.htb -u administrator -p 'Password1' -S2025-09-26 13:02:37 +1000: Warning: User is not needed for Kerberos auth. Ticket will be used
2025-09-26 13:02:37 +1000: Warning: Password is not needed for Kerberos auth. Ticket will be used
2025-09-26 13:02:37 +1000: Error: An error of type ArgumentError happened, message is unknown type: 2916725146
2025-09-26 13:02:37 +1000: Error: Exiting with code 1
In addition omitting password & username, using only the ticket:
evil-winrm -i dc.hades.htb -r hades.htb -S/var/lib/gems/3.0.0/gems/winrm-2.3.9/lib/winrm/connection_opts.rb:73:in `validate_required_fields': user is a required option (RuntimeError)
My solution when the -S switch is used:
$pub_keyand$priv_keyare provided, certificate authentication is used (no change to existing behavior).$realmis specified and no certificate keys are provided, Kerberos authentication is attempted.example using a valid kerberos ticket over SSL:
klistTicket cache: FILE:/tmp/krb5cc_1000
Default principal: administrator@HADES.HTB
Valid starting Expires Service principal
26/09/25 12:40:34 26/09/25 22:40:34 krbtgt/HADES.HTB@HADES.HTB
renew until 27/09/25 12:40:29
26/09/25 12:40:37 26/09/25 22:40:34 HTTP/dc.hades.htb@HADES.HTB
renew until 27/09/25 12:40:29
evil-winrm -i dc.hades.htb -r hades.htb -S