[ale] detecting Adobe Flash content in static image files

Jim Popovitch jimpop at gmail.com
Sun Dec 6 13:57:12 EST 2009


On Sun, Dec 6, 2009 at 13:49, Tim Watts <timtw at earthlink.net> wrote:
> On Sun, 2009-12-06 at 13:12 -0500, Jim Popovitch wrote:
>> Which makes it really really difficult to script something like:
>>
>>   find /var/www/images/ -type f -exec file {} \; | egrep -v
>> "(GIF|JPEG|PNG) image data"
>>
> Perhaps it's too optimistic, but could you use file --mime-type and grep
> for something like "(flash|flv)" or are there other impostors you're
> looking for as well?

I'm trying to detect everything that isn't a legit image.  The path
I'm on now is to create my own magic file with the specific allowed
types so that my find can just grep for "ALLOWED".

Thanks,

-Jim P.



More information about the Ale mailing list