How to find out if jpg files are infected with php code?

robert d

New member
if you haven't made any changes to the images on the site, then overwriting them with the same image will put your mind to rest. Another way to check it to load the image. PHP code is text and will cause an error in the image if it is present.
 
My site was hacked, and they injected php code into every single php page on my site. I am not sure if the jpg files are infected as well. I have the original jpg file, and I have the same jpg file on the ftp that may be infected. How can i compare these 2 files to be 100% sure that they are identical and not infected?

Thanks in advance.
ejg_dnd: yes that would fix it BUT i NEED to know if the files are infected or not before overwriting!
 
Back
Top