Skip to content

Latest commit

 

History

History

filedir

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Filedir

stoQ plugin that processes a directory/file for processing, saves results, and handles archiving of payloads.

Plugin Classes

Configuration

All options below may be set by:

Options

  • archive_dir [str]: Directory to read/save archived files from/to

  • use_sha [True/False]: When archiving files, should archived files be saved in a directory structure based on the first five characters of the sha1 hash.

    For example, if the sha1 hash of the payload is da39a3ee5e6b4b0d3255bfef95601890afd80709, the payload will be archived to $archive_dir/d/a/3/9/a/da39a3ee5e6b4b0d3255bfef95601890afd80709.

  • results_dir [str]: Directory where results will be saved to

  • compactly [True/False]: Save results compacted (without newlines or indents)

  • date_mode [True/False]: Save results/archive payloads to a directory structure using date_format

  • date_format [str]: If date_mode is True, use this datetime formatter in the path. Defaults to %%Y/%%m/%%d

  • source_dir [str]: Directory to ingest files from

  • recursive [True/False]: Scan source_dir recursviely

Paths may be relative to the module, or a full path.