Pe

Struct Pe 

Source
pub struct Pe;
Expand description

pe module. Allows inspecting PE inputs.

The pe.is_signed can be overriden by providing a value for it throught the PeData object. For more details on this, see PeData::is_signed.

Trait Implementations§

Source§

impl Debug for Pe

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Module for Pe

Source§

fn get_name(&self) -> &'static str

Name of the module, used in import clauses.
Source§

fn get_static_values(&self) -> HashMap<&'static str, StaticValue>

Static values exported by the module. Read more
Source§

fn get_dynamic_types(&self) -> HashMap<&'static str, Type>

Type of the dynamic values exported by the module. Read more
Source§

fn setup_new_scan(&self, data_map: &mut ModuleDataMap<'_>)

Setup data when a new scan is started. Read more
Source§

fn get_dynamic_values( &self, ctx: &mut ScanContext<'_, '_, '_>, out: &mut HashMap<&'static str, Value>, )

Values computed dynamically. Read more
Source§

impl ModuleData for Pe

Source§

type PrivateData = Data

Private Data to associate with the module. Read more
Source§

type UserData = PeData

Data that the user can provide to the module. Read more

Auto Trait Implementations§

§

impl Freeze for Pe

§

impl RefUnwindSafe for Pe

§

impl Send for Pe

§

impl Sync for Pe

§

impl Unpin for Pe

§

impl UnwindSafe for Pe

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.