loader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader() (*Loader, error)

func (*Loader) Load added in v0.2.0

func (l *Loader) Load(scBuf []byte, technique string) error

func (*Loader) NtAllocateVirtualMemory added in v0.2.0

func (l *Loader) NtAllocateVirtualMemory(
	hProc, baseAddr uintptr,
	memSize int,
	allocType, protectAttr uintptr,
) (uintptr, error)

func (*Loader) NtCreateThreadEx added in v0.2.0

func (l *Loader) NtCreateThreadEx(hThread, hProc, baseAddr uintptr) (uintptr, error)

func (*Loader) NtProtectVirtualMemory added in v0.2.0

func (l *Loader) NtProtectVirtualMemory(
	hProc, baseAddr uintptr,
	memSize int,
	newProtect uintptr,
	oldProtect uintptr,
) (uintptr, error)

func (*Loader) NtQueueApcThread added in v0.2.0

func (l *Loader) NtQueueApcThread(hThread, baseAddr uintptr) (uintptr, error)

func (*Loader) NtWriteVirtualMemory added in v0.2.0

func (l *Loader) NtWriteVirtualMemory(
	hProc, baseAddr uintptr,
	buf []byte,
	numBytesToWrite int,
) (uintptr, error)

type ToPtr added in v0.2.0

type ToPtr interface {
	int | uint | uint32 | uint16 | uint8 | uintptr
}

type WinTypesPtr added in v0.2.0

Jump to

Keyboard shortcuts

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