byt3bl33d3r / CrackMapExec

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

Specific version of the requests library is required #167

Closed 5kuby closed 7 years ago

5kuby commented 7 years ago

i've installed crackmapexec on devuan following README.md istruction. Now launching crackmapexe receive this output

  File "/usr/local/bin/crackmapexec", line 9, in <module>
    load_entry_point('crackmapexec==4.0.0dev', 'console_scripts', 'crackmapexec')()
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0dev-py2.7.egg/cme/crackmapexec.py", line 35, in main
    args = gen_cli_args()
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0dev-py2.7.egg/cme/cli.py", line 67, in gen_cli_args
    protocol_object = p_loader.load_protocol(protocols[protocol]['path'])
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0dev-py2.7.egg/cme/loaders/protocol_loader.py", line 12, in load_protocol
    protocol = imp.load_source('protocol', protocol_path)
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0dev-py2.7.egg/cme/protocols/http.py", line 4, in <module>
    from requests import ConnectionError, ConnectTimeout, ReadTimeout
ImportError: cannot import name ConnectTimeout

thanks

ac3lives commented 7 years ago

I messed with this a bit personally, you need to update the requests python package. pip install requests --upgrade Though, the CME requirements.txt file needs to be updated to require requests>2.9.1 (I believe this is the version).

byt3bl33d3r commented 7 years ago

@ac3lives good to know, thanks! I'll see if i can reproduce and set it as a requirement during setup

byt3bl33d3r commented 7 years ago

Fixed in https://github.com/byt3bl33d3r/CrackMapExec/commit/d9fb2a506a919eda62f884afdd894500f61e7299. Thanks!