Documentation
¶
Index ¶
- Constants
- type PulseParser
- func (parser *PulseParser) Marshal(spites *implantpb.Spites, magic uint32) ([]byte, error)
- func (parser *PulseParser) Parse(buf []byte) (*implantpb.Spites, error)
- func (parser *PulseParser) ReadHeader(conn io.ReadWriteCloser) (uint32, uint32, error)
- func (parser *PulseParser) WithSecure(keyPair *clientpb.KeyPair)
Constants ¶
View Source
const ( MsgStart = 0 MsgMagicStart = 1 MsgMagicEnd = 5 HeaderLength = 9 DefaultStartDelimiter = 0x41 DefaultEndDelimiter = 0x42 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PulseParser ¶
func NewPulseParser ¶
func NewPulseParser() *PulseParser
func (*PulseParser) ReadHeader ¶
func (parser *PulseParser) ReadHeader(conn io.ReadWriteCloser) (uint32, uint32, error)
func (*PulseParser) WithSecure ¶ added in v0.1.2
func (parser *PulseParser) WithSecure(keyPair *clientpb.KeyPair)
WithSecure pulse parser 目前不支持安全模式,返回自身
Click to show internal directories.
Click to hide internal directories.