Kerberos authentication does not seem to work
(1)Configure /etc/resolv.conf to be the IP address of the domain controller.
(2)Next, is the command to use it like this: enum4linux-ng -u user -K user@[email protected] -A dc2012.test.com
This ticket was generated using this command:impacket-getST -dc-ip 192.168.1.1 -spn cifs/dc2012.test.com test.com/user:'pass@123'
Is there something wrong with what I'm doing and why I can't enumerate it successfully?
Thank you for opening this issue. Let's try some things to debug this:
- What are the permissions of the .ccache file and which version of enum4linux-ng are you running? In the most recent release I had added a check which checks ticket files for proper permissions. If the permissions are not correct the underlying samba tool command will fail.
- Is the ticket you use valid (use
klistto test)? - Could you put the ticket name into single quotes (
'user@[email protected]') or rename the ccache file (e.g.,test.ccache) and try again (just in case we have a weird shell issue here handling the '@' character in a certain unintended way). - Run enum4linux-ng with the
-vand--keepoption. It will then print out the full command line it runs under the hood. Please take this command line, run it separately and print the output here. Please redact your output if necessary!
(1)the permissions of the .ccache file is 600,enum4linux-ng version is latest(v1.3.5). (2)ticket is valid.I tested it with the tool impacket-psexec and it's fine. (3)it still doesn't work (4)below image
Can you run the smbclient command it prints out manually and post the output here?
smbclient --use-krb5-ccache admin.ccache -s /tmp/tmpzclqz_1u -t 5 -c help '//dc2012.example.com/ipc$'
Btw. this time you ran in a timeout as it says timed out. You can increase the timeout, but this might not help as it also did not work before.
I did some testing on my own. Indeed, at least recent versions of smbclient gave me trouble setting up a connection with Kerberos authentication. This needs investigation, I will therefore leave this issue open.