Function armorlib::coordinator::process [] [src]

pub fn process(
    scan_modules_to_run: Vec<Box<ScanModule>>,
    extra_preprocessors: Vec<Box<Preprocessor>>,
    binary_object: BinaryObject,
    filetype: Option<String>
) -> Result<ScanResult, ArmorlibError>

Process the given BinaryObject through the ArmorLib system and return a ScanResult. All other process() functions are simply wrappers for this function.

Arguments

Examples

use armorlib::{scan_modules, binary_object, util};
use armorlib::coordinator;
let scan_result =
   coordinator::process(
       scan_modules::make_default_scan_modules(),
       Vec::new(),
       binary_object::BinaryObject::from(
           util::hex_to_vec(
               "48 8B CD E8 60 FF FF FF 48 FF C3 32 44 1E FF 48 FF CF 88 43 FF 48 8B CD E8 60"
           ).unwrap()),
           None
       );