masc icon indicating copy to clipboard operation
masc copied to clipboard

ERROR Can't open file or directory

Open ramisedhom opened this issue 4 years ago • 1 comments

I'm trying to execute the below command as 'root' on ubuntu 20.04 + python 3.8.10:

masc --scan --site-type wordpress --path /var/www/html

But I only get error: "Can't open file or directory" like below for all files:

Scanning your website (Using ClamAV engine) \{'/var/www/html/wp-config-sample.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) /{'/var/www/html/wp-mail.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) \{'/var/www/html/wp-links-opml.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) /{'/var/www/html/wp-activate.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) \{'/var/www/html/wp-trackback.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) /{'/var/www/html/wp-admin/user/admin.php': ('ERROR', "Can't open file or directory")}
Scanning your website (Using ClamAV engine) \{'/var/www/html/wp-admin/user/user-edit.php': ('ERROR', "Can't open file or directory")}

Thanks to advice how to resolve this.

ramisedhom avatar Jul 14 '21 17:07 ramisedhom

Maybe some permissions over /var/www/html for the user who executes the script?

sfaci avatar Aug 11 '21 19:08 sfaci