fortra / impacket

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

impacket-smbserver won't run with error message SyntaxError: multiple exception types must be parenthesized #1709

Closed AzureVision1 closed 4 months ago

AzureVision1 commented 4 months ago

└─$ impacket-smbserver
Traceback (most recent call last): File "/usr/share/doc/python3-impacket/examples/smbserver.py", line 22, in from impacket import smbserver, version File "/home/kali/.local/lib/python3.10/site-packages/impacket/smbserver.py", line 147 except Exception, e: ^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized

└─$ python --version Python 3.10.5

Can i get some help on this? I can't seem to run impacket-smbserver due to the wrong python version? But both impacket and my default are using Python3. Any help would be appreciated

anadrianmanrique commented 4 months ago

which version of impacket you have? it doesn't look like the latest one

anadrianmanrique commented 4 months ago

I just checked smbserver.py, it doesn't contain any line with "exception Exception,e:". Update your impacket installation to the latest one which is compatible with python3. Closing this one reopen if needed. Thanks