rpc

package
v0.0.0-...-51e328c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(serverState *state.ServerState)

Types

type HermitRPCServer

type HermitRPCServer struct {
	rpcpb.UnimplementedHermitRPCServer
	// contains filtered or unexported fields
}

func (*HermitRPCServer) AgentDeleteById

func (s *HermitRPCServer) AgentDeleteById(
	ctx context.Context,
	agentId *commonpb.Id,
) (*commonpb.Message, error)

func (*HermitRPCServer) AgentGetAll

func (s *HermitRPCServer) AgentGetAll(
	empty *commonpb.Empty,
	stream rpcpb.HermitRPC_AgentGetAllServer,
) error

func (*HermitRPCServer) AgentGetById

func (s *HermitRPCServer) AgentGetById(
	ctx context.Context,
	agentId *commonpb.Id,
) (*rpcpb.Agent, error)

func (*HermitRPCServer) GetVersion

func (s *HermitRPCServer) GetVersion(ctx context.Context, empty *commonpb.Empty) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerDeleteById

func (s *HermitRPCServer) ListenerDeleteById(
	ctx context.Context,
	listenerId *commonpb.Id,
) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerGetAll

func (s *HermitRPCServer) ListenerGetAll(
	empty *commonpb.Empty,
	stream rpcpb.HermitRPC_ListenerGetAllServer,
) error

func (*HermitRPCServer) ListenerGetById

func (s *HermitRPCServer) ListenerGetById(
	ctx context.Context,
	listenerId *commonpb.Id,
) (*rpcpb.Listener, error)

func (*HermitRPCServer) ListenerPayloadsById

func (s *HermitRPCServer) ListenerPayloadsById(
	ctx context.Context,
	listenerId *commonpb.Id,
) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerPayloadsDeleteById

func (s *HermitRPCServer) ListenerPayloadsDeleteById(
	ctx context.Context,
	listenerPayload *rpcpb.ListenerPayload,
) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerStart

func (s *HermitRPCServer) ListenerStart(
	ctx context.Context,
	lis *rpcpb.Listener,
) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerStartById

func (s *HermitRPCServer) ListenerStartById(
	ctx context.Context,
	listenerId *commonpb.Id,
) (*commonpb.Message, error)

func (*HermitRPCServer) ListenerStopById

func (s *HermitRPCServer) ListenerStopById(
	ctx context.Context,
	listenerId *commonpb.Id,
) (*commonpb.Message, error)

func (*HermitRPCServer) LootClearByAgentName

func (s *HermitRPCServer) LootClearByAgentName(
	ctx context.Context,
	_loot *rpcpb.Loot,
) (*commonpb.Message, error)

func (*HermitRPCServer) LootGetAll

func (s *HermitRPCServer) LootGetAll(
	ctx context.Context,
	_loot *rpcpb.Loot,
) (*commonpb.Message, error)

func (*HermitRPCServer) OperatorDeleteByUuid

func (s *HermitRPCServer) OperatorDeleteByUuid(
	ctx context.Context,
	operatorUUID *commonpb.Uuid,
) (*commonpb.Message, error)

func (*HermitRPCServer) OperatorGetAll

func (s *HermitRPCServer) OperatorGetAll(
	empty *commonpb.Empty,
	stream rpcpb.HermitRPC_OperatorGetAllServer,
) error

func (*HermitRPCServer) OperatorGetById

func (s *HermitRPCServer) OperatorGetById(
	ctx context.Context,
	operatorID *commonpb.Id,
) (*rpcpb.Operator, error)

func (*HermitRPCServer) OperatorRegister

func (s *HermitRPCServer) OperatorRegister(
	ctx context.Context,
	ope *rpcpb.Operator,
) (*commonpb.Message, error)

func (*HermitRPCServer) PayloadImplantGenerate

func (s *HermitRPCServer) PayloadImplantGenerate(
	ctx context.Context,
	imp *rpcpb.PayloadImplant,
) (*commonpb.Binary, error)

func (*HermitRPCServer) PayloadLoaderGenerate

func (s *HermitRPCServer) PayloadLoaderGenerate(
	ctx context.Context,
	ldr *rpcpb.PayloadLoader,
) (*commonpb.Binary, error)

func (*HermitRPCServer) PayloadModuleGenerate

func (s *HermitRPCServer) PayloadModuleGenerate(
	ctx context.Context,
	mod *rpcpb.PayloadModule,
) (*commonpb.Binary, error)

func (*HermitRPCServer) SayHello

func (s *HermitRPCServer) SayHello(ctx context.Context, empty *commonpb.Empty) (*commonpb.Message, error)

func (*HermitRPCServer) TaskClearByAgentName

func (s *HermitRPCServer) TaskClearByAgentName(
	ctx context.Context,
	_task *rpcpb.Task,
) (*commonpb.Message, error)

func (*HermitRPCServer) TaskListByAgentName

func (s *HermitRPCServer) TaskListByAgentName(
	ctx context.Context,
	_task *rpcpb.Task,
) (*commonpb.Message, error)

func (*HermitRPCServer) TaskSetByAgentName

func (s *HermitRPCServer) TaskSetByAgentName(
	ctx context.Context,
	_task *rpcpb.Task,
) (*commonpb.Message, error)

Jump to

Keyboard shortcuts

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