byt3bl33d3r / CrackMapExec

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

4.0 Doesn't run by defualt #166

Closed vysecurity closed 7 years ago

vysecurity commented 7 years ago

python setup.py install

then run>

┌─[root@zeroP]─[/opt/CrackMapExec]
└──╼ #cme
Traceback (most recent call last):
  File "/usr/local/bin/cme", line 11, in <module>
    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 35, in main
    args = gen_cli_args()
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-4.0.0.dev0-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.0.dev0-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.0.dev0-py2.7.egg/cme/protocols/smb.py", line 9, in <module>
    from impacket.examples.secretsdump import RemoteOperations, SAMHashes, LSASecrets, NTDSHashes
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.2.1-py2.7-linux-x86_64.egg/gevent/builtins.py", line 93, in __import__
    result = _import(*args, **kwargs)
ImportError: No module named secretsdump
byt3bl33d3r commented 7 years ago

@vysec did you run:

git submodule init && git submodule update --recursive

Before python setup.py install?

byt3bl33d3r commented 7 years ago

Also can you give me the OS you're running? thanks

its0x08 commented 7 years ago

in version 4.0 I dont even understand how this tool works! not just weird but ugly :-1: I add a target ang -t flag and the protocol and still nothing hapens rather than errors!

byt3bl33d3r commented 7 years ago

@its0x08 details on the errors you are getting would be appreciated. As for 'not understanding how the tool works', i sincerely doubt its that hard to understand. In any case whenever I get the time I'll be updating the documentation accordingly and maybe publish a blog post

its0x08 commented 7 years ago

@byt3bl33d3r well until then I cant post any error because maybe it's my fault for wrong usage! thanks.

byt3bl33d3r commented 7 years ago

@vysec ping, any update on this?

vysecurity commented 7 years ago

Got nothing to bruteforce

On Tue, 25 Apr 2017 at 18:14, byt3bl33d3r notifications@github.com wrote:

@vysec https://github.com/vysec ping, any update on this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/byt3bl33d3r/CrackMapExec/issues/166#issuecomment-297101444, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbf0odRVD77oVWxQoIggvEmxRHnoR3Sks5rzioMgaJpZM4M-mEw .

byt3bl33d3r commented 7 years ago

think you might be confusing this issue with #155 ?

vysecurity commented 7 years ago

Ah, I'll check soon!!! I haven't been able to fix it yet On Tue, 25 Apr 2017 at 18:57, byt3bl33d3r notifications@github.com wrote:

think you might be confusing this issue with #155 https://github.com/byt3bl33d3r/CrackMapExec/issues/155 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/byt3bl33d3r/CrackMapExec/issues/166#issuecomment-297113516, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbf0ruJhTyuMEY4DlllJKg_CplTuew4ks5rzjQSgaJpZM4M-mEw .

byt3bl33d3r commented 7 years ago

No rush :), thanks!

vysecurity commented 7 years ago

Ran it but still get same "no module called secretsdump" :/

vysecurity commented 7 years ago

Did another python setup.py install after it

NVM WORKS! It just doesn't seem as verbose in help format as it did previously now. I'll start playing with the tool more to see if it's reliable :) thx for your work.

byt3bl33d3r commented 7 years ago

@vysec I've updated the wiki regarding the most 'noticeable' changes in 4.0 https://github.com/byt3bl33d3r/CrackMapExec/wiki.

Thanks!

vysecurity commented 7 years ago

Been getting this though:

ConfigParser.NoSectionError: No section: 'CME'

When running cme smb

vysecurity commented 7 years ago

Nvm just reinstalled :D

Open-Sec commented 7 years ago

Just in case, deleted ~/.cme and ConfigParser.NoSectionError: No section: 'CME' dissapear. An old cme.conf...

clorth0 commented 6 years ago

Tried to reinstall, but to no avail. Running 'cme' only produces a command not found while 'crackmapexec' produces the same types of errors as the OP.