rpcpb

package
v1.4.16 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: GPL-3.0 Imports: 10 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rpcpb_services_proto protoreflect.FileDescriptor
View Source
var SliverRPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpcpb.SliverRPC",
	HandlerType: (*SliverRPCServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVersion",
			Handler:    _SliverRPC_GetVersion_Handler,
		},
		{
			MethodName: "GetOperators",
			Handler:    _SliverRPC_GetOperators_Handler,
		},
		{
			MethodName: "GetSessions",
			Handler:    _SliverRPC_GetSessions_Handler,
		},
		{
			MethodName: "KillSession",
			Handler:    _SliverRPC_KillSession_Handler,
		},
		{
			MethodName: "UpdateSession",
			Handler:    _SliverRPC_UpdateSession_Handler,
		},
		{
			MethodName: "GetJobs",
			Handler:    _SliverRPC_GetJobs_Handler,
		},
		{
			MethodName: "KillJob",
			Handler:    _SliverRPC_KillJob_Handler,
		},
		{
			MethodName: "StartMTLSListener",
			Handler:    _SliverRPC_StartMTLSListener_Handler,
		},
		{
			MethodName: "StartWGListener",
			Handler:    _SliverRPC_StartWGListener_Handler,
		},
		{
			MethodName: "StartDNSListener",
			Handler:    _SliverRPC_StartDNSListener_Handler,
		},
		{
			MethodName: "StartHTTPSListener",
			Handler:    _SliverRPC_StartHTTPSListener_Handler,
		},
		{
			MethodName: "StartHTTPListener",
			Handler:    _SliverRPC_StartHTTPListener_Handler,
		},
		{
			MethodName: "StartTCPStagerListener",
			Handler:    _SliverRPC_StartTCPStagerListener_Handler,
		},
		{
			MethodName: "StartHTTPStagerListener",
			Handler:    _SliverRPC_StartHTTPStagerListener_Handler,
		},
		{
			MethodName: "Generate",
			Handler:    _SliverRPC_Generate_Handler,
		},
		{
			MethodName: "Regenerate",
			Handler:    _SliverRPC_Regenerate_Handler,
		},
		{
			MethodName: "ImplantBuilds",
			Handler:    _SliverRPC_ImplantBuilds_Handler,
		},
		{
			MethodName: "DeleteImplantBuild",
			Handler:    _SliverRPC_DeleteImplantBuild_Handler,
		},
		{
			MethodName: "Canaries",
			Handler:    _SliverRPC_Canaries_Handler,
		},
		{
			MethodName: "GenerateWGClientConfig",
			Handler:    _SliverRPC_GenerateWGClientConfig_Handler,
		},
		{
			MethodName: "GenerateUniqueIP",
			Handler:    _SliverRPC_GenerateUniqueIP_Handler,
		},
		{
			MethodName: "ImplantProfiles",
			Handler:    _SliverRPC_ImplantProfiles_Handler,
		},
		{
			MethodName: "DeleteImplantProfile",
			Handler:    _SliverRPC_DeleteImplantProfile_Handler,
		},
		{
			MethodName: "SaveImplantProfile",
			Handler:    _SliverRPC_SaveImplantProfile_Handler,
		},
		{
			MethodName: "MsfStage",
			Handler:    _SliverRPC_MsfStage_Handler,
		},
		{
			MethodName: "ShellcodeRDI",
			Handler:    _SliverRPC_ShellcodeRDI_Handler,
		},
		{
			MethodName: "Websites",
			Handler:    _SliverRPC_Websites_Handler,
		},
		{
			MethodName: "Website",
			Handler:    _SliverRPC_Website_Handler,
		},
		{
			MethodName: "WebsiteRemove",
			Handler:    _SliverRPC_WebsiteRemove_Handler,
		},
		{
			MethodName: "WebsiteAddContent",
			Handler:    _SliverRPC_WebsiteAddContent_Handler,
		},
		{
			MethodName: "WebsiteUpdateContent",
			Handler:    _SliverRPC_WebsiteUpdateContent_Handler,
		},
		{
			MethodName: "WebsiteRemoveContent",
			Handler:    _SliverRPC_WebsiteRemoveContent_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _SliverRPC_Ping_Handler,
		},
		{
			MethodName: "Ps",
			Handler:    _SliverRPC_Ps_Handler,
		},
		{
			MethodName: "Terminate",
			Handler:    _SliverRPC_Terminate_Handler,
		},
		{
			MethodName: "Ifconfig",
			Handler:    _SliverRPC_Ifconfig_Handler,
		},
		{
			MethodName: "Netstat",
			Handler:    _SliverRPC_Netstat_Handler,
		},
		{
			MethodName: "Ls",
			Handler:    _SliverRPC_Ls_Handler,
		},
		{
			MethodName: "Cd",
			Handler:    _SliverRPC_Cd_Handler,
		},
		{
			MethodName: "Pwd",
			Handler:    _SliverRPC_Pwd_Handler,
		},
		{
			MethodName: "Rm",
			Handler:    _SliverRPC_Rm_Handler,
		},
		{
			MethodName: "Mkdir",
			Handler:    _SliverRPC_Mkdir_Handler,
		},
		{
			MethodName: "Download",
			Handler:    _SliverRPC_Download_Handler,
		},
		{
			MethodName: "Upload",
			Handler:    _SliverRPC_Upload_Handler,
		},
		{
			MethodName: "ProcessDump",
			Handler:    _SliverRPC_ProcessDump_Handler,
		},
		{
			MethodName: "RunAs",
			Handler:    _SliverRPC_RunAs_Handler,
		},
		{
			MethodName: "Impersonate",
			Handler:    _SliverRPC_Impersonate_Handler,
		},
		{
			MethodName: "RevToSelf",
			Handler:    _SliverRPC_RevToSelf_Handler,
		},
		{
			MethodName: "GetSystem",
			Handler:    _SliverRPC_GetSystem_Handler,
		},
		{
			MethodName: "Task",
			Handler:    _SliverRPC_Task_Handler,
		},
		{
			MethodName: "Msf",
			Handler:    _SliverRPC_Msf_Handler,
		},
		{
			MethodName: "MsfRemote",
			Handler:    _SliverRPC_MsfRemote_Handler,
		},
		{
			MethodName: "ExecuteAssembly",
			Handler:    _SliverRPC_ExecuteAssembly_Handler,
		},
		{
			MethodName: "Migrate",
			Handler:    _SliverRPC_Migrate_Handler,
		},
		{
			MethodName: "Execute",
			Handler:    _SliverRPC_Execute_Handler,
		},
		{
			MethodName: "ExecuteToken",
			Handler:    _SliverRPC_ExecuteToken_Handler,
		},
		{
			MethodName: "Sideload",
			Handler:    _SliverRPC_Sideload_Handler,
		},
		{
			MethodName: "SpawnDll",
			Handler:    _SliverRPC_SpawnDll_Handler,
		},
		{
			MethodName: "Screenshot",
			Handler:    _SliverRPC_Screenshot_Handler,
		},
		{
			MethodName: "NamedPipes",
			Handler:    _SliverRPC_NamedPipes_Handler,
		},
		{
			MethodName: "TCPListener",
			Handler:    _SliverRPC_TCPListener_Handler,
		},
		{
			MethodName: "ListPivots",
			Handler:    _SliverRPC_ListPivots_Handler,
		},
		{
			MethodName: "StartService",
			Handler:    _SliverRPC_StartService_Handler,
		},
		{
			MethodName: "StopService",
			Handler:    _SliverRPC_StopService_Handler,
		},
		{
			MethodName: "RemoveService",
			Handler:    _SliverRPC_RemoveService_Handler,
		},
		{
			MethodName: "MakeToken",
			Handler:    _SliverRPC_MakeToken_Handler,
		},
		{
			MethodName: "GetEnv",
			Handler:    _SliverRPC_GetEnv_Handler,
		},
		{
			MethodName: "SetEnv",
			Handler:    _SliverRPC_SetEnv_Handler,
		},
		{
			MethodName: "UnsetEnv",
			Handler:    _SliverRPC_UnsetEnv_Handler,
		},
		{
			MethodName: "Backdoor",
			Handler:    _SliverRPC_Backdoor_Handler,
		},
		{
			MethodName: "RegistryRead",
			Handler:    _SliverRPC_RegistryRead_Handler,
		},
		{
			MethodName: "RegistryWrite",
			Handler:    _SliverRPC_RegistryWrite_Handler,
		},
		{
			MethodName: "RegistryCreateKey",
			Handler:    _SliverRPC_RegistryCreateKey_Handler,
		},
		{
			MethodName: "WGStartPortForward",
			Handler:    _SliverRPC_WGStartPortForward_Handler,
		},
		{
			MethodName: "WGStopPortForward",
			Handler:    _SliverRPC_WGStopPortForward_Handler,
		},
		{
			MethodName: "WGStartSocks",
			Handler:    _SliverRPC_WGStartSocks_Handler,
		},
		{
			MethodName: "WGStopSocks",
			Handler:    _SliverRPC_WGStopSocks_Handler,
		},
		{
			MethodName: "WGListForwarders",
			Handler:    _SliverRPC_WGListForwarders_Handler,
		},
		{
			MethodName: "WGListSocksServers",
			Handler:    _SliverRPC_WGListSocksServers_Handler,
		},
		{
			MethodName: "Shell",
			Handler:    _SliverRPC_Shell_Handler,
		},
		{
			MethodName: "Portfwd",
			Handler:    _SliverRPC_Portfwd_Handler,
		},
		{
			MethodName: "CreateTunnel",
			Handler:    _SliverRPC_CreateTunnel_Handler,
		},
		{
			MethodName: "CloseTunnel",
			Handler:    _SliverRPC_CloseTunnel_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TunnelData",
			Handler:       _SliverRPC_TunnelData_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Events",
			Handler:       _SliverRPC_Events_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "rpcpb/services.proto",
}

SliverRPC_ServiceDesc is the grpc.ServiceDesc for SliverRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSliverRPCServer

func RegisterSliverRPCServer(s grpc.ServiceRegistrar, srv SliverRPCServer)

Types

type SliverRPCClient

type SliverRPCClient interface {
	// *** Version ***
	GetVersion(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Version, error)
	// *** Operator Commands ***
	GetOperators(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Operators, error)
	// *** Sessions ***
	GetSessions(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Sessions, error)
	KillSession(ctx context.Context, in *sliverpb.KillSessionReq, opts ...grpc.CallOption) (*commonpb.Empty, error)
	UpdateSession(ctx context.Context, in *clientpb.UpdateSession, opts ...grpc.CallOption) (*clientpb.Session, error)
	// *** Jobs ***
	GetJobs(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Jobs, error)
	KillJob(ctx context.Context, in *clientpb.KillJobReq, opts ...grpc.CallOption) (*clientpb.KillJob, error)
	// *** Listeners ***
	StartMTLSListener(ctx context.Context, in *clientpb.MTLSListenerReq, opts ...grpc.CallOption) (*clientpb.MTLSListener, error)
	StartWGListener(ctx context.Context, in *clientpb.WGListenerReq, opts ...grpc.CallOption) (*clientpb.WGListener, error)
	StartDNSListener(ctx context.Context, in *clientpb.DNSListenerReq, opts ...grpc.CallOption) (*clientpb.DNSListener, error)
	StartHTTPSListener(ctx context.Context, in *clientpb.HTTPListenerReq, opts ...grpc.CallOption) (*clientpb.HTTPListener, error)
	StartHTTPListener(ctx context.Context, in *clientpb.HTTPListenerReq, opts ...grpc.CallOption) (*clientpb.HTTPListener, error)
	// *** Stager Listener ***
	StartTCPStagerListener(ctx context.Context, in *clientpb.StagerListenerReq, opts ...grpc.CallOption) (*clientpb.StagerListener, error)
	StartHTTPStagerListener(ctx context.Context, in *clientpb.StagerListenerReq, opts ...grpc.CallOption) (*clientpb.StagerListener, error)
	// *** Implants ***
	Generate(ctx context.Context, in *clientpb.GenerateReq, opts ...grpc.CallOption) (*clientpb.Generate, error)
	Regenerate(ctx context.Context, in *clientpb.RegenerateReq, opts ...grpc.CallOption) (*clientpb.Generate, error)
	ImplantBuilds(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.ImplantBuilds, error)
	DeleteImplantBuild(ctx context.Context, in *clientpb.DeleteReq, opts ...grpc.CallOption) (*commonpb.Empty, error)
	Canaries(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Canaries, error)
	GenerateWGClientConfig(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.WGClientConfig, error)
	GenerateUniqueIP(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.UniqueWGIP, error)
	ImplantProfiles(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.ImplantProfiles, error)
	DeleteImplantProfile(ctx context.Context, in *clientpb.DeleteReq, opts ...grpc.CallOption) (*commonpb.Empty, error)
	SaveImplantProfile(ctx context.Context, in *clientpb.ImplantProfile, opts ...grpc.CallOption) (*clientpb.ImplantProfile, error)
	MsfStage(ctx context.Context, in *clientpb.MsfStagerReq, opts ...grpc.CallOption) (*clientpb.MsfStager, error)
	ShellcodeRDI(ctx context.Context, in *clientpb.ShellcodeRDIReq, opts ...grpc.CallOption) (*clientpb.ShellcodeRDI, error)
	// *** Websites ***
	Websites(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*clientpb.Websites, error)
	Website(ctx context.Context, in *clientpb.Website, opts ...grpc.CallOption) (*clientpb.Website, error)
	WebsiteRemove(ctx context.Context, in *clientpb.Website, opts ...grpc.CallOption) (*commonpb.Empty, error)
	WebsiteAddContent(ctx context.Context, in *clientpb.WebsiteAddContent, opts ...grpc.CallOption) (*clientpb.Website, error)
	WebsiteUpdateContent(ctx context.Context, in *clientpb.WebsiteAddContent, opts ...grpc.CallOption) (*clientpb.Website, error)
	WebsiteRemoveContent(ctx context.Context, in *clientpb.WebsiteRemoveContent, opts ...grpc.CallOption) (*clientpb.Website, error)
	// *** Session Interactions ***
	Ping(ctx context.Context, in *sliverpb.Ping, opts ...grpc.CallOption) (*sliverpb.Ping, error)
	Ps(ctx context.Context, in *sliverpb.PsReq, opts ...grpc.CallOption) (*sliverpb.Ps, error)
	Terminate(ctx context.Context, in *sliverpb.TerminateReq, opts ...grpc.CallOption) (*sliverpb.Terminate, error)
	Ifconfig(ctx context.Context, in *sliverpb.IfconfigReq, opts ...grpc.CallOption) (*sliverpb.Ifconfig, error)
	Netstat(ctx context.Context, in *sliverpb.NetstatReq, opts ...grpc.CallOption) (*sliverpb.Netstat, error)
	Ls(ctx context.Context, in *sliverpb.LsReq, opts ...grpc.CallOption) (*sliverpb.Ls, error)
	Cd(ctx context.Context, in *sliverpb.CdReq, opts ...grpc.CallOption) (*sliverpb.Pwd, error)
	Pwd(ctx context.Context, in *sliverpb.PwdReq, opts ...grpc.CallOption) (*sliverpb.Pwd, error)
	Rm(ctx context.Context, in *sliverpb.RmReq, opts ...grpc.CallOption) (*sliverpb.Rm, error)
	Mkdir(ctx context.Context, in *sliverpb.MkdirReq, opts ...grpc.CallOption) (*sliverpb.Mkdir, error)
	Download(ctx context.Context, in *sliverpb.DownloadReq, opts ...grpc.CallOption) (*sliverpb.Download, error)
	Upload(ctx context.Context, in *sliverpb.UploadReq, opts ...grpc.CallOption) (*sliverpb.Upload, error)
	ProcessDump(ctx context.Context, in *sliverpb.ProcessDumpReq, opts ...grpc.CallOption) (*sliverpb.ProcessDump, error)
	RunAs(ctx context.Context, in *sliverpb.RunAsReq, opts ...grpc.CallOption) (*sliverpb.RunAs, error)
	Impersonate(ctx context.Context, in *sliverpb.ImpersonateReq, opts ...grpc.CallOption) (*sliverpb.Impersonate, error)
	RevToSelf(ctx context.Context, in *sliverpb.RevToSelfReq, opts ...grpc.CallOption) (*sliverpb.RevToSelf, error)
	GetSystem(ctx context.Context, in *clientpb.GetSystemReq, opts ...grpc.CallOption) (*sliverpb.GetSystem, error)
	Task(ctx context.Context, in *sliverpb.TaskReq, opts ...grpc.CallOption) (*sliverpb.Task, error)
	Msf(ctx context.Context, in *clientpb.MSFReq, opts ...grpc.CallOption) (*commonpb.Empty, error)
	MsfRemote(ctx context.Context, in *clientpb.MSFRemoteReq, opts ...grpc.CallOption) (*commonpb.Empty, error)
	ExecuteAssembly(ctx context.Context, in *sliverpb.ExecuteAssemblyReq, opts ...grpc.CallOption) (*sliverpb.ExecuteAssembly, error)
	Migrate(ctx context.Context, in *clientpb.MigrateReq, opts ...grpc.CallOption) (*sliverpb.Migrate, error)
	Execute(ctx context.Context, in *sliverpb.ExecuteReq, opts ...grpc.CallOption) (*sliverpb.Execute, error)
	ExecuteToken(ctx context.Context, in *sliverpb.ExecuteTokenReq, opts ...grpc.CallOption) (*sliverpb.Execute, error)
	Sideload(ctx context.Context, in *sliverpb.SideloadReq, opts ...grpc.CallOption) (*sliverpb.Sideload, error)
	SpawnDll(ctx context.Context, in *sliverpb.InvokeSpawnDllReq, opts ...grpc.CallOption) (*sliverpb.SpawnDll, error)
	Screenshot(ctx context.Context, in *sliverpb.ScreenshotReq, opts ...grpc.CallOption) (*sliverpb.Screenshot, error)
	NamedPipes(ctx context.Context, in *sliverpb.NamedPipesReq, opts ...grpc.CallOption) (*sliverpb.NamedPipes, error)
	TCPListener(ctx context.Context, in *sliverpb.TCPPivotReq, opts ...grpc.CallOption) (*sliverpb.TCPPivot, error)
	ListPivots(ctx context.Context, in *sliverpb.PivotListReq, opts ...grpc.CallOption) (*sliverpb.PivotList, error)
	StartService(ctx context.Context, in *sliverpb.StartServiceReq, opts ...grpc.CallOption) (*sliverpb.ServiceInfo, error)
	StopService(ctx context.Context, in *sliverpb.StopServiceReq, opts ...grpc.CallOption) (*sliverpb.ServiceInfo, error)
	RemoveService(ctx context.Context, in *sliverpb.RemoveServiceReq, opts ...grpc.CallOption) (*sliverpb.ServiceInfo, error)
	MakeToken(ctx context.Context, in *sliverpb.MakeTokenReq, opts ...grpc.CallOption) (*sliverpb.MakeToken, error)
	GetEnv(ctx context.Context, in *sliverpb.EnvReq, opts ...grpc.CallOption) (*sliverpb.EnvInfo, error)
	SetEnv(ctx context.Context, in *sliverpb.SetEnvReq, opts ...grpc.CallOption) (*sliverpb.SetEnv, error)
	UnsetEnv(ctx context.Context, in *sliverpb.UnsetEnvReq, opts ...grpc.CallOption) (*sliverpb.UnsetEnv, error)
	Backdoor(ctx context.Context, in *sliverpb.BackdoorReq, opts ...grpc.CallOption) (*sliverpb.Backdoor, error)
	RegistryRead(ctx context.Context, in *sliverpb.RegistryReadReq, opts ...grpc.CallOption) (*sliverpb.RegistryRead, error)
	RegistryWrite(ctx context.Context, in *sliverpb.RegistryWriteReq, opts ...grpc.CallOption) (*sliverpb.RegistryWrite, error)
	RegistryCreateKey(ctx context.Context, in *sliverpb.RegistryCreateKeyReq, opts ...grpc.CallOption) (*sliverpb.RegistryCreateKey, error)
	// *** Wireguard Specific ***
	WGStartPortForward(ctx context.Context, in *sliverpb.WGPortForwardStartReq, opts ...grpc.CallOption) (*sliverpb.WGPortForward, error)
	WGStopPortForward(ctx context.Context, in *sliverpb.WGPortForwardStopReq, opts ...grpc.CallOption) (*sliverpb.WGPortForward, error)
	WGStartSocks(ctx context.Context, in *sliverpb.WGSocksStartReq, opts ...grpc.CallOption) (*sliverpb.WGSocks, error)
	WGStopSocks(ctx context.Context, in *sliverpb.WGSocksStopReq, opts ...grpc.CallOption) (*sliverpb.WGSocks, error)
	WGListForwarders(ctx context.Context, in *sliverpb.WGTCPForwardersReq, opts ...grpc.CallOption) (*sliverpb.WGTCPForwarders, error)
	WGListSocksServers(ctx context.Context, in *sliverpb.WGSocksServersReq, opts ...grpc.CallOption) (*sliverpb.WGSocksServers, error)
	// *** Realtime Commands ***
	Shell(ctx context.Context, in *sliverpb.ShellReq, opts ...grpc.CallOption) (*sliverpb.Shell, error)
	Portfwd(ctx context.Context, in *sliverpb.PortfwdReq, opts ...grpc.CallOption) (*sliverpb.Portfwd, error)
	// *** Tunnels ***
	CreateTunnel(ctx context.Context, in *sliverpb.Tunnel, opts ...grpc.CallOption) (*sliverpb.Tunnel, error)
	CloseTunnel(ctx context.Context, in *sliverpb.Tunnel, opts ...grpc.CallOption) (*commonpb.Empty, error)
	TunnelData(ctx context.Context, opts ...grpc.CallOption) (SliverRPC_TunnelDataClient, error)
	// *** Events ***
	Events(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (SliverRPC_EventsClient, error)
}

SliverRPCClient is the client API for SliverRPC service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSliverRPCClient

func NewSliverRPCClient(cc grpc.ClientConnInterface) SliverRPCClient

type SliverRPCServer

type SliverRPCServer interface {
	// *** Version ***
	GetVersion(context.Context, *commonpb.Empty) (*clientpb.Version, error)
	// *** Operator Commands ***
	GetOperators(context.Context, *commonpb.Empty) (*clientpb.Operators, error)
	// *** Sessions ***
	GetSessions(context.Context, *commonpb.Empty) (*clientpb.Sessions, error)
	KillSession(context.Context, *sliverpb.KillSessionReq) (*commonpb.Empty, error)
	UpdateSession(context.Context, *clientpb.UpdateSession) (*clientpb.Session, error)
	// *** Jobs ***
	GetJobs(context.Context, *commonpb.Empty) (*clientpb.Jobs, error)
	KillJob(context.Context, *clientpb.KillJobReq) (*clientpb.KillJob, error)
	// *** Listeners ***
	StartMTLSListener(context.Context, *clientpb.MTLSListenerReq) (*clientpb.MTLSListener, error)
	StartWGListener(context.Context, *clientpb.WGListenerReq) (*clientpb.WGListener, error)
	StartDNSListener(context.Context, *clientpb.DNSListenerReq) (*clientpb.DNSListener, error)
	StartHTTPSListener(context.Context, *clientpb.HTTPListenerReq) (*clientpb.HTTPListener, error)
	StartHTTPListener(context.Context, *clientpb.HTTPListenerReq) (*clientpb.HTTPListener, error)
	// *** Stager Listener ***
	StartTCPStagerListener(context.Context, *clientpb.StagerListenerReq) (*clientpb.StagerListener, error)
	StartHTTPStagerListener(context.Context, *clientpb.StagerListenerReq) (*clientpb.StagerListener, error)
	// *** Implants ***
	Generate(context.Context, *clientpb.GenerateReq) (*clientpb.Generate, error)
	Regenerate(context.Context, *clientpb.RegenerateReq) (*clientpb.Generate, error)
	ImplantBuilds(context.Context, *commonpb.Empty) (*clientpb.ImplantBuilds, error)
	DeleteImplantBuild(context.Context, *clientpb.DeleteReq) (*commonpb.Empty, error)
	Canaries(context.Context, *commonpb.Empty) (*clientpb.Canaries, error)
	GenerateWGClientConfig(context.Context, *commonpb.Empty) (*clientpb.WGClientConfig, error)
	GenerateUniqueIP(context.Context, *commonpb.Empty) (*clientpb.UniqueWGIP, error)
	ImplantProfiles(context.Context, *commonpb.Empty) (*clientpb.ImplantProfiles, error)
	DeleteImplantProfile(context.Context, *clientpb.DeleteReq) (*commonpb.Empty, error)
	SaveImplantProfile(context.Context, *clientpb.ImplantProfile) (*clientpb.ImplantProfile, error)
	MsfStage(context.Context, *clientpb.MsfStagerReq) (*clientpb.MsfStager, error)
	ShellcodeRDI(context.Context, *clientpb.ShellcodeRDIReq) (*clientpb.ShellcodeRDI, error)
	// *** Websites ***
	Websites(context.Context, *commonpb.Empty) (*clientpb.Websites, error)
	Website(context.Context, *clientpb.Website) (*clientpb.Website, error)
	WebsiteRemove(context.Context, *clientpb.Website) (*commonpb.Empty, error)
	WebsiteAddContent(context.Context, *clientpb.WebsiteAddContent) (*clientpb.Website, error)
	WebsiteUpdateContent(context.Context, *clientpb.WebsiteAddContent) (*clientpb.Website, error)
	WebsiteRemoveContent(context.Context, *clientpb.WebsiteRemoveContent) (*clientpb.Website, error)
	// *** Session Interactions ***
	Ping(context.Context, *sliverpb.Ping) (*sliverpb.Ping, error)
	Ps(context.Context, *sliverpb.PsReq) (*sliverpb.Ps, error)
	Terminate(context.Context, *sliverpb.TerminateReq) (*sliverpb.Terminate, error)
	Ifconfig(context.Context, *sliverpb.IfconfigReq) (*sliverpb.Ifconfig, error)
	Netstat(context.Context, *sliverpb.NetstatReq) (*sliverpb.Netstat, error)
	Ls(context.Context, *sliverpb.LsReq) (*sliverpb.Ls, error)
	Cd(context.Context, *sliverpb.CdReq) (*sliverpb.Pwd, error)
	Pwd(context.Context, *sliverpb.PwdReq) (*sliverpb.Pwd, error)
	Rm(context.Context, *sliverpb.RmReq) (*sliverpb.Rm, error)
	Mkdir(context.Context, *sliverpb.MkdirReq) (*sliverpb.Mkdir, error)
	Download(context.Context, *sliverpb.DownloadReq) (*sliverpb.Download, error)
	Upload(context.Context, *sliverpb.UploadReq) (*sliverpb.Upload, error)
	ProcessDump(context.Context, *sliverpb.ProcessDumpReq) (*sliverpb.ProcessDump, error)
	RunAs(context.Context, *sliverpb.RunAsReq) (*sliverpb.RunAs, error)
	Impersonate(context.Context, *sliverpb.ImpersonateReq) (*sliverpb.Impersonate, error)
	RevToSelf(context.Context, *sliverpb.RevToSelfReq) (*sliverpb.RevToSelf, error)
	GetSystem(context.Context, *clientpb.GetSystemReq) (*sliverpb.GetSystem, error)
	Task(context.Context, *sliverpb.TaskReq) (*sliverpb.Task, error)
	Msf(context.Context, *clientpb.MSFReq) (*commonpb.Empty, error)
	MsfRemote(context.Context, *clientpb.MSFRemoteReq) (*commonpb.Empty, error)
	ExecuteAssembly(context.Context, *sliverpb.ExecuteAssemblyReq) (*sliverpb.ExecuteAssembly, error)
	Migrate(context.Context, *clientpb.MigrateReq) (*sliverpb.Migrate, error)
	Execute(context.Context, *sliverpb.ExecuteReq) (*sliverpb.Execute, error)
	ExecuteToken(context.Context, *sliverpb.ExecuteTokenReq) (*sliverpb.Execute, error)
	Sideload(context.Context, *sliverpb.SideloadReq) (*sliverpb.Sideload, error)
	SpawnDll(context.Context, *sliverpb.InvokeSpawnDllReq) (*sliverpb.SpawnDll, error)
	Screenshot(context.Context, *sliverpb.ScreenshotReq) (*sliverpb.Screenshot, error)
	NamedPipes(context.Context, *sliverpb.NamedPipesReq) (*sliverpb.NamedPipes, error)
	TCPListener(context.Context, *sliverpb.TCPPivotReq) (*sliverpb.TCPPivot, error)
	ListPivots(context.Context, *sliverpb.PivotListReq) (*sliverpb.PivotList, error)
	StartService(context.Context, *sliverpb.StartServiceReq) (*sliverpb.ServiceInfo, error)
	StopService(context.Context, *sliverpb.StopServiceReq) (*sliverpb.ServiceInfo, error)
	RemoveService(context.Context, *sliverpb.RemoveServiceReq) (*sliverpb.ServiceInfo, error)
	MakeToken(context.Context, *sliverpb.MakeTokenReq) (*sliverpb.MakeToken, error)
	GetEnv(context.Context, *sliverpb.EnvReq) (*sliverpb.EnvInfo, error)
	SetEnv(context.Context, *sliverpb.SetEnvReq) (*sliverpb.SetEnv, error)
	UnsetEnv(context.Context, *sliverpb.UnsetEnvReq) (*sliverpb.UnsetEnv, error)
	Backdoor(context.Context, *sliverpb.BackdoorReq) (*sliverpb.Backdoor, error)
	RegistryRead(context.Context, *sliverpb.RegistryReadReq) (*sliverpb.RegistryRead, error)
	RegistryWrite(context.Context, *sliverpb.RegistryWriteReq) (*sliverpb.RegistryWrite, error)
	RegistryCreateKey(context.Context, *sliverpb.RegistryCreateKeyReq) (*sliverpb.RegistryCreateKey, error)
	// *** Wireguard Specific ***
	WGStartPortForward(context.Context, *sliverpb.WGPortForwardStartReq) (*sliverpb.WGPortForward, error)
	WGStopPortForward(context.Context, *sliverpb.WGPortForwardStopReq) (*sliverpb.WGPortForward, error)
	WGStartSocks(context.Context, *sliverpb.WGSocksStartReq) (*sliverpb.WGSocks, error)
	WGStopSocks(context.Context, *sliverpb.WGSocksStopReq) (*sliverpb.WGSocks, error)
	WGListForwarders(context.Context, *sliverpb.WGTCPForwardersReq) (*sliverpb.WGTCPForwarders, error)
	WGListSocksServers(context.Context, *sliverpb.WGSocksServersReq) (*sliverpb.WGSocksServers, error)
	// *** Realtime Commands ***
	Shell(context.Context, *sliverpb.ShellReq) (*sliverpb.Shell, error)
	Portfwd(context.Context, *sliverpb.PortfwdReq) (*sliverpb.Portfwd, error)
	// *** Tunnels ***
	CreateTunnel(context.Context, *sliverpb.Tunnel) (*sliverpb.Tunnel, error)
	CloseTunnel(context.Context, *sliverpb.Tunnel) (*commonpb.Empty, error)
	TunnelData(SliverRPC_TunnelDataServer) error
	// *** Events ***
	Events(*commonpb.Empty, SliverRPC_EventsServer) error
	// contains filtered or unexported methods
}

SliverRPCServer is the server API for SliverRPC service. All implementations must embed UnimplementedSliverRPCServer for forward compatibility

type SliverRPC_EventsClient

type SliverRPC_EventsClient interface {
	Recv() (*clientpb.Event, error)
	grpc.ClientStream
}

type SliverRPC_EventsServer

type SliverRPC_EventsServer interface {
	Send(*clientpb.Event) error
	grpc.ServerStream
}

type SliverRPC_TunnelDataClient

type SliverRPC_TunnelDataClient interface {
	Send(*sliverpb.TunnelData) error
	Recv() (*sliverpb.TunnelData, error)
	grpc.ClientStream
}

type SliverRPC_TunnelDataServer

type SliverRPC_TunnelDataServer interface {
	Send(*sliverpb.TunnelData) error
	Recv() (*sliverpb.TunnelData, error)
	grpc.ServerStream
}

type UnimplementedSliverRPCServer

type UnimplementedSliverRPCServer struct {
}

UnimplementedSliverRPCServer must be embedded to have forward compatible implementations.

func (UnimplementedSliverRPCServer) Backdoor

func (UnimplementedSliverRPCServer) Canaries

func (UnimplementedSliverRPCServer) Cd

func (UnimplementedSliverRPCServer) CloseTunnel

func (UnimplementedSliverRPCServer) CreateTunnel

func (UnimplementedSliverRPCServer) DeleteImplantBuild

func (UnimplementedSliverRPCServer) DeleteImplantProfile

func (UnimplementedSliverRPCServer) Download

func (UnimplementedSliverRPCServer) Events

func (UnimplementedSliverRPCServer) Execute

func (UnimplementedSliverRPCServer) ExecuteAssembly

func (UnimplementedSliverRPCServer) ExecuteToken

func (UnimplementedSliverRPCServer) Generate

func (UnimplementedSliverRPCServer) GenerateUniqueIP

func (UnimplementedSliverRPCServer) GenerateWGClientConfig

func (UnimplementedSliverRPCServer) GetEnv

func (UnimplementedSliverRPCServer) GetJobs

func (UnimplementedSliverRPCServer) GetOperators

func (UnimplementedSliverRPCServer) GetSessions

func (UnimplementedSliverRPCServer) GetSystem

func (UnimplementedSliverRPCServer) GetVersion

func (UnimplementedSliverRPCServer) Ifconfig

func (UnimplementedSliverRPCServer) Impersonate

func (UnimplementedSliverRPCServer) ImplantBuilds

func (UnimplementedSliverRPCServer) ImplantProfiles

func (UnimplementedSliverRPCServer) KillJob

func (UnimplementedSliverRPCServer) KillSession

func (UnimplementedSliverRPCServer) ListPivots

func (UnimplementedSliverRPCServer) Ls

func (UnimplementedSliverRPCServer) MakeToken

func (UnimplementedSliverRPCServer) Migrate

func (UnimplementedSliverRPCServer) Mkdir

func (UnimplementedSliverRPCServer) Msf

func (UnimplementedSliverRPCServer) MsfRemote

func (UnimplementedSliverRPCServer) MsfStage

func (UnimplementedSliverRPCServer) NamedPipes

func (UnimplementedSliverRPCServer) Netstat

func (UnimplementedSliverRPCServer) Ping

func (UnimplementedSliverRPCServer) Portfwd

func (UnimplementedSliverRPCServer) ProcessDump

func (UnimplementedSliverRPCServer) Ps

func (UnimplementedSliverRPCServer) Pwd

func (UnimplementedSliverRPCServer) Regenerate

func (UnimplementedSliverRPCServer) RegistryRead

func (UnimplementedSliverRPCServer) RegistryWrite

func (UnimplementedSliverRPCServer) RemoveService

func (UnimplementedSliverRPCServer) RevToSelf

func (UnimplementedSliverRPCServer) Rm

func (UnimplementedSliverRPCServer) RunAs

func (UnimplementedSliverRPCServer) SaveImplantProfile

func (UnimplementedSliverRPCServer) Screenshot

func (UnimplementedSliverRPCServer) SetEnv

func (UnimplementedSliverRPCServer) Shell

func (UnimplementedSliverRPCServer) ShellcodeRDI

func (UnimplementedSliverRPCServer) Sideload

func (UnimplementedSliverRPCServer) SpawnDll

func (UnimplementedSliverRPCServer) StartDNSListener

func (UnimplementedSliverRPCServer) StartHTTPListener

func (UnimplementedSliverRPCServer) StartHTTPSListener

func (UnimplementedSliverRPCServer) StartHTTPStagerListener

func (UnimplementedSliverRPCServer) StartMTLSListener

func (UnimplementedSliverRPCServer) StartService

func (UnimplementedSliverRPCServer) StartTCPStagerListener

func (UnimplementedSliverRPCServer) StartWGListener

func (UnimplementedSliverRPCServer) StopService

func (UnimplementedSliverRPCServer) TCPListener

func (UnimplementedSliverRPCServer) Task

func (UnimplementedSliverRPCServer) Terminate

func (UnimplementedSliverRPCServer) TunnelData

func (UnimplementedSliverRPCServer) UnsetEnv added in v1.4.15

func (UnimplementedSliverRPCServer) UpdateSession

func (UnimplementedSliverRPCServer) Upload

func (UnimplementedSliverRPCServer) WGListForwarders

func (UnimplementedSliverRPCServer) WGListSocksServers

func (UnimplementedSliverRPCServer) WGStartPortForward

func (UnimplementedSliverRPCServer) WGStartSocks

func (UnimplementedSliverRPCServer) WGStopPortForward

func (UnimplementedSliverRPCServer) WGStopSocks

func (UnimplementedSliverRPCServer) Website

func (UnimplementedSliverRPCServer) WebsiteAddContent

func (UnimplementedSliverRPCServer) WebsiteRemove

func (UnimplementedSliverRPCServer) WebsiteRemoveContent

func (UnimplementedSliverRPCServer) WebsiteUpdateContent

func (UnimplementedSliverRPCServer) Websites

type UnsafeSliverRPCServer

type UnsafeSliverRPCServer interface {
	// contains filtered or unexported methods
}

UnsafeSliverRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SliverRPCServer will result in compilation errors.

Jump to

Keyboard shortcuts

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