Versions in this module Expand all Collapse all v0 v0.0.1 Aug 21, 2024 Changes in this version + var ErrNotFoundSession = errors.New("session not found") + var ErrNotFoundTask = errors.New("task not found") + var Log = logs.NewLogger(LogLevel) + var LogLevel = logs.Warn + var MuteLog = logs.NewLogger(logs.Important) + var Prompt = "IOM" + func Start(bindCmds ...BindCmds) error + type ActiveTarget struct + func (s *ActiveTarget) Background() + func (s *ActiveTarget) Context() context.Context + func (s *ActiveTarget) Get() *clientpb.Session + func (s *ActiveTarget) GetInteractive() *clientpb.Session + func (s *ActiveTarget) Set(session *clientpb.Session) + type BindCmds func(console *Console) + type Client struct + type Console struct + ActiveTarget *ActiveTarget + App *grumble.App + Callbacks *sync.Map + Observers map[string]*Observer + Settings *assets.Settings + func (c *Console) AddAliasCommand(cmd *grumble.Command) + func (c *Console) AddExtensionCommand(cmd *grumble.Command) + func (c *Console) AddObserver(session *clientpb.Session) string + func (c *Console) DisableImplantCommands() + func (c *Console) EnableImplantCommands() + func (c *Console) GetInteractive() *clientpb.Session + func (c *Console) Login(config *mtls.ClientConfig) error + func (c *Console) RefreshActiveSession() + func (c *Console) RemoveObserver(observerID string) + func (c *Console) SessionLog(sid string) *logs.Logger + func (c *Console) UpdatePrompt() + type Listener struct + type Observer struct + func NewObserver(session *clientpb.Session) *Observer + func (o *Observer) Logger() *logs.Logger + func (o *Observer) SessionId() string + type ServerStatus struct + Alive bool + Callbacks *sync.Map + Clients []*Client + Info *clientpb.Basic + Listeners []*Listener + Rpc clientrpc.MaliceRPCClient + Sessions map[string]*clientpb.Session + func InitServerStatus(conn *grpc.ClientConn) (*ServerStatus, error) + func (s *ServerStatus) AddCallback(taskId uint32, callback TaskCallback) + func (s *ServerStatus) CancelCallback(taskId uint32) + func (s *ServerStatus) EventHandler() + func (s *ServerStatus) UpdateSession(sid string) error + func (s *ServerStatus) UpdateSessions(all bool) error + func (s *ServerStatus) UpdateTasks(session *clientpb.Session) error + type TaskCallback func(resp proto.Message)