Search code examples
gitflash

What's the best way of searching for Flash content in git repositories?


Given that Flash is now obsolete, I want to search a bunch of git repositories to look for where we might have stored Flash content so that we can expunge it. I know how to search git, but the question is: what kind of patterns should I look for in the repositories?

For example, if I were looking for PDFs then I could search for %PDF as a string. Are there such signatures that stand out for Flash content?


Solution

  • As explained in SWF file format specification or this older spec flash files (*.swf) start with FWS, CWS or ZWS headers (SWF, SWC and SWZ spelled backward).

    Flash Video (*.flv) start with FLV. Not sure about Flash Audio (*.fla).

    Here is source code for libmagic, it lists the same headers and nothing more.