Versions in this module Expand all Collapse all v0 v0.1.0 Mar 2, 2024 v0.0.7 Feb 27, 2024 Changes in this version type C2Client + FetchAsset func(ctx context.Context, in *FetchAssetRequest, opts ...grpc.CallOption) (C2_FetchAssetClient, error) + ReportCredential func(ctx context.Context, in *ReportCredentialRequest, opts ...grpc.CallOption) (*ReportCredentialResponse, error) type C2Server + FetchAsset func(*FetchAssetRequest, C2_FetchAssetServer) error + ReportCredential func(context.Context, *ReportCredentialRequest) (*ReportCredentialResponse, error) + type C2_FetchAssetClient interface + Recv func() (*FetchAssetResponse, error) + type C2_FetchAssetServer interface + Send func(*FetchAssetResponse) error + type FetchAssetRequest struct + Name string + func (*FetchAssetRequest) Descriptor() ([]byte, []int) + func (*FetchAssetRequest) ProtoMessage() + func (x *FetchAssetRequest) GetName() string + func (x *FetchAssetRequest) ProtoReflect() protoreflect.Message + func (x *FetchAssetRequest) Reset() + func (x *FetchAssetRequest) String() string + type FetchAssetResponse struct + Chunk []byte + func (*FetchAssetResponse) Descriptor() ([]byte, []int) + func (*FetchAssetResponse) ProtoMessage() + func (x *FetchAssetResponse) GetChunk() []byte + func (x *FetchAssetResponse) ProtoReflect() protoreflect.Message + func (x *FetchAssetResponse) Reset() + func (x *FetchAssetResponse) String() string + type ReportCredentialRequest struct + Credential *epb.Credential + TaskId int64 + func (*ReportCredentialRequest) Descriptor() ([]byte, []int) + func (*ReportCredentialRequest) ProtoMessage() + func (x *ReportCredentialRequest) GetCredential() *epb.Credential + func (x *ReportCredentialRequest) GetTaskId() int64 + func (x *ReportCredentialRequest) ProtoReflect() protoreflect.Message + func (x *ReportCredentialRequest) Reset() + func (x *ReportCredentialRequest) String() string + type ReportCredentialResponse struct + func (*ReportCredentialResponse) Descriptor() ([]byte, []int) + func (*ReportCredentialResponse) ProtoMessage() + func (x *ReportCredentialResponse) ProtoReflect() protoreflect.Message + func (x *ReportCredentialResponse) Reset() + func (x *ReportCredentialResponse) String() string type UnimplementedC2Server + func (UnimplementedC2Server) FetchAsset(*FetchAssetRequest, C2_FetchAssetServer) error + func (UnimplementedC2Server) ReportCredential(context.Context, *ReportCredentialRequest) (*ReportCredentialResponse, error) v0.0.6 Feb 8, 2024 v0.0.5 Jan 31, 2024 Changes in this version type C2Client + DownloadFile func(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (C2_DownloadFileClient, error) + ReportFile func(ctx context.Context, opts ...grpc.CallOption) (C2_ReportFileClient, error) + ReportProcessList func(ctx context.Context, in *ReportProcessListRequest, opts ...grpc.CallOption) (*ReportProcessListResponse, error) type C2Server + DownloadFile func(*DownloadFileRequest, C2_DownloadFileServer) error + ReportFile func(C2_ReportFileServer) error + ReportProcessList func(context.Context, *ReportProcessListRequest) (*ReportProcessListResponse, error) + type C2_DownloadFileClient interface + Recv func() (*DownloadFileResponse, error) + type C2_DownloadFileServer interface + Send func(*DownloadFileResponse) error + type C2_ReportFileClient interface + CloseAndRecv func() (*ReportFileResponse, error) + Send func(*ReportFileRequest) error + type C2_ReportFileServer interface + Recv func() (*ReportFileRequest, error) + SendAndClose func(*ReportFileResponse) error + type DownloadFileRequest struct + Name string + func (*DownloadFileRequest) Descriptor() ([]byte, []int) + func (*DownloadFileRequest) ProtoMessage() + func (x *DownloadFileRequest) GetName() string + func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message + func (x *DownloadFileRequest) Reset() + func (x *DownloadFileRequest) String() string + type DownloadFileResponse struct + Chunk []byte + func (*DownloadFileResponse) Descriptor() ([]byte, []int) + func (*DownloadFileResponse) ProtoMessage() + func (x *DownloadFileResponse) GetChunk() []byte + func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message + func (x *DownloadFileResponse) Reset() + func (x *DownloadFileResponse) String() string type Host_Platform + func (Host_Platform) Values() []string + func (p *Host_Platform) Scan(val any) error + func (p *Host_Platform) UnmarshalGQL(v interface{}) error + func (p Host_Platform) MarshalGQL(w io.Writer) + func (p Host_Platform) Value() (driver.Value, error) + type ReportFileRequest struct + Chunk *epb.File + TaskId int64 + func (*ReportFileRequest) Descriptor() ([]byte, []int) + func (*ReportFileRequest) ProtoMessage() + func (x *ReportFileRequest) GetChunk() *epb.File + func (x *ReportFileRequest) GetTaskId() int64 + func (x *ReportFileRequest) ProtoReflect() protoreflect.Message + func (x *ReportFileRequest) Reset() + func (x *ReportFileRequest) String() string + type ReportFileResponse struct + func (*ReportFileResponse) Descriptor() ([]byte, []int) + func (*ReportFileResponse) ProtoMessage() + func (x *ReportFileResponse) ProtoReflect() protoreflect.Message + func (x *ReportFileResponse) Reset() + func (x *ReportFileResponse) String() string + type ReportProcessListRequest struct + List *epb.ProcessList + TaskId int64 + func (*ReportProcessListRequest) Descriptor() ([]byte, []int) + func (*ReportProcessListRequest) ProtoMessage() + func (x *ReportProcessListRequest) GetList() *epb.ProcessList + func (x *ReportProcessListRequest) GetTaskId() int64 + func (x *ReportProcessListRequest) ProtoReflect() protoreflect.Message + func (x *ReportProcessListRequest) Reset() + func (x *ReportProcessListRequest) String() string + type ReportProcessListResponse struct + func (*ReportProcessListResponse) Descriptor() ([]byte, []int) + func (*ReportProcessListResponse) ProtoMessage() + func (x *ReportProcessListResponse) ProtoReflect() protoreflect.Message + func (x *ReportProcessListResponse) Reset() + func (x *ReportProcessListResponse) String() string type Task + QuestName string + Tome *epb.Tome + func (x *Task) GetQuestName() string + func (x *Task) GetTome() *epb.Tome type UnimplementedC2Server + func (UnimplementedC2Server) DownloadFile(*DownloadFileRequest, C2_DownloadFileServer) error + func (UnimplementedC2Server) ReportFile(C2_ReportFileServer) error + func (UnimplementedC2Server) ReportProcessList(context.Context, *ReportProcessListRequest) (*ReportProcessListResponse, error) v0.0.4 Jan 10, 2024 Changes in this version + var C2_ServiceDesc = grpc.ServiceDesc + var File_c2_proto protoreflect.FileDescriptor + var Host_Platform_name = map[int32]string + var Host_Platform_value = map[string]int32 + func RegisterC2Server(s grpc.ServiceRegistrar, srv C2Server) + type Agent struct + Identifier string + func (*Agent) Descriptor() ([]byte, []int) + func (*Agent) ProtoMessage() + func (x *Agent) GetIdentifier() string + func (x *Agent) ProtoReflect() protoreflect.Message + func (x *Agent) Reset() + func (x *Agent) String() string + type Beacon struct + Agent *Agent + Host *Host + Identifier string + Interval uint64 + Principal string + func (*Beacon) Descriptor() ([]byte, []int) + func (*Beacon) ProtoMessage() + func (x *Beacon) GetAgent() *Agent + func (x *Beacon) GetHost() *Host + func (x *Beacon) GetIdentifier() string + func (x *Beacon) GetInterval() uint64 + func (x *Beacon) GetPrincipal() string + func (x *Beacon) ProtoReflect() protoreflect.Message + func (x *Beacon) Reset() + func (x *Beacon) String() string + type C2Client interface + ClaimTasks func(ctx context.Context, in *ClaimTasksRequest, opts ...grpc.CallOption) (*ClaimTasksResponse, error) + ReportTaskOutput func(ctx context.Context, in *ReportTaskOutputRequest, opts ...grpc.CallOption) (*ReportTaskOutputResponse, error) + func NewC2Client(cc grpc.ClientConnInterface) C2Client + type C2Server interface + ClaimTasks func(context.Context, *ClaimTasksRequest) (*ClaimTasksResponse, error) + ReportTaskOutput func(context.Context, *ReportTaskOutputRequest) (*ReportTaskOutputResponse, error) + type ClaimTasksRequest struct + Beacon *Beacon + func (*ClaimTasksRequest) Descriptor() ([]byte, []int) + func (*ClaimTasksRequest) ProtoMessage() + func (x *ClaimTasksRequest) GetBeacon() *Beacon + func (x *ClaimTasksRequest) ProtoReflect() protoreflect.Message + func (x *ClaimTasksRequest) Reset() + func (x *ClaimTasksRequest) String() string + type ClaimTasksResponse struct + Tasks []*Task + func (*ClaimTasksResponse) Descriptor() ([]byte, []int) + func (*ClaimTasksResponse) ProtoMessage() + func (x *ClaimTasksResponse) GetTasks() []*Task + func (x *ClaimTasksResponse) ProtoReflect() protoreflect.Message + func (x *ClaimTasksResponse) Reset() + func (x *ClaimTasksResponse) String() string + type Host struct + Identifier string + Name string + Platform Host_Platform + PrimaryIp string + func (*Host) Descriptor() ([]byte, []int) + func (*Host) ProtoMessage() + func (x *Host) GetIdentifier() string + func (x *Host) GetName() string + func (x *Host) GetPlatform() Host_Platform + func (x *Host) GetPrimaryIp() string + func (x *Host) ProtoReflect() protoreflect.Message + func (x *Host) Reset() + func (x *Host) String() string + type Host_Platform int32 + const Host_PLATFORM_BSD + const Host_PLATFORM_LINUX + const Host_PLATFORM_MACOS + const Host_PLATFORM_UNSPECIFIED + const Host_PLATFORM_WINDOWS + func (Host_Platform) Descriptor() protoreflect.EnumDescriptor + func (Host_Platform) EnumDescriptor() ([]byte, []int) + func (Host_Platform) Type() protoreflect.EnumType + func (x Host_Platform) Enum() *Host_Platform + func (x Host_Platform) Number() protoreflect.EnumNumber + func (x Host_Platform) String() string + type ReportTaskOutputRequest struct + Output *TaskOutput + func (*ReportTaskOutputRequest) Descriptor() ([]byte, []int) + func (*ReportTaskOutputRequest) ProtoMessage() + func (x *ReportTaskOutputRequest) GetOutput() *TaskOutput + func (x *ReportTaskOutputRequest) ProtoReflect() protoreflect.Message + func (x *ReportTaskOutputRequest) Reset() + func (x *ReportTaskOutputRequest) String() string + type ReportTaskOutputResponse struct + func (*ReportTaskOutputResponse) Descriptor() ([]byte, []int) + func (*ReportTaskOutputResponse) ProtoMessage() + func (x *ReportTaskOutputResponse) ProtoReflect() protoreflect.Message + func (x *ReportTaskOutputResponse) Reset() + func (x *ReportTaskOutputResponse) String() string + type Task struct + Eldritch string + Id int64 + Parameters map[string]string + func (*Task) Descriptor() ([]byte, []int) + func (*Task) ProtoMessage() + func (x *Task) GetEldritch() string + func (x *Task) GetId() int64 + func (x *Task) GetParameters() map[string]string + func (x *Task) ProtoReflect() protoreflect.Message + func (x *Task) Reset() + func (x *Task) String() string + type TaskError struct + Msg string + func (*TaskError) Descriptor() ([]byte, []int) + func (*TaskError) ProtoMessage() + func (x *TaskError) GetMsg() string + func (x *TaskError) ProtoReflect() protoreflect.Message + func (x *TaskError) Reset() + func (x *TaskError) String() string + type TaskOutput struct + Error *TaskError + ExecFinishedAt *timestamp.Timestamp + ExecStartedAt *timestamp.Timestamp + Id int64 + Output string + func (*TaskOutput) Descriptor() ([]byte, []int) + func (*TaskOutput) ProtoMessage() + func (x *TaskOutput) GetError() *TaskError + func (x *TaskOutput) GetExecFinishedAt() *timestamp.Timestamp + func (x *TaskOutput) GetExecStartedAt() *timestamp.Timestamp + func (x *TaskOutput) GetId() int64 + func (x *TaskOutput) GetOutput() string + func (x *TaskOutput) ProtoReflect() protoreflect.Message + func (x *TaskOutput) Reset() + func (x *TaskOutput) String() string + type UnimplementedC2Server struct + func (UnimplementedC2Server) ClaimTasks(context.Context, *ClaimTasksRequest) (*ClaimTasksResponse, error) + func (UnimplementedC2Server) ReportTaskOutput(context.Context, *ReportTaskOutputRequest) (*ReportTaskOutputResponse, error) + type UnsafeC2Server interface