Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

cme wont read ANY password file #809

Open
AMVx86 opened this issue Sep 21, 2023 · 0 comments
Open

cme wont read ANY password file #809

AMVx86 opened this issue Sep 21, 2023 · 0 comments

Comments

@AMVx86
Copy link

AMVx86 commented Sep 21, 2023

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

  • OS: Ubuntu 22.04
  • Version of CME 6.0.1
  • Installed from: snap
    *** SUGGESTION: Is there an option for only successful logins?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant