fortra / impacket

Impacket is a collection of Python classes for working with network protocols.
https://www.coresecurity.com
Other
12.98k stars 3.49k forks source link

AttributeError: 'NTLMRelayxConfig' object has no attribute 'setAddComputerSMB') #1736

Closed sssseossss closed 2 months ago

sssseossss commented 2 months ago

Configuration

impacket version: Impacket v0.11.0 Python version: 3.9.6 HOST OS: Windows server 2016

Debug Output With Command String

[i.e.
smbexec -debug domain/user:password@127.0.0.1 ](c:_\impacket\examples>python ntlmrelayx.py -debug Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation [+] Impacket Library Installation Path: C:\Users\tmp.auditas\AppData\Roaming\Python\Python39\site-packages\impacket [] Protocol Client DCSYNC loaded.. [] Protocol Client HTTP loaded.. [] Protocol Client HTTPS loaded.. [] Protocol Client IMAPS loaded.. [] Protocol Client IMAP loaded.. [] Protocol Client LDAPS loaded.. [] Protocol Client LDAP loaded.. [] Protocol Client MSSQL loaded.. [] Protocol Client RPC loaded.. [] Protocol Client SMB loaded.. [] Protocol Client SMTP loaded.. [+] Protocol Attack DCSYNC loaded.. [+] Protocol Attack HTTP loaded.. [+] Protocol Attack HTTPS loaded.. [+] Protocol Attack IMAP loaded.. [+] Protocol Attack IMAPS loaded.. [+] Protocol Attack LDAP loaded.. [+] Protocol Attack LDAPS loaded.. [+] Protocol Attack MSSQL loaded.. [+] Protocol Attack RPC loaded.. [+] Protocol Attack SMB loaded.. [] Running in reflection mode Traceback (most recent call last): File "c:_\impacket\examples\ntlmrelayx.py", line 495, in c = startservers(options, threads) File "c:\\impacket\examples\ntlmrelayx.py", line 184, in start_servers c.setAddComputerSMB(options.add_computer) AttributeError: 'NTLMRelayxConfig' object has no attribute 'setAddComputerSMB')

Additional context

Trying ntlmrelayx.py on windows and get the following error no matter what i do. Any help would be appreciated. Thanks!

anadrianmanrique commented 2 months ago

your impacket library is not synchronized with your example scripts. recheck your ### impacket installation accordingly Thanks