option

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StubSize is the option stub total size at the runtime tail.
	StubSize = 64

	// StubMagic is the mark of options stub.
	StubMagic = 0xFC
)
View Source
const (
	OptOffsetNotEraseInstruction   = 1
	OptOffsetNotAdjustProtect      = 2
	OptOffsetNotTrackCurrentThread = 3
)

options offset of the option stub.

Variables

This section is empty.

Functions

func Flag

func Flag(opts *Options)

Flag is used to read options from command line.

func Set

func Set(tpl []byte, opts *Options) ([]byte, error)

Set is used to adjust options in the runtime shellcode template.

Types

type Options

type Options struct {
	// not erase runtime instructions after call Runtime_M.Exit.
	NotEraseInstruction bool

	// not adjust current memory page protect for erase runtime.
	NotAdjustProtect bool

	// track current thread for test or debug mode.
	TrackCurrentThread bool
}

Options contains options about Gleam-RT.

func Get

func Get(sc []byte, offset int) (*Options, error)

Get is used to read options from the runtime shellcode option stub.

Jump to

Keyboard shortcuts

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