Namespace: | FileExtract |
---|---|
Imports: | base/frameworks/files, base/utils/paths.bro |
Source File: | /scripts/base/files/extract/main.bro |
FileExtract::default_limit: count &redef | The default max size for extracted files (they won’t exceed this number of bytes). |
FileExtract::prefix: string &redef | The prefix where files are extracted to. |
Files::AnalyzerArgs: record &redef | |
Files::Info: record &redef |
FileExtract::set_limit: function | Sets the maximum allowed extracted file size. |
Type: | function (f: fa_file, args: Files::AnalyzerArgs, n: count) : bool |
---|
Sets the maximum allowed extracted file size.
F: | A file that’s being extracted. |
---|---|
Args: | Arguments that identify a file extraction analyzer. |
N: | Allowed number of bytes to be extracted. |
Returns: | false if a file extraction analyzer wasn’t active for the file, else true. |