Site hacked and unable to login
-
Hi everyone.
Some days ago a site I worked on was hacked: the site seems to work pretty good, but one can’t login (when try to go wp-admin it goes to Page not found) and there are some warning on the frontend.
When I looked at website files the permissions were all at 555. I changed them to 755 for folders and 644 for files, but I solved just one of the warning. These are still left:
Warning: file_put_contents(/home/***/public_html/wp-content/themes/socute.free/cache/custom.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/***/public_html/wp-content/themes/socute.free/core/functions-core.php on line 902
Warning: file_put_contents(/home/***/public_html/wp-content/themes/socute.free/cache/style.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/***/public_html/wp-content/themes/socute.free/core/functions-core.php on line 902
Warning: file_put_contents(/home/***/public_html/wp-content/themes/socute.free/cache/custom.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/***/public_html/wp-content/themes/socute.free/core/functions-core.php on line 902
I tried to re-upload the file mentioned, but no success.
I also found an amount of strange folders and files, which today I have zipped, deleting the originals, but nothing changed.
I have a backup I did on September, so I can use that to restore the website (strange files and folder appeared to be last modified the first days of December), so that would work good, even if not very recent.
The curious thing is that one of the strage folders I found, even if deleted, shows up again (with all its contents) when I refresh the contents of the website.
My question is: can I solve just re-uploading the theme folder/the entire website contents or do I have to completely delete folders and files of the website before re-uploading? That strange folder would reappear even if I delete it and re-upload the entire website?
Thanks in advance for any advice.
- The topic ‘Site hacked and unable to login’ is closed to new replies.