Documentation ¶
Index ¶
- Constants
- func InitLogs(debug bool)
- func StartClientListener(address string) (*grpc.Server, net.Listener, error)
- type GenericRequest
- func (r *GenericRequest) HandlerResponse(ch chan *implantpb.Spite, typ types.MsgName, ...)
- func (r *GenericRequest) InitSpite(ctx context.Context) (*implantpb.Spite, error)
- func (r *GenericRequest) NewSpite(msg proto.Message) (*implantpb.Spite, error)
- func (r *GenericRequest) SetCallback(callback func())
- type Server
- func (rpc *Server) AddClient(ctx context.Context, req *rootpb.Operator) (*rootpb.Response, error)
- func (rpc *Server) AddListener(ctx context.Context, req *rootpb.Operator) (*rootpb.Response, error)
- func (rpc *Server) Broadcast(ctx context.Context, req *clientpb.Event) (*clientpb.Empty, error)
- func (rpc *Server) Build(ctx context.Context, req *clientpb.Generate) (*clientpb.Builder, error)
- func (rpc *Server) Bypass(ctx context.Context, req *implantpb.BypassRequest) (*clientpb.Task, error)
- func (rpc *Server) CancelTask(ctx context.Context, req *implantpb.ImplantTask) (*clientpb.Task, error)
- func (rpc *Server) Cat(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Cd(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Checkin(ctx context.Context, req *implantpb.Ping) (*clientpb.Empty, error)
- func (rpc *Server) Chmod(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Chown(ctx context.Context, req *implantpb.ChownRequest) (*clientpb.Task, error)
- func (rpc *Server) Clear(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Cp(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Curl(ctx context.Context, req *implantpb.CurlRequest) (*clientpb.Task, error)
- func (rpc *Server) DLL2Shellcode(ctx context.Context, req *clientpb.DLL2Shellcode) (*clientpb.Bin, error)
- func (rpc *Server) Download(ctx context.Context, req *implantpb.DownloadRequest) (*clientpb.Task, error)
- func (rpc *Server) DownloadArtifact(ctx context.Context, req *clientpb.Builder) (*clientpb.Builder, error)
- func (rpc *Server) EXE2Shellcode(ctx context.Context, req *clientpb.EXE2Shellcode) (*clientpb.Bin, error)
- func (rpc *Server) Env(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Events(_ *clientpb.Empty, stream clientrpc.MaliceRPC_EventsServer) error
- func (rpc *Server) Execute(ctx context.Context, req *implantpb.ExecRequest) (*clientpb.Task, error)
- func (rpc *Server) ExecuteAddon(ctx context.Context, req *implantpb.ExecuteAddon) (*clientpb.Task, error)
- func (rpc *Server) ExecuteArmory(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteAssembly(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteBof(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteDll(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteEXE(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteLocal(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecutePowerpick(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) ExecuteShellcode(ctx context.Context, req *implantpb.ExecuteBinary) (*clientpb.Task, error)
- func (rpc *Server) GenericHandler(ctx context.Context, req *GenericRequest) (chan *implantpb.Spite, error)
- func (rpc *Server) GetAllTaskContent(ctx context.Context, req *clientpb.Task) (*clientpb.TaskContexts, error)
- func (rpc *Server) GetArtifact(ctx context.Context, req *clientpb.Builder) (*clientpb.Builder, error)
- func (rpc *Server) GetBasic(ctx context.Context, _ *clientpb.Empty) (*clientpb.Basic, error)
- func (rpc *Server) GetClients(ctx context.Context, req *clientpb.Empty) (*clientpb.Clients, error)
- func (rpc *Server) GetListeners(ctx context.Context, req *clientpb.Empty) (*clientpb.Listeners, error)
- func (rpc *Server) GetProfiles(ctx context.Context, req *clientpb.Empty) (*clientpb.Profiles, error)
- func (rpc *Server) GetSession(ctx context.Context, req *clientpb.SessionRequest) (*clientpb.Session, error)
- func (rpc *Server) GetSessionHistory(ctx context.Context, req *clientpb.SessionLog) (*clientpb.TasksContext, error)
- func (rpc *Server) GetSessions(ctx context.Context, req *clientpb.SessionRequest) (*clientpb.Sessions, error)
- func (rpc *Server) GetSystem(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) GetTaskContent(ctx context.Context, req *clientpb.Task) (*clientpb.TaskContext, error)
- func (rpc *Server) GetTaskFiles(ctx context.Context, req *clientpb.Session) (*clientpb.Files, error)
- func (rpc *Server) GetTasks(ctx context.Context, req *clientpb.TaskRequest) (*clientpb.Tasks, error)
- func (rpc *Server) Info(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) InitBindSession(ctx context.Context, req *implantpb.Request) (*clientpb.Empty, error)
- func (rpc *Server) JobStream(stream listenerrpc.ListenerRPC_JobStreamServer) error
- func (rpc *Server) Kill(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) ListAddon(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) ListArtifact(ctx context.Context, req *clientpb.Empty) (*clientpb.Builders, error)
- func (rpc *Server) ListClients(ctx context.Context, req *rootpb.Operator) (*clientpb.Clients, error)
- func (rpc *Server) ListJobs(ctx context.Context, req *clientpb.Empty) (*clientpb.Pipelines, error)
- func (rpc *Server) ListListeners(ctx context.Context, req *rootpb.Operator) (*clientpb.Listeners, error)
- func (rpc *Server) ListModule(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) ListPipelines(ctx context.Context, req *clientpb.Listener) (*clientpb.Pipelines, error)
- func (rpc *Server) ListWebsites(ctx context.Context, req *clientpb.Listener) (*clientpb.Pipelines, error)
- func (rpc *Server) LoadAddon(ctx context.Context, req *implantpb.LoadAddon) (*clientpb.Task, error)
- func (rpc *Server) LoadModule(ctx context.Context, req *implantpb.LoadModule) (*clientpb.Task, error)
- func (rpc *Server) LoginClient(ctx context.Context, req *clientpb.LoginReq) (*clientpb.Client, error)
- func (rpc *Server) Ls(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) MaleficSRDI(ctx context.Context, req *clientpb.Builder) (*clientpb.Builder, error)
- func (rpc *Server) Mkdir(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Mv(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Netstat(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) NewProfile(ctx context.Context, req *clientpb.Profile) (*clientpb.Empty, error)
- func (rpc *Server) Notify(ctx context.Context, req *clientpb.Event) (*clientpb.Empty, error)
- func (rpc *Server) Ping(ctx context.Context, req *implantpb.Ping) (*clientpb.Task, error)
- func (rpc *Server) PipeClose(ctx context.Context, req *implantpb.PipeRequest) (*clientpb.Task, error)
- func (rpc *Server) PipeRead(ctx context.Context, req *implantpb.PipeRequest) (*clientpb.Task, error)
- func (rpc *Server) PipeUpload(ctx context.Context, pipe *implantpb.PipeRequest) (*clientpb.Task, error)
- func (rpc *Server) Polling(ctx context.Context, req *clientpb.Polling) (*clientpb.Empty, error)
- func (rpc *Server) Privs(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Ps(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Pwd(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) RefreshModule(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) RegAdd(ctx context.Context, req *implantpb.RegistryWriteRequest) (*clientpb.Task, error)
- func (rpc *Server) RegDelete(ctx context.Context, req *implantpb.RegistryRequest) (*clientpb.Task, error)
- func (rpc *Server) RegListKey(ctx context.Context, req *implantpb.RegistryRequest) (*clientpb.Task, error)
- func (rpc *Server) RegListValue(ctx context.Context, req *implantpb.RegistryRequest) (*clientpb.Task, error)
- func (rpc *Server) RegQuery(ctx context.Context, req *implantpb.RegistryRequest) (*clientpb.Task, error)
- func (rpc *Server) Register(ctx context.Context, req *clientpb.RegisterSession) (*clientpb.Empty, error)
- func (rpc *Server) RegisterListener(ctx context.Context, req *clientpb.RegisterListener) (*clientpb.Empty, error)
- func (rpc *Server) RegisterPipeline(ctx context.Context, req *clientpb.Pipeline) (*clientpb.Empty, error)
- func (rpc *Server) RegisterWebsite(ctx context.Context, req *clientpb.Pipeline) (*clientpb.WebsiteResponse, error)
- func (rpc *Server) RemoveClient(ctx context.Context, req *rootpb.Operator) (*rootpb.Response, error)
- func (rpc *Server) RemoveListener(ctx context.Context, req *rootpb.Operator) (*rootpb.Response, error)
- func (rpc *Server) Rm(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Runas(ctx context.Context, req *implantpb.RunAsRequest) (*clientpb.Task, error)
- func (rpc *Server) ServiceCreate(ctx context.Context, req *implantpb.ServiceRequest) (*clientpb.Task, error)
- func (rpc *Server) ServiceDelete(ctx context.Context, req *implantpb.ServiceRequest) (*clientpb.Task, error)
- func (rpc *Server) ServiceList(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) ServiceQuery(ctx context.Context, req *implantpb.ServiceRequest) (*clientpb.Task, error)
- func (rpc *Server) ServiceStart(ctx context.Context, req *implantpb.ServiceRequest) (*clientpb.Task, error)
- func (rpc *Server) ServiceStop(ctx context.Context, req *implantpb.ServiceRequest) (*clientpb.Task, error)
- func (rpc *Server) SessionEvent(ctx context.Context, req *clientpb.Event) (*clientpb.Empty, error)
- func (rpc *Server) SessionManage(ctx context.Context, req *clientpb.BasicUpdateSession) (*clientpb.Empty, error)
- func (rpc *Server) SetEnv(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) ShellcodeEncode(ctx context.Context, req *clientpb.ShellcodeEncode) (*clientpb.Bin, error)
- func (rpc *Server) Sleep(ctx context.Context, req *implantpb.Timer) (*clientpb.Task, error)
- func (rpc *Server) SpiteStream(stream listenerrpc.ListenerRPC_SpiteStreamServer) error
- func (rpc *Server) StartPipeline(ctx context.Context, req *clientpb.CtrlPipeline) (*clientpb.Empty, error)
- func (rpc *Server) StartWebsite(ctx context.Context, req *clientpb.CtrlPipeline) (*clientpb.Empty, error)
- func (rpc *Server) StopPipeline(ctx context.Context, req *clientpb.CtrlPipeline) (*clientpb.Empty, error)
- func (rpc *Server) StopWebsite(ctx context.Context, req *clientpb.CtrlPipeline) (*clientpb.Empty, error)
- func (rpc *Server) StreamGenericHandler(ctx context.Context, req *GenericRequest) (chan *implantpb.Spite, chan *implantpb.Spite, error)
- func (rpc *Server) Suicide(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Sync(ctx context.Context, req *clientpb.Sync) (*clientpb.SyncResp, error)
- func (rpc *Server) SysInfo(ctx context.Context, req *implantpb.SysInfo) (*clientpb.Empty, error)
- func (rpc *Server) TaskSchdCreate(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdDelete(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdList(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdQuery(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdRun(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdStart(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) TaskSchdStop(ctx context.Context, req *implantpb.TaskScheduleRequest) (*clientpb.Task, error)
- func (rpc *Server) UnsetEnv(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) Upload(ctx context.Context, req *implantpb.UploadRequest) (*clientpb.Task, error)
- func (rpc *Server) UploadArtifact(ctx context.Context, req *clientpb.Builder) (*clientpb.Builder, error)
- func (rpc *Server) UploadWebsite(ctx context.Context, req *clientpb.Website) (*clientpb.Empty, error)
- func (rpc *Server) WaitTaskContent(ctx context.Context, req *clientpb.Task) (*clientpb.TaskContext, error)
- func (rpc *Server) WaitTaskFinish(ctx context.Context, req *clientpb.Task) (*clientpb.TaskContext, error)
- func (rpc *Server) Website(ctx context.Context, req *clientpb.Website) (*clientpb.Website, error)
- func (rpc *Server) WebsiteAddContent(ctx context.Context, req *clientpb.WebsiteAddContent) (*clientpb.Website, error)
- func (rpc *Server) WebsiteRemove(ctx context.Context, req *clientpb.Website) (*clientpb.Empty, error)
- func (rpc *Server) WebsiteRemoveContent(ctx context.Context, req *clientpb.WebsiteRemoveContent) (*clientpb.Website, error)
- func (rpc *Server) WebsiteUpdateContent(ctx context.Context, req *clientpb.WebsiteAddContent) (*clientpb.Website, error)
- func (rpc *Server) Websites(ctx context.Context, _ *clientpb.Empty) (*clientpb.Websites, error)
- func (rpc *Server) Whoami(ctx context.Context, req *implantpb.Request) (*clientpb.Task, error)
- func (rpc *Server) WmiExecute(ctx context.Context, req *implantpb.WmiMethodRequest) (*clientpb.Task, error)
- func (rpc *Server) WmiQuery(ctx context.Context, req *implantpb.WmiQueryRequest) (*clientpb.Task, error)
Constants ¶
View Source
const ( Transport contextKey = iota Operator )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericRequest ¶
type GenericRequest struct { proto.Message Task *core.Task Count int Session *core.Session Callee string }
func (*GenericRequest) HandlerResponse ¶ added in v0.0.2
func (*GenericRequest) SetCallback ¶
func (r *GenericRequest) SetCallback(callback func())
type Server ¶
type Server struct { // Magical methods to break backwards compatibility // Here be dragons: https://github.com/grpc/grpc-go/issues/3794 clientrpc.UnimplementedMaliceRPCServer listenerrpc.UnimplementedListenerRPCServer clientrpc.UnimplementedRootRPCServer }
func (*Server) AddListener ¶
func (*Server) CancelTask ¶ added in v0.0.2
func (*Server) DLL2Shellcode ¶ added in v0.0.3
func (*Server) Download ¶
func (rpc *Server) Download(ctx context.Context, req *implantpb.DownloadRequest) (*clientpb.Task, error)
Download - Download a file from implant
func (*Server) DownloadArtifact ¶ added in v0.0.3
func (*Server) EXE2Shellcode ¶ added in v0.0.3
func (*Server) ExecuteAddon ¶ added in v0.0.2
func (*Server) ExecuteArmory ¶ added in v0.0.2
func (*Server) ExecuteAssembly ¶
func (*Server) ExecuteBof ¶
func (*Server) ExecuteDll ¶
func (*Server) ExecuteEXE ¶ added in v0.0.2
func (*Server) ExecuteLocal ¶ added in v0.0.3
func (*Server) ExecutePowerpick ¶ added in v0.0.3
func (*Server) ExecuteShellcode ¶
func (*Server) GenericHandler ¶ added in v0.0.2
func (*Server) GetAllTaskContent ¶
func (*Server) GetArtifact ¶ added in v0.0.3
func (rpc *Server) GetArtifact(ctx context.Context, req *clientpb.Builder) (*clientpb.Builder, error)
for listener
func (*Server) GetClients ¶
func (*Server) GetListeners ¶
func (*Server) GetProfiles ¶ added in v0.0.3
func (*Server) GetSession ¶
func (*Server) GetSessionHistory ¶ added in v0.0.3
func (rpc *Server) GetSessionHistory(ctx context.Context, req *clientpb.SessionLog) (*clientpb.TasksContext, error)
func (*Server) GetSessions ¶
func (*Server) GetTaskContent ¶
func (*Server) GetTaskFiles ¶ added in v0.0.2
func (*Server) InitBindSession ¶ added in v0.0.3
func (*Server) JobStream ¶
func (rpc *Server) JobStream(stream listenerrpc.ListenerRPC_JobStreamServer) error
func (*Server) ListArtifact ¶ added in v0.0.3
func (*Server) ListClients ¶
func (*Server) ListListeners ¶
func (*Server) ListModule ¶ added in v0.0.2
func (*Server) ListPipelines ¶
func (*Server) ListWebsites ¶
func (*Server) LoadModule ¶
func (*Server) LoginClient ¶
func (*Server) MaleficSRDI ¶ added in v0.0.3
func (*Server) NewProfile ¶ added in v0.0.3
func (*Server) PipeUpload ¶ added in v0.0.3
func (*Server) RefreshModule ¶ added in v0.0.2
func (*Server) RegListKey ¶ added in v0.0.3
func (*Server) RegListValue ¶ added in v0.0.3
func (*Server) RegisterListener ¶
func (*Server) RegisterPipeline ¶
func (*Server) RegisterWebsite ¶
func (*Server) RemoveClient ¶
func (*Server) RemoveListener ¶
func (*Server) ServiceCreate ¶ added in v0.0.3
func (*Server) ServiceDelete ¶ added in v0.0.3
func (*Server) ServiceList ¶ added in v0.0.3
func (*Server) ServiceQuery ¶ added in v0.0.3
func (*Server) ServiceStart ¶ added in v0.0.3
func (*Server) ServiceStop ¶ added in v0.0.3
func (*Server) SessionEvent ¶ added in v0.0.2
func (*Server) SessionManage ¶ added in v0.0.3
func (*Server) ShellcodeEncode ¶ added in v0.0.3
func (*Server) SpiteStream ¶
func (rpc *Server) SpiteStream(stream listenerrpc.ListenerRPC_SpiteStreamServer) error
func (*Server) StartPipeline ¶ added in v0.0.3
func (*Server) StartWebsite ¶
func (*Server) StopPipeline ¶ added in v0.0.3
func (*Server) StopWebsite ¶
func (*Server) StreamGenericHandler ¶ added in v0.0.2
func (rpc *Server) StreamGenericHandler(ctx context.Context, req *GenericRequest) (chan *implantpb.Spite, chan *implantpb.Spite, error)
StreamGenericHandler - Generic handler for async request/response's for beacon tasks
func (*Server) TaskSchdCreate ¶ added in v0.0.3
func (*Server) TaskSchdDelete ¶ added in v0.0.3
func (*Server) TaskSchdList ¶ added in v0.0.3
func (*Server) TaskSchdQuery ¶ added in v0.0.3
func (*Server) TaskSchdRun ¶ added in v0.0.3
func (*Server) TaskSchdStart ¶ added in v0.0.3
func (*Server) TaskSchdStop ¶ added in v0.0.3
func (*Server) Upload ¶
func (rpc *Server) Upload(ctx context.Context, req *implantpb.UploadRequest) (*clientpb.Task, error)
Upload - Upload a file from the remote file system
func (*Server) UploadArtifact ¶ added in v0.0.3
func (*Server) UploadWebsite ¶ added in v0.0.2
func (*Server) WaitTaskContent ¶
func (*Server) WaitTaskFinish ¶ added in v0.0.2
func (*Server) WebsiteAddContent ¶
func (rpc *Server) WebsiteAddContent(ctx context.Context, req *clientpb.WebsiteAddContent) (*clientpb.Website, error)
WebsiteAddContent - Add content to a website, the website is created if `name` does not exist
func (*Server) WebsiteRemove ¶
func (*Server) WebsiteRemoveContent ¶
func (rpc *Server) WebsiteRemoveContent(ctx context.Context, req *clientpb.WebsiteRemoveContent) (*clientpb.Website, error)
WebsiteRemoveContent - Remove specific content from a website
func (*Server) WebsiteUpdateContent ¶
func (rpc *Server) WebsiteUpdateContent(ctx context.Context, req *clientpb.WebsiteAddContent) (*clientpb.Website, error)
WebsiteUpdateContent - Update specific content from a website, currently you can only the update Content-type field
func (*Server) WmiExecute ¶ added in v0.0.3
Source Files ¶
- generic.go
- grpc.go
- middleware.go
- rpc-addon.go
- rpc-build.go
- rpc-client.go
- rpc-events.go
- rpc-execute.go
- rpc-file.go
- rpc-filesystem.go
- rpc-implant.go
- rpc-listener.go
- rpc-module.go
- rpc-net.go
- rpc-pipe.go
- rpc-pipeline.go
- rpc-privilege.go
- rpc-process.go
- rpc-profile.go
- rpc-registry.go
- rpc-root.go
- rpc-service.go
- rpc-session.go
- rpc-shellcode.go
- rpc-task.go
- rpc-taskschd.go
- rpc-website.go
- rpc-wmi.go
Click to show internal directories.
Click to hide internal directories.