Trait ExecutableFile

Source
pub trait ExecutableFile {
    // Required methods
    fn architecture(&self) -> Option<Architecture>;
    fn pointer_size(&self) -> usize;
    fn operating_system(&self) -> OperatingSystem;
    fn compiled_timestamp(&self) -> Option<DateTime<Utc>>;
    fn num_sections(&self) -> u32;
    fn sections(&self) -> Option<&Vec<Section<'_>>>;
    fn import_hash(&self) -> Option<String>;
    fn fuzzy_imports(&self) -> Option<String>;
}
Expand description

Common functions for executable files

Required Methods§

Source

fn architecture(&self) -> Option<Architecture>

Get the architecture type

Source

fn pointer_size(&self) -> usize

Get the pointer size, 32- or 64-bit

Source

fn operating_system(&self) -> OperatingSystem

Get the operating system type for a binary

Source

fn compiled_timestamp(&self) -> Option<DateTime<Utc>>

Get the compilation timestamp, if available

Source

fn num_sections(&self) -> u32

Number of sections for a binary

Source

fn sections(&self) -> Option<&Vec<Section<'_>>>

Vec of sections for the binary

Source

fn import_hash(&self) -> Option<String>

Import hash of the binary

Source

fn fuzzy_imports(&self) -> Option<String>

SSDeep fuzzy hash of the binary

Implementors§