Find hacked WordPress files

//

//

Go to the root of the folder that WordPress is installed in and run the following command:

find . -name "*.php"  -print0 | xargs -0 egrep -l 'if\(!isset\(\$GLOBALS' >> infectedfiles.txt

Then run the next command to view the output of the file:

cat infectedfiles.txt