Help us shape the future of Go! Take the 2026 Go Developer Survey

malefic

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgStart              = 0
	MsgSessionStart       = 1
	MsgSessionEnd         = 5
	HeaderLength          = 9
	DefaultStartDelimiter = 0xd1
	DefaultEndDelimiter   = 0xd2
)

Variables

This section is empty.

Functions

func ParseSid added in v0.1.1

func ParseSid(data []byte) uint32

Types

type MaleficParser

type MaleficParser struct {
	StartDelimiter byte
	EndDelimiter   byte
}

func NewMaleficParser

func NewMaleficParser() *MaleficParser

func (*MaleficParser) Marshal

func (parser *MaleficParser) Marshal(spites *implantpb.Spites, sid uint32) ([]byte, error)

func (*MaleficParser) Parse

func (parser *MaleficParser) Parse(buf []byte) (*implantpb.Spites, error)

func (*MaleficParser) ReadHeader

func (parser *MaleficParser) ReadHeader(conn io.ReadWriteCloser) (uint32, uint32, error)

Jump to

Keyboard shortcuts

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