indicator-extractor 0.2.0

Extract indicators (IP, domain, email, hashes, etc.) from a string or a PDF file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Various data extractors to then parse indicators from.
//!
//! You will need to import the [`DataExtractor`] trait to use any of the data extractors.
//!
//! Currently the project only supports parsing of PDF files, but the goal is to add support for other file types and extraction methods thanks to the DataExtractor trait.

mod pdf;
pub use pdf::PdfExtractor;

/// Trait to extract data from a byte array.
pub trait DataExtractor {
    /// Extracts data from a byte array into a readable string with potential indicators.
    fn extract(&self, data: &[u8]) -> String;
}