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

dsinternals; I installed the module you mentioned, but I'm still experiencing the same problem. I'm not sure if the version is compatible. Does anyone know which version of this module is compatible with ntlmrelayx? #1562

Closed
roddgar opened this issue May 26, 2023 · 5 comments

Comments

@roddgar
Copy link

roddgar commented May 26, 2023

ntlmrelayx.py
Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation

[] Protocol Client DCSYNC loaded..
[
] Protocol Client HTTP loaded..
[] Protocol Client HTTPS loaded..
[
] Protocol Client IMAPS loaded..
[] Protocol Client IMAP loaded..
[
] Protocol Client LDAP loaded..
[] Protocol Client LDAPS loaded..
[
] Protocol Client MSSQL loaded..
[] Protocol Client RPC loaded..
[
] Protocol Client SMB loaded..
[*] Protocol Client SMTP loaded..
Traceback (most recent call last):
File "/home/rodgar/.local/bin/ntlmrelayx.py", line 384, in
from impacket.examples.ntlmrelayx.attacks import PROTOCOL_ATTACKS
File "/home/rodgar/.local/pipx/venvs/impacket/lib/python3.9/site-packages/impacket/examples/ntlmrelayx/attacks/init.py", line 56, in
import(package + '.' + os.path.splitext(file)[0])
File "/home/rodgar/.local/pipx/venvs/impacket/lib/python3.9/site-packages/impacket/examples/ntlmrelayx/attacks/ldapattack.py", line 43, in
from dsinternals.system.Guid import Guid
ModuleNotFoundError: No module named 'dsinternals'

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor

I think it's related to #1320. Try to manually install it within your venv by using something like:
pip install dsinternals

🌻

@0xdeaddood
Copy link
Collaborator

Hi @rodgarr

Please do what @ThePirateWhoSmellsOfSunflowers says.

Closing. Reopen if needed.

@jmeliendrez
Copy link

@rodgarr did you figure out a solution? I'm currently running into the same issue. Tried all the above.

@jmeliendrez
Copy link

Solved it. Impacket gets installed in the users home directory. You need to copy the dsinternals package from /usr/lib/python3/dist-packages into the /home/[user]/.local/pipx/venvs/impacket/lib/python3.11/site-packages/ directory for it to work.

@row248-hola
Copy link

Solved it. Impacket gets installed in the users home directory. You need to copy the dsinternals package from /usr/lib/python3/dist-packages into the /home/[user]/.local/pipx/venvs/impacket/lib/python3.11/site-packages/ directory for it to work.

Or install in directly to desired folder via -t flag

pip install dsinternals -t /home/[user]/.local/pipx/venvs/impacket/lib/python3.11/site-packages/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants