$ cme
Traceback (most recent call last):
File "/usr/bin/cme", line 33, in
sys.exit(load_entry_point('crackmapexec==5.1.0.dev0', 'console_scripts', 'cme')())
File "/usr/lib/python3.8/site-packages/cme/crackmapexec.py", line 36, in main
args = gen_cli_args()
File "/usr/lib/python3.8/site-packages/cme/cli.py", line 71, in gen_cli_args
protocol_object = p_loader.load_protocol(protocols[protocol]['path'])
File "/usr/lib/python3.8/site-packages/cme/loaders/protocol_loader.py", line 12, in load_protocol
protocol = imp.load_source('protocol', protocol_path)
File "/usr/lib/python3.8/imp.py", line 169, in load_source
module = _exec(spec, sys.modules[name])
File "", line 604, in _exec
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/lib/python3.8/site-packages/cme/protocols/smb.py", line 31, in
from pywerview.cli.helpers import *
File "/usr/lib/python3.8/site-packages/pywerview/cli/helpers.py", line 187
return requester.get_netgpo(queried_gponame=queried_gponame,
^
TabError: inconsistent use of tabs and spaces in indentation
CME Version (cme --version)
5.2.0
OS
Arch Linux
Target OS
Arch Linux
Detailed issue explanation
Upon further investigation the error seemed to be comming from pywerview. This is core part of the program.
Steps to reproduce
Command string used
CME
CME verbose output (using the --verbose flag)
$ cme Traceback (most recent call last): File "/usr/bin/cme", line 33, in
sys.exit(load_entry_point('crackmapexec==5.1.0.dev0', 'console_scripts', 'cme')())
File "/usr/lib/python3.8/site-packages/cme/crackmapexec.py", line 36, in main
args = gen_cli_args()
File "/usr/lib/python3.8/site-packages/cme/cli.py", line 71, in gen_cli_args
protocol_object = p_loader.load_protocol(protocols[protocol]['path'])
File "/usr/lib/python3.8/site-packages/cme/loaders/protocol_loader.py", line 12, in load_protocol
protocol = imp.load_source('protocol', protocol_path)
File "/usr/lib/python3.8/imp.py", line 169, in load_source
module = _exec(spec, sys.modules[name])
File "", line 604, in _exec
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/lib/python3.8/site-packages/cme/protocols/smb.py", line 31, in
from pywerview.cli.helpers import *
File "/usr/lib/python3.8/site-packages/pywerview/cli/helpers.py", line 187
return requester.get_netgpo(queried_gponame=queried_gponame,
^
TabError: inconsistent use of tabs and spaces in indentation
CME Version (cme --version)
5.2.0
OS
Arch Linux
Target OS
Arch Linux
Detailed issue explanation
Upon further investigation the error seemed to be comming from pywerview. This is core part of the program.
build/lib/cme/protocols/smb.py:from pywerview.cli.helpers import *
https://github.com/the-useless-one/pywerview
Python 2.7
Python3 program is attempting to call a python2 lib, and failing.
Should be noted that pypi has this lib that will pull from pip3, but this is still python2 only code.