Documentation
¶
Index ¶
- Variables
- func RegisterAdminServer(s *grpc.Server, srv AdminServer)
- func RegisterImplantServer(s *grpc.Server, srv ImplantServer)
- type AdminClient
- type AdminServer
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetIn() string
- func (x *Command) GetOut() string
- func (x *Command) GetRegister() string
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type Empty
- type ImplantClient
- type ImplantServer
- type UnimplementedAdminServer
- type UnimplementedImplantServer
Constants ¶
This section is empty.
Variables ¶
var File_implant_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminServer ¶
func RegisterAdminServer(s *grpc.Server, srv AdminServer)
func RegisterImplantServer ¶
func RegisterImplantServer(s *grpc.Server, srv ImplantServer)
Types ¶
type AdminClient ¶
type AdminClient interface { RunCommand(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Command, error) ListBeacons(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Command, error) }
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminServer ¶
type AdminServer interface { RunCommand(context.Context, *Command) (*Command, error) ListBeacons(context.Context, *Command) (*Command, error) }
AdminServer is the server API for Admin service.
type Command ¶
type Command struct { In string `protobuf:"bytes,1,opt,name=In,proto3" json:"In,omitempty"` Out string `protobuf:"bytes,2,opt,name=Out,proto3" json:"Out,omitempty"` Register string `protobuf:"bytes,3,opt,name=Register,proto3" json:"Register,omitempty"` // contains filtered or unexported fields }
Command defines a with both input and output fields
func (*Command) Descriptor
deprecated
func (*Command) GetRegister ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
Empty defines an empty message used in place of null
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ImplantClient ¶
type ImplantClient interface { FetchCommand(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Command, error) SendOutput(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Empty, error) RegisterImplant(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Empty, error) }
ImplantClient is the client API for Implant service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImplantClient ¶
func NewImplantClient(cc grpc.ClientConnInterface) ImplantClient
type ImplantServer ¶
type ImplantServer interface { FetchCommand(context.Context, *Empty) (*Command, error) SendOutput(context.Context, *Command) (*Empty, error) RegisterImplant(context.Context, *Command) (*Empty, error) }
ImplantServer is the server API for Implant service.
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct { }
UnimplementedAdminServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdminServer) ListBeacons ¶
func (*UnimplementedAdminServer) RunCommand ¶
type UnimplementedImplantServer ¶
type UnimplementedImplantServer struct { }
UnimplementedImplantServer can be embedded to have forward compatible implementations.