patcher

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAPINotFound = errors.New("couldn't find API address in memory")
View Source
var ErrOffsetMismatch = errors.New("offset found at different location")
View Source
var ErrProcessAlreadyPatched = errors.New("process already patched")

Errors

View Source
var ErrProcessNotFound = errors.New("couldn't find process")

Functions

func GetProc

func GetProc(proc string) (uint32, error)

func PatchProc

func PatchProc(pid uint32, moduleName string, offsetAddr uintptr, old []byte, new []byte) (uintptr, error)

func SearchMemory

func SearchMemory(proc windows.Handle, LPBaseOfDll uintptr, SizeOfImage uint32, value []byte, altvalue []byte) (uintptr, error)

func VerifyAPIPatch added in v1.9.0

func VerifyAPIPatch(proc windows.Handle, addr uintptr, old []byte, new []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL