pe

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CALLBACK_OUTPUT      = 0
	CALLBACK_SCREENSHOT  = 3
	CALLBACK_OUTPUT_OEM  = 30
	CALLBACK_ERROR       = 31
	CALLBACK_OUTPUT_UTF8 = 32
)
View Source
const (
	IMAGE_FILE_DLL              uint16 = 0x2000
	IMAGE_FILE_EXECUTABLE_IMAGE uint16 = 0x0002
)

Variables

This section is empty.

Functions

func CheckExtModule

func CheckExtModule(filename string) string

func CheckPEType

func CheckPEType(content []byte) int

func PackArg

func PackArg(format byte, arg string) (string, error)

func PackArgs

func PackArgs(data []string) ([]string, error)

func PackBinary

func PackBinary(data string) string

func PackInt

func PackInt(i uint32) (string, error)

func PackIntString

func PackIntString(s string) (string, error)

func PackShort

func PackShort(i uint16) (string, error)

func PackShortString

func PackShortString(s string) (string, error)

func PackString

func PackString(s string) string

func PackWideString

func PackWideString(s string) string

Types

type BOFArgsBuffer

type BOFArgsBuffer struct {
	Buffer *bytes.Buffer
}

func (*BOFArgsBuffer) AddData

func (b *BOFArgsBuffer) AddData(d []byte) error

func (*BOFArgsBuffer) AddInt

func (b *BOFArgsBuffer) AddInt(d uint32) error

func (*BOFArgsBuffer) AddShort

func (b *BOFArgsBuffer) AddShort(d uint16) error

func (*BOFArgsBuffer) AddString

func (b *BOFArgsBuffer) AddString(d string) error

func (*BOFArgsBuffer) AddWString

func (b *BOFArgsBuffer) AddWString(d string) error

func (*BOFArgsBuffer) GetBuffer

func (b *BOFArgsBuffer) GetBuffer() ([]byte, error)

type BOFResponse

type BOFResponse struct {
	CallbackType uint8
	OutputType   uint8
	Length       uint32
	Data         []byte
}

func (*BOFResponse) String

func (bof *BOFResponse) String() string

type BOFResponses

type BOFResponses []*BOFResponse

func (BOFResponses) String

func (bofs BOFResponses) String() string

type IoMBOFArgsBuffer

type IoMBOFArgsBuffer struct {
	Args []string
}

func (*IoMBOFArgsBuffer) AddData

func (b *IoMBOFArgsBuffer) AddData(d []byte) error

func (*IoMBOFArgsBuffer) AddInt

func (b *IoMBOFArgsBuffer) AddInt(d uint32) error

func (*IoMBOFArgsBuffer) AddShort

func (b *IoMBOFArgsBuffer) AddShort(d uint16) error

func (*IoMBOFArgsBuffer) AddString

func (b *IoMBOFArgsBuffer) AddString(d string) error

func (*IoMBOFArgsBuffer) AddWString

func (b *IoMBOFArgsBuffer) AddWString(d string) error

func (*IoMBOFArgsBuffer) GetArgs

func (b *IoMBOFArgsBuffer) GetArgs() []string

Jump to

Keyboard shortcuts

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