pub struct InjectionScan { /* private fields */ }Expand description
An injection builder holding a byte pattern to find the target by, returned
by Injection::scan.
Implementations§
Source§impl InjectionScan
impl InjectionScan
Sourcepub fn in_module(self, module: &str) -> Self
pub fn in_module(self, module: &str) -> Self
Searches a loaded module such as "engine.dll" instead of the main
module.
Sourcepub fn offset(self, bytes: isize) -> Self
pub fn offset(self, bytes: isize) -> Self
Moves the target this many bytes on from the start of the match, or back for a negative count.
Sourcepub fn follow_call(self) -> Self
pub fn follow_call(self) -> Self
Follows the call or jmp at the target to the code it goes to; see
Pattern::follow_call.
Sourcepub fn code(self, code: &[u8]) -> InjectionWith
pub fn code(self, code: &[u8]) -> InjectionWith
Injects the caller’s own machine code; see InjectionBuilder::code.
Sourcepub fn asm<F>(self, build: F) -> InjectionWith
pub fn asm<F>(self, build: F) -> InjectionWith
Injects machine code written as assembly; see InjectionBuilder::asm.
Sourcepub fn inspect<F>(self, callback: F) -> InjectionWith
pub fn inspect<F>(self, callback: F) -> InjectionWith
Injects a callback that reads the registers; see
InjectionBuilder::inspect.
Sourcepub fn modify<F>(self, callback: F) -> InjectionWith
pub fn modify<F>(self, callback: F) -> InjectionWith
Injects a callback that can change the registers; see
InjectionBuilder::modify.
Auto Trait Implementations§
impl Freeze for InjectionScan
impl RefUnwindSafe for InjectionScan
impl Send for InjectionScan
impl Sync for InjectionScan
impl Unpin for InjectionScan
impl UnsafeUnpin for InjectionScan
impl UnwindSafe for InjectionScan
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