Versions in this module Expand all Collapse all v0 v0.0.2 Sep 17, 2024 v0.0.1 Aug 21, 2024 Changes in this version + const AckSpite + const EmptySpite + const StatusSpite + var DefaultGRPCAddr = "127.0.0.1:5004" + var DefaultListenerAddr = "127.0.0.1:5001" + var TestSid = []byte + func GetCertificateAuthority(caType string) (*x509.Certificate, *rsa.PrivateKey, error) + func GetCertificateAuthorityPEM(caType string) ([]byte, []byte, error) + func GetTLSConfig(caCertificate string, certificate string, privateKey string) (*tls.Config, error) + func RpcOptions() []grpc.DialOption + type Client struct + Client clientrpc.MaliceRPCClient + Implant listenerrpc.ImplantRPCClient + Listener listenerrpc.ListenerRPCClient + Root clientrpc.RootRPCClient + func NewClient(addr string, sid []byte) *Client + func (c *Client) Call(rpcname string, msg proto.Message) (proto.Message, error) + func (c *Client) Meta() context.Context + func (c *Client) Send() + func (c *Client) WaitResponse(task *clientpb.Task) (*implantpb.Spite, error) + type Implant struct + Addr string + Enc bool + Sid []byte + Tls bool + func NewImplant(addr string, sid []byte) *Implant + func (implant *Implant) BuildCommonSpite(t string, taskId uint32) *implantpb.Spite + func (implant *Implant) BuildTaskSpite(msg proto.Message, taskid uint32) (*implantpb.Spite, error) + func (implant *Implant) Connect() (net.Conn, error) + func (implant *Implant) Expect(req *implantpb.Spite, m types.MsgName) (proto.Message, error) + func (implant *Implant) Handler(msg *implantpb.Spites) + func (implant *Implant) HandlerSpite(msg *implantpb.Spite) *implantpb.Spite + func (implant *Implant) MustConnect() net.Conn + func (implant *Implant) Read(conn net.Conn) (proto.Message, error) + func (implant *Implant) ReadWithTimeout(conn net.Conn) (proto.Message, error) + func (implant *Implant) Register() + func (implant *Implant) Request(req *implantpb.Spite) (proto.Message, error) + func (implant *Implant) Run() + func (implant *Implant) Write(conn net.Conn, msg *implantpb.Spites) error + func (implant *Implant) WriteEmpty(conn net.Conn) error + func (implant *Implant) WriteSpite(conn net.Conn, msg *implantpb.Spite) error + func (implant *Implant) WriteWithTimeout(conn net.Conn, msg proto.Message) error