Documentation
¶
Index ¶
- Constants
- Variables
- 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
- type 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
Constants ¶
View Source
const ( EmptySpite = "empty" StatusSpite = "status" AckSpite = "ack" )
Variables ¶
View Source
var ( DefaultGRPCAddr = "127.0.0.1:5004" DefaultListenerAddr = "127.0.0.1:5001" TestSid = []byte{1, 2, 3, 4} )
Functions ¶
func GetCertificateAuthority ¶
func GetCertificateAuthority(caType string) (*x509.Certificate, *rsa.PrivateKey, error)
GetCertificateAuthority - Get the current CA certificate
func GetCertificateAuthorityPEM ¶
GetCertificateAuthorityPEM - Get PEM encoded CA cert/key
func GetTLSConfig ¶
GetTLSConfig - Get the TLS config for the operator server
func RpcOptions ¶
func RpcOptions() []grpc.DialOption
Types ¶
type Client ¶
type Client struct {
Client clientrpc.MaliceRPCClient
Implant listenerrpc.ImplantRPCClient
Listener listenerrpc.ListenerRPCClient
Root clientrpc.RootRPCClient
// contains filtered or unexported fields
}
type Implant ¶
type Implant struct {
Addr string
Sid []byte
Enc bool
Tls bool
// contains filtered or unexported fields
}
func NewImplant ¶
func (*Implant) BuildCommonSpite ¶
func (*Implant) BuildTaskSpite ¶
func (*Implant) HandlerSpite ¶
func (*Implant) MustConnect ¶
func (*Implant) ReadWithTimeout ¶
func (*Implant) WriteSpite ¶
Click to show internal directories.
Click to hide internal directories.