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§
Sourcefn architecture(&self) -> Option<Architecture>
fn architecture(&self) -> Option<Architecture>
Get the architecture type
Sourcefn pointer_size(&self) -> usize
fn pointer_size(&self) -> usize
Get the pointer size, 32- or 64-bit
Sourcefn operating_system(&self) -> OperatingSystem
fn operating_system(&self) -> OperatingSystem
Get the operating system type for a binary
Sourcefn compiled_timestamp(&self) -> Option<DateTime<Utc>>
fn compiled_timestamp(&self) -> Option<DateTime<Utc>>
Get the compilation timestamp, if available
Sourcefn num_sections(&self) -> u32
fn num_sections(&self) -> u32
Number of sections for a binary
Sourcefn import_hash(&self) -> Option<String>
fn import_hash(&self) -> Option<String>
Import hash of the binary
Sourcefn fuzzy_imports(&self) -> Option<String>
fn fuzzy_imports(&self) -> Option<String>
SSDeep
fuzzy hash of the binary