byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.37k stars 1.64k forks source link

ImportError: No module named coros #144

Closed Amurmurmur closed 7 years ago

Amurmurmur commented 7 years ago

Steps to reproduce

  1. pip install crackmapexec
  2. crackmapexec

Command string used

CME verbose output (using the --verbose flag)

OS

Windows

Target OS

Detailed issue explanation

Just installed it with pip, tried from repo as well, on a windows 10 x64 machine. When having crackmapexec in a cmd just throws: C:\Users\USER\Desktop\CrackMapExec-master\CrackMapExec-master>crackmapexec Traceback (most recent call last): File "C:\Python27\Scripts\crackmapexec-script.py", line 11, in load_entry_point('crackmapexec==3.1.5.dev0', 'console_scripts', 'crackmapexec')() File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 561, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 2631, in load_entry_point return ep.load() File "C:\Python27\lib\site-packages\pkg_resources__init__.py", line 2291, in load return self.resolve() File "C:\Python27\lib\site-packages\pkg_resources\init.py", line 2297, in resolve module = import__(self.module_name, fromlist=['name'], level=0) File "C:\Python27\lib\site-packages\crackmapexec-3.1.5.dev0-py2.7.egg\cme\crackmapexec.py", line 10, in from cme.connection import Connection File "C:\Python27\lib\site-packages\gevent\builtins.py", line 93, in import__ result = _import(*args, *kwargs) File "C:\Python27\lib\site-packages\crackmapexec-3.1.5.dev0-py2.7.egg\cme\connection.py", line 7, in from gevent.coros import BoundedSemaphore File "C:\Python27\lib\site-packages\gevent\builtins.py", line 93, in import result = _import(args, **kwargs) ImportError: No module named coros

Trying with the latest pull from repo.

Thank you in advance.

archey commented 7 years ago

It appears to be an issue with an update to gevent, I have gevent version 1.2.0 installed it the gevent.coros module is missing.

archey commented 7 years ago

@Amurmurmur this pr fixes the issue, if youd like to try it out.

https://github.com/byt3bl33d3r/CrackMapExec/pull/145 you can pull it as a patch to test if you'd like

byt3bl33d3r commented 7 years ago

Fixed in https://github.com/byt3bl33d3r/CrackMapExec/commit/ab4d0a440602bdab7727ca336778c5b7311892e5, thanks @archey and @Amurmurmur !