[ale] detecting Adobe Flash content in static image files

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


The problem I am finding with file is that it's not exactly accurate.

For instance, i have a .gif (GIF89a) that file reports as

  "Infocom game data (Z-machine 71, Release 17976 / Serial 33)"

And others:

  "PC bitmap data, Windows 3.x format, 432 x 215 x 8"
  "ASCII text, with CRLF line terminators"
  "x86 boot sector, code offset 0xd8, OEM-ID"   <------ file name
contained a ")" char


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"

-Jim P.

On Sun, Dec 6, 2009 at 12:53, Matt Rideout <mrideout at windserve.com> wrote:
> Pipe find's output through the file command.
>
> Jim Popovitch wrote, On 12/06/2009 12:05 PM:
>> Googling for this is impossible....
>>
>> I would like to scan a server looking for jpg/gif/png files that
>> actually contain flash (swf) content.  Ideas?
>>
>> -Jim P.
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



More information about the Ale mailing list