Gadget

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryRegexp

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

func MustCompile

func MustCompile(expr string) *BinaryRegexp

func (*BinaryRegexp) FindBytesMatchStartingAt

func (b *BinaryRegexp) FindBytesMatchStartingAt(bytes []byte, startAt int) (*binexp.Match, error)

func (*BinaryRegexp) FindNextMatch

func (b *BinaryRegexp) FindNextMatch(m *binexp.Match) (*binexp.Match, error)

func (*BinaryRegexp) FindNextOverlappingMatch

func (b *BinaryRegexp) FindNextOverlappingMatch(m *binexp.Match) (*binexp.Match, error)

func (*BinaryRegexp) String

func (b *BinaryRegexp) String() string

type DecoderFunc

type DecoderFunc func([]byte) (Gadget, error)

type EndSpec

type EndSpec struct {
	Opcode *BinaryRegexp
	Size   int
	Align  uint64
}

Specifies the termination conditions for a gadget A gadget is typically <Some instruction set> + <some termination condition> A termination is a control-flow change

type Gadget

type Gadget []*Instruction.Instruction

func (Gadget) Bytes

func (g Gadget) Bytes() Instruction.Octets

type GadgetInstance

type GadgetInstance struct {
	Address uint64
	Gadget  Gadget
}

type UserSpec

type UserSpec struct {
	MinSize uint
	MaxSize uint
}

func (UserSpec) String

func (s UserSpec) String() string

Jump to

Keyboard shortcuts

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