Documentation
¶
Overview ¶
Copyright (C) 2022 K2 Cyber Security Inc.
Copyright (C) 2022 K2 Cyber Security Inc.
Copyright (C) 2022 K2 Cyber Security Inc.
Copyright (C) 2022 K2 Cyber Security Inc.
Index ¶
- Variables
- func ApplyWrap(from, to, toc interface{}) (*hook, error)
- func ApplyWrapInterface(from, to, toc interface{}) (*hook, error)
- func ApplyWrapRaw(from uintptr, to, toc interface{}) (*hook, error)
- func GetSymbols(name string) (map[string]uintptr, error)
- func SetDebug(x bool)
- type Enabler
- type Hook
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDoubleHook means already hooked ErrDoubleHook = errors.New("double hook") // ErrHookNotFound means the hook not found ErrHookNotFound = errors.New("hook not found") // ErrDifferentType means from and to are of different types ErrDifferentType = errors.New("inputs are of different type") // ErrInputType means inputs are not func type ErrInputType = errors.New("inputs are not func type") // ErrRelativeAddr means cannot call the origin function ErrRelativeAddr = errors.New("relative address in instruction") )
Functions ¶
func ApplyWrapInterface ¶
func ApplyWrapInterface(from, to, toc interface{}) (*hook, error)
func ApplyWrapRaw ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.