Module preprocessors

Source
Expand description

This module defines and manages the default preprocessors available to ArmorLib.

To contribute a new Preprocessor, you must: 1. publicly import it into this module via pub mod. 2. instantiate it in make_default_preprocessors().

Modules§

filetype
hash
This module defines the hash preprocessor which makes hash information available to scan modules. The following hashes are currently supported:
hex
This preprocessor converts the given binary into a space-separated hex string under the key ‘hex_data’. While this is not a complicated task, the hex preprocessor exists to remove unnnecessary duplicate code and memory use, as searching the hex string is a common function.
text

Functions§

make_default_preprocessors
Create a Vec<Box<Preprocessor>> of the core preprocessors available to ArmorLib. This will instantiate the preprocessors.
process
Process the given Vec<Box<Preprocessor>> on the given &BinaryObject and return a HashMap<String, HashMap<String>>. While concurrency is not yet available in ArmorLib, it will be implemented in this function, if anywhere.