A website I'm hosting on my dedicated server has been hacked.
Some pictures have been infected with things like <?php eval(base64_decode(....));?>
.
I'm looking for a generic shell command which would able to read the headers of the most common image types (jpg, gif, tiff, etc.).
I tried jhead and others, jut jhead can only read EXIF data from JPG.
The aim is to find all infected images like this :
find -type f \( -iname "*jpg" -or -iname "*.jpeg" -or ... \) -exec sh -c 'magicimgheadersdisplay "{}" | grep eval" \;