Trying to fix hacked site, bad code added to first line of each php
-
Hi all, I’m helping a friend with his hacked WordPress site, and it appears that almost every .php file has a long string of random characters on line 1 after “<?php”.
Oddly, certain php files have a line or two of added code at the very end, like an extra bracket or small snippet of several characters, but the main culprit seems to be that code on line 1.
I have been manually going through some of the php files, and the site is now at least functional, but it has a lot of errors from the many php files that still have the bad code. Being as there are hundreds of php files, is there any easier way to automate this, rather than going through each php file manually? Or, maybe another way I should be going about this? Thanks for the help!
- The topic ‘Trying to fix hacked site, bad code added to first line of each php’ is closed to new replies.