pub enum HookType {
JmpRel32,
JmpIndirect,
MovJmpRax,
PushRet,
Breakpoint,
Unknown,
}Expand description
type of detected hook
Variants§
JmpRel32
direct jump at function start (jmp rel32)
JmpIndirect
indirect jump (jmp [rip+disp32] or jmp [addr])
MovJmpRax
mov rax, addr; jmp rax pattern
PushRet
push addr; ret pattern (32-bit)
Breakpoint
int3 breakpoint
Unknown
bytes differ from clean copy but no recognized pattern
Trait Implementations§
impl Copy for HookType
impl Eq for HookType
impl StructuralPartialEq for HookType
Auto Trait Implementations§
impl Freeze for HookType
impl RefUnwindSafe for HookType
impl Send for HookType
impl Sync for HookType
impl Unpin for HookType
impl UnwindSafe for HookType
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