memaccess

package module
v0.0.0-...-efa18f6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemAccess

type MemAccess struct {
	Proc *process
	Base uintptr
}

func NewMemAccess

func NewMemAccess(process, module string) (*MemAccess, error)

func (*MemAccess) Read

func (m *MemAccess) Read(address uintptr, resultPtr unsafe.Pointer, size uintptr) error

Read reads a custom value/size from the process memory.

func (*MemAccess) ReadByte

func (m *MemAccess) ReadByte(address uintptr) (byte, error)

ReadByte reads a byte from the process memory.

func (*MemAccess) ReadPointer32

func (m *MemAccess) ReadPointer32(address uintptr) (uintptr, error)

ReadPointer32 reads a 32-bit pointer from the process memory.

func (*MemAccess) ReadPointerChain

func (m *MemAccess) ReadPointerChain(chain ...uintptr) uintptr

ReadPointerChain reads a pointer from a chain of offsets from the process memory. Starts at the module base address. It returns 0x0 if error occurs. Last offset is not dereference, as we assume it is a pointer to the value we want.

func (*MemAccess) ReadUInt32

func (m *MemAccess) ReadUInt32(address uintptr) (uint32, error)

ReadUInt32 reads a 32-bit unsigned integer from the process memory.

func (*MemAccess) Write

func (m *MemAccess) Write(address uintptr, valuePtr unsafe.Pointer, size uintptr) error

Write writes a custom value to the process memory.

func (*MemAccess) WriteByte

func (m *MemAccess) WriteByte(address uintptr, value byte) error

WriteByte writes a byte to the process memory.

func (*MemAccess) WriteUInt32

func (m *MemAccess) WriteUInt32(address uintptr, value uint32) error

WriteUInt32 writes a 32-bit unsigned integer to the process memory.

Jump to

Keyboard shortcuts

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