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] Unable to authenticate using a NT hash #17

Closed
jsdhasfedssad opened this issue Apr 25, 2023 · 7 comments
Closed

[bug] Unable to authenticate using a NT hash #17

jsdhasfedssad opened this issue Apr 25, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@jsdhasfedssad
Copy link

Hi,

Thank you for this tool!

I am trying to authenticate using a NT hash but for unknown reasons I am unable to format my command in a way this tool accepts. I have tried different syntax but so far none works. Including the one that is outputted in the the error message (which does not make sence). What is the correct syntax? If this is a bug, perhaps Kerberos authentication should be verified as well.

shares1

@p0dalirius p0dalirius self-assigned this Apr 25, 2023
@p0dalirius p0dalirius added the bug Something isn't working label Apr 25, 2023
@p0dalirius p0dalirius changed the title Unable to authenticate using a NT hash [bug] Unable to authenticate using a NT hash Apr 25, 2023
@p0dalirius
Copy link
Owner

Hey @jsdhasfedssad,

Your NT hash (fc525c9683e8fe067095ba2ddc97188) is missing a character, it is only 31 characters long instead of 32. I've just tried with an NT hash on my end and it works fine.

./FindUncommonShares.py -u Administrator -H 520126a03f5d5a8d836f1c4f34ede7ce --domain DOMAIN.local --dc-ip 192.168.1.71 --check-user-access

Do not hesitate to open an issue if you encounter further problems,

Best regards,
Podalirius

@jsdhasfedssad
Copy link
Author

You were right about the short hash. However, after correcting that I still have issues.

As you can see below authenticating to LDAP using the same account and NT hash to the same target using CrackMapExec works. Using the same account but using it's plaintext password in combination with FindUncommonShares works. But, using the same account and it's NT hash with FindUncommonShares fails.

shares2

@p0dalirius
Copy link
Owner

Yes I had that too I need to fix that

Please add a : in front of the hash for the moment, like this -H :fc525c9683e8fe067095ba2ddc97188d

@p0dalirius p0dalirius reopened this Apr 25, 2023
@jsdhasfedssad
Copy link
Author

Aha. Good. Now it works. Thanks!

I noticed you have the same issue with DumpSMBShare.py. Please fix this in that to.

@p0dalirius
Copy link
Owner

Good point, I will too

@jsdhasfedssad
Copy link
Author

Hi again,

Today I cloned main in order to test this fix. Now authenticating using a NT hash works but using a plaintext password does not. The opposite to before the fix.

shares3

p0dalirius added a commit that referenced this issue May 10, 2023
@p0dalirius
Copy link
Owner

Hi @jsdhasfedssad, I've fixed it :)

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

2 participants