byt3bl33d3r / CrackMapExec

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

Docker failure due to FileNotFound #401

Closed antcoz closed 4 years ago

antcoz commented 4 years ago

Describe the bug After building the docker file and executing, the following error is returned:

Traceback (most recent call last):
  File "/usr/local/bin/cme", line 11, in <module>
    load_entry_point('crackmapexec==5.1.0.dev0', 'console_scripts', 'cme')()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2862, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2462, in load
    return self.resolve()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2468, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.8/site-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/__init__.py", line 10, in <module>
    for module in os.listdir(thirdparty_modules):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/site-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/thirdparty'

To Reproduce Steps to reproduce the behavior:

  1. docker run cme --help
  2. See error

Expected behavior The help is displayed (I think the switch is --help)

Crackmapexec info

mpgn commented 4 years ago

How did you clone the CME repo ?

antcoz commented 4 years ago

git clone https://github.com/byt3bl33d3r/CrackMapExec

mpgn commented 4 years ago

You need to clone using the flag recursive

git clone --recursive https://github.com/byt3bl33d3r/CrackMapExec