P.S-> Check your file/folder permissions are Chmod correctly. You don't want to be giving them more access once you clean the file and re-upload it. Cause they will just re-root your site and re-add there code and continue serving malware.