byt3bl33d3r / CrackMapExec

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

Issue running crackmapexec #174

Closed xforjustice closed 7 years ago

xforjustice commented 7 years ago

Hi, I keep getting this error running cme v4:

root@HPJL23453:/opt# cme smb 192.168.1.72 -u employee1 -p 'Password!' -d corp Traceback (most recent call last): File "/usr/local/bin/cme", line 11, in load_entry_point('crackmapexec==4.0.0.dev0', 'console_scripts', 'cme')() File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0.dev0-py2.7.egg/cme/crackmapexec.py", line 50, in main current_workspace = config.get('CME', 'workspace') File "/usr/lib/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'CME'

Thank you,

simon--taylor commented 7 years ago

The [CME] section is missing from your cme.conf. Add

[CME]
workspace=default
last_used_db=

The configuration file generated by v3 is missing that section.

byt3bl33d3r commented 7 years ago

or just delete ~/.cme/cme.conf, when you run CME again it will copy it.

byt3bl33d3r commented 7 years ago

I'll add some error handling to this since this seems to be an issue when upgrading to the new version.

xforjustice commented 7 years ago

It worked. Thank you.