Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageParser ¶
type MessageParser struct {
Implant string
PacketParser
}
func NewParser ¶
func NewParser(name string) (*MessageParser, error)
func (*MessageParser) ReadMessage ¶
func (*MessageParser) ReadPacket ¶
func (*MessageParser) WritePacket ¶
type PacketParser ¶
type PacketParser interface {
PeekHeader(conn *peek.Conn) (uint32, uint32, error)
ReadHeader(conn *peek.Conn) (uint32, uint32, error)
Parse([]byte) (*implantpb.Spites, error)
Marshal(*implantpb.Spites, uint32) ([]byte, error)
}
PacketParser packet parser, like malefic, beacon ...
type SpitesCache ¶
type SpitesCache struct {
// contains filtered or unexported fields
}
func NewSpitesBuf ¶
func NewSpitesBuf() *SpitesCache
func (*SpitesCache) Append ¶
func (sc *SpitesCache) Append(spite *implantpb.Spite)
func (*SpitesCache) Build ¶
func (sc *SpitesCache) Build() *implantpb.Spites
func (*SpitesCache) BuildOrEmpty ¶
func (sc *SpitesCache) BuildOrEmpty() *implantpb.Spites
func (*SpitesCache) Len ¶
func (sc *SpitesCache) Len() int
func (*SpitesCache) Reset ¶
func (sc *SpitesCache) Reset()
Click to show internal directories.
Click to hide internal directories.