__

package
v0.0.0-...-b3492f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetIn

func (x *Command) GetIn() string

func (*Command) GetOut

func (x *Command) GetOut() string

func (*Command) GetRegister

func (x *Command) GetRegister() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

func (*UnimplementedImplantServer) FetchCommand

func (*UnimplementedImplantServer) RegisterImplant

func (*UnimplementedImplantServer) RegisterImplant(context.Context, *Command) (*Empty, error)

func (*UnimplementedImplantServer) SendOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL