How to Patch your WordPress Infected files?

 

Step::1 Login to cPanel and go to Imunify 360 under SECURITY

Step::2 Now go to Watch icon of an infected file

Step::3 When you click on this icon then you will find the entire code of this file.

Step::4 Now here you need to understand some of the things very carefully.

Step::5 Paste the copied code in Notepad ++ and then find question mark(?) and Greater than (>)  symbol in the file.

Once you do this you will find that there are two php tags, one is the php tag getting closed and again it is getting opened. This means that in most of the cases, the first code is the malicious one.

Step::6 You can manually cross check the codes, analyze it and then delete the first part of the php code.

Step::7 Now once you select and delete the first code, the malicious code is now removed successfully. The below part of the code is the real code.

Step::8 Now copy this remaining code and paste it in the original file and then click on Save Changes.

Perform the same procedure for all your other infected files.

Visit our Blog for more details. You can also watch the video here

  • How to Patch your WordPress Infected files, wordpress tutorials, wordpress, infected wordpress files, how to remove infected files from your Wordpress
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Fix WordPress error “There has been a critical error on your website”

Step::1 First of all login to your cPanel and go to File ManagerStep::2 Go inside public_html and...

How to Stay Logged in for a longer period in your WordPress?

Step::1 First of all you must know the theme which is currently activated in your website. So...

How to bulk delete spam comments in your WordPress website?

Step::1 Login to your cPanel and click on File Manager sectionStep::2 Go to public_html and then...

How to Change WordPress logo in wp-admin page?

Step::1 Login to your cPanel and go to File Manager sectionStep::2 Now go to Public_html Step::3...

How to Change WordPress Admin Username?

Step::1 Login to your WordPress dashboardStep::2 Now at the same time login to your WordPress...