byt3bl33d3r / CrackMapExec

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

cme wont read ANY password file #809

Open AMVx86 opened 10 months ago

AMVx86 commented 10 months ago

Describe the bug password files stored in / seemed to work a few times but not anymore (this was installed from snap) passwords located within or in other drives (/media//drive/file.txt" always dump a permissions issue checked with chmod/chown nothing seems to work.

What did work for a short time was creating a symlink back to the path to the drive.

To Reproduce Steps to reproduce the behavior i.e.: Command: crackmapexec smb -u username -p /path/to/passwordfile Resulted in:

in __init__ line 113 self.proto_flow()
snap connection.py 113/161 

line 405 in connection.py in login 

line 312 parse_credentials 
with open(password,'r'...

PermissionError: Errno 13 Permission denied: '/path/to/passwordfile'
...

Expected behavior Read the file!

Screenshots N/A at this time.

Crackmapexec info