zeek/scripts/base/frameworks/files
Robin Sommer d34f23c8d4 A set of file analysis extensions.
- Enable manager to associate analyzers with a MIME type. With that,
  one can now say enable all analyzers for, e.g., "image/gif". This is
  exposed to script-land as

    Files::add_analyzers_for_mime_type(f: fa_file, mtype: string)

  For MIME types identified via libmagic, this happens automatically
  (via the file_new() handler in files/main.bro).

- Extend the analyzer API to better match that of protocol analyzers:

    - Adding unique analyzer IDs so that we can refer to instances
      from script-land.

    - Adding subtypes to Components so that a single analyzer
      implementation can support different types of analyzers
      internally.

    - Add an analyzer method SetTag() that allows to set the tag after
      construction.

    - Adding Init() and Done() methods for consistency with what other
      classes offer.

- Add debug logging to the file_analysis stream.

TODO: test cases missing for the new script-land functionality.
2013-11-26 11:20:14 -08:00
..
__load__.bro Large overhaul in name and appearance for file analysis. 2013-07-05 02:00:14 -04:00
main.bro A set of file analysis extensions. 2013-11-26 11:20:14 -08:00
README Add README files for most Bro frameworks 2013-10-11 00:19:37 -05:00

The file analysis framework provides an interface for driving the analysis
of files, possibly independent of any network protocol over which they're
transported.