bofloader

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("bofloader: object is closed")

Functions

This section is empty.

Types

type Import

type Import struct {
	Name         string
	Weak         bool
	Builtin      bool
	RequiresHost bool
}

Import describes one external symbol referenced by an object.

type LoadOptions

type LoadOptions struct {
	EntryPoint      string
	ValidateImports func([]Import) error
	ResolveSymbol   func(Import) (address uintptr, handled bool, err error)
}

LoadOptions controls entry selection and import resolution. Its zero value preserves Load's behavior.

type Loader

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

func Load

func Load(data []byte) (*Loader, error)

func LoadWithOptions

func LoadWithOptions(data []byte, options LoadOptions) (*Loader, error)

func (*Loader) Close

func (loader *Loader) Close() error

func (*Loader) Execute

func (loader *Loader) Execute(args []byte) ([]Output, error)

type Output

type Output struct {
	Type int
	Data []byte
}

Output is one Beacon output record emitted by a BOF.

Jump to

Keyboard shortcuts

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