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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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