Report this

What is the reason for this report?

Can not delete or edit file.

Posted on July 23, 2019

Hello, I am working on a hacked wordpress site. and i have seen many malicious content inside. i have deleted most of those files except one. i can not delete that root file index.php or even can not edit that. can not change the file permission too. changing file permission, bring back the previous permission.

what should i do?

Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@bobbyiliev Thank you. We didn’t get any error any time so it might be recreated after it is deleted. The .htaccess file can be deleted but is being recreated as a hidden file within 3 or 4 seconds.

This comment has been deleted

@bobbyiliev the .htaccess file now been deleted but the index.php is still there. and again the .htaccess come with the following rules.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^(.*)\/(benzylpenicillin)\/([0-9]+)_([0-9]+)\/(.*)$ ?benzylpenicillin$4=$3&%{QUERY_STRING}[L]
</IfModule>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.