pub struct StackSpoofer { /* private fields */ }Expand description
high-level stack spoofer that creates believable call stacks
Implementations§
Source§impl StackSpoofer
impl StackSpoofer
Sourcepub fn resolve_all(&mut self) -> Result<()>
pub fn resolve_all(&mut self) -> Result<()>
resolve all templates to actual addresses
Sourcepub fn get_frame(&self, name: &str) -> Option<&FakeFrame>
pub fn get_frame(&self, name: &str) -> Option<&FakeFrame>
get a resolved frame by template name
Sourcepub fn build_stack_for(&self, pattern: &[&str]) -> Result<SyntheticStack>
pub fn build_stack_for(&self, pattern: &[&str]) -> Result<SyntheticStack>
build a synthetic stack for a specific call pattern
Sourcepub fn build_thread_start_stack(&self) -> Result<SyntheticStack>
pub fn build_thread_start_stack(&self) -> Result<SyntheticStack>
build a generic “thread start” stack that looks legitimate
Sourcepub fn build_memory_alloc_stack(&self) -> Result<SyntheticStack>
pub fn build_memory_alloc_stack(&self) -> Result<SyntheticStack>
build a stack for VirtualAlloc-like calls
Sourcepub fn build_file_io_stack(&self) -> Result<SyntheticStack>
pub fn build_file_io_stack(&self) -> Result<SyntheticStack>
build a stack for file operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackSpoofer
impl RefUnwindSafe for StackSpoofer
impl Send for StackSpoofer
impl Sync for StackSpoofer
impl Unpin for StackSpoofer
impl UnwindSafe for StackSpoofer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more