Versions in this module Expand all Collapse all v0 v0.0.4 Nov 20, 2024 v0.0.3 Nov 21, 2024 Changes in this version + func Chunked(content []byte, max int) chan []byte + func Count(content []byte, max int) int + type MessageParser struct + Implant string + func NewParser(name string) (*MessageParser, error) + func (parser *MessageParser) ReadMessage(conn *peek.Conn, length uint32) (*implantpb.Spites, error) + func (parser *MessageParser) ReadPacket(conn *peek.Conn) (uint32, *implantpb.Spites, error) + func (parser *MessageParser) WritePacket(conn *peek.Conn, msg *implantpb.Spites, sid uint32) error + type PacketParser interface + Marshal func(*implantpb.Spites, uint32) ([]byte, error) + Parse func([]byte) (*implantpb.Spites, error) + PeekHeader func(conn *peek.Conn) (uint32, uint32, error) + ReadHeader func(conn *peek.Conn) (uint32, uint32, error) + type SpitesCache struct + func NewSpitesBuf() *SpitesCache + func (sc *SpitesCache) Append(spite *implantpb.Spite) + func (sc *SpitesCache) Build() *implantpb.Spites + func (sc *SpitesCache) BuildOrEmpty() *implantpb.Spites + func (sc *SpitesCache) Len() int + func (sc *SpitesCache) Reset()