byt3bl33d3r / CrackMapExec

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

v5.0.2dev Ubuntu release binary throws an "Unable to find config file" error #388

Closed Reelix closed 4 years ago

Reelix commented 4 years ago

Steps To Reproduce:

1.) Download https://github.com/byt3bl33d3r/CrackMapExec/releases/download/v5.0.2dev/cmedb-ubuntu-latest.zip on an Ubuntu system 2.) Extract it 3.) chmod it 4.) Run it 5.) Notice the [-] Unable to find config file error

According to https://github.com/byt3bl33d3r/CrackMapExec/blob/cc2123a2c987d3a7b19d2358667ddc0b00610bd9/cme/cmedb.py#L285-L290 it prints the message if it cannot find the ~/.cme/cme.conf file.

As the binary was just downloaded, I do not see how the file would exist.

If the user is expected to take additional steps post download, either include them in the Installation section of the Wiki, or expand the error to include methods to acquire the file.

Reelix commented 4 years ago

Update: User error - cmedb != cme...