USArmyResearchLab / Dshell

Dshell is a network forensic analysis framework.
Other
5.45k stars 1.14k forks source link

Added 'setup' function to output modules #83

Closed dev195 closed 8 years ago

dev195 commented 8 years ago

This pull request attempts to solve the issue highlighted in pull request #82

It creates a 'setup' function that output modules can use to perform actions after command-line arguments are read, but before decoders do all of their input processing.

For example, this will allow the colorout module to print its HTML header data to a user-defined file before the followstream decoder prints any of its output. It also avoids the need to clear out any arguments provided to an output module's __init__ function in the decoder.

amm3 commented 8 years ago

This looks like a solid approach. And initial testing confirms it solves the condition we were trying to fix with #82. Thanks!