fortra / impacket

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

ImportError: No module named server #844

Closed samuelkneppel closed 4 years ago

samuelkneppel commented 4 years ago

OS Version:

vlgngrbrdmn@kali:~$ uname -a`
Linux kali 5.5.0-kali2-amd64 #1 SMP Debian 5.5.17-1kali1 (2020-04-21) x86_64 GNU/Linux

Install method: vlgngrbrdmn@kali:~$ sudo apt install crackmapexec

Issue: I receive the following error when I run crackmapexec:

vlgngrbrdmn@kali:~$ crackmapexec 
Traceback (most recent call last):
  File "/usr/local/bin/crackmapexec", line 11, in <module>
    load_entry_point('crackmapexec==5.0.1.dev0', 'console_scripts', 'crackmapexec')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-5.0.1.dev0-py2.7.egg/cme/crackmapexec.py", line 14, in <module>
    from cme.servers.http import CMEServer
  File "/usr/local/lib/python2.7/dist-packages/gevent-20.4.0-py2.7-linux-x86_64.egg/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-5.0.1.dev0-py2.7.egg/cme/servers/http.py", line 1, in <module>
    import http.server
  File "/usr/local/lib/python2.7/dist-packages/gevent-20.4.0-py2.7-linux-x86_64.egg/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
ImportError: No module named server

Troubleshooting steps taken so far:

Has anyone seen this error before? Any help would be much appreciated!

samuelkneppel commented 4 years ago

Whoops, wrong project.