I'm trying to modify a PHP file through a plugin on wordpress. Everything goes well, but I had to modify the permissions to 666 manually via terminal on the victim's machine, cause even when I'm trying to change this file through the admin panel, it says that permissions are too low to overwrite the file. SO, as I discovered, it only happens when the webserver is set on 'lighttpd'. On apache/xampp it works well, I don't need to overwrite permissions, they're set during installation.
The main question. Is there a way to discover if the file on a remote machine has >=666 permissions, without the manual access to it's console? I'm using kali, ubuntu, windows, everything. Every suggestion would be perfect.