Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Kerberos authentification #55

Open
4ndr34z opened this issue Jun 8, 2023 · 2 comments
Open

[bug] Kerberos authentification #55

4ndr34z opened this issue Jun 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@4ndr34z
Copy link

4ndr34z commented Jun 8, 2023

Kerberos auth. doesn't seem to be implemented?

@p0dalirius p0dalirius self-assigned this Jun 21, 2023
@p0dalirius p0dalirius added the bug Something isn't working label Jun 21, 2023
@p0dalirius p0dalirius changed the title Kerberos [bug] Kerberos authentification Jun 21, 2023
@7MinSec
Copy link

7MinSec commented Jun 28, 2024

Ah, I tried to do Kerberos authentication after my password-based auth doesn't seem to work (#77), but it doesn't look like Kerberos is fully implemented? Coercer doesn't seem to know about -k and doesn't seem to respect no-pass so I'm stuck.

@p0dalirius
Copy link
Owner

p0dalirius commented Aug 14, 2024

Hi,

I am working on it, here is the test setup:

$ getTGT.py -dc-ip "SRV-DC01.LAB.local" "LAB"/'Administrator':'Admin123!'
Impacket v0.12.0.dev1+20240604.210053.9734a1af - Copyright 2023 Fortra

[*] Saving ticket in Administrator.ccache

$ KRB5CCNAME=$(pwd)/"Administrator.ccache" ./Coercer.py --debug --verbose --debug scan -k --target-ip SRV-DC01.LAB.local --kdcHost SRV-DC01.LAB.local

       ______
      / ____/___  ___  _____________  _____
     / /   / __ \/ _ \/ ___/ ___/ _ \/ ___/
    / /___/ /_/ /  __/ /  / /__/  __/ /      v2.4.3
    \____/\____/\___/_/   \___/\___/_/       by @podalirius_

[info] Starting scan mode
[info] Connecting with Kerberos, using ccache file: '/workspace/Coercer/Administrator.ccache'
[info] Scanning target SRV-DC01.LAB.local
[*] DCERPC portmapper discovered ports: 49664,49665,49666,49667,49669,63237,49671,49673,49674,49677,49693
[+] DCERPC port '49674' is accessible!
   [+] Successful bind to interface (12345678-1234-ABCD-EF00-0123456789AB, 1.0)!
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\Fssagentrpc] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\efsrpc] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\eventlog] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\lsarpc] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\lsass] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\netdfs] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\netlogon] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\samr] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
         [>] Connecting to ncacn_np:SRV-DC01.LAB.local[\PIPE\spoolss] ... fail
            [!] Something went wrong, check error status => Kerberos SessionError: KDC_ERR_PREAUTH_FAILED(Pre-authentication information was invalid)
[+] All done! Bye Bye!

I have fixed lots of stuff, I am stuck on KDC_ERR_PREAUTH_FAILED now

image

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants