Documentation ¶
Index ¶
- Variables
- func CmdExists(name string, cmd *cobra.Command) bool
- func Login(con *Console, config *mtls.ClientConfig) error
- func NewConfigLogin(con *Console, yamlFile string)
- func WrapImplantCallback(callback ImplantPluginCallback) intermediate.ImplantCallback
- func WrapImplantFunc(con *Console, fun interface{}, callback ImplantPluginCallback) *intermediate.InternalFunc
- func WrapServerFunc(con *Console, fun interface{}) *intermediate.InternalFunc
- type BindCmds
- type Console
- func (c *Console) Context() context.Context
- func (c *Console) GetPrompt() string
- func (c *Console) GetSession(sessionID string) *core.Session
- func (c *Console) ImplantMenu() *cobra.Command
- func (c *Console) NewConsole()
- func (c *Console) RefreshActiveSession()
- func (c *Console) RegisterImplantFunc(name string, fn interface{}, bname string, bfn interface{}, ...)
- func (c *Console) RegisterServerFunc(name string, fn interface{}) error
- func (c *Console) Start(bindCmds ...BindCmds) error
- func (c *Console) SwitchImplant(sess *core.Session)
- type ImplantPluginCallback
- type Plugin
- type Plugins
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFoundSession = errors.New("session not found") Prompt = "IOM" )
View Source
var (
ErrorAlreadyScriptName = errors.New("already exist script name")
)
Functions ¶
func NewConfigLogin ¶
func WrapImplantCallback ¶
func WrapImplantCallback(callback ImplantPluginCallback) intermediate.ImplantCallback
func WrapImplantFunc ¶
func WrapImplantFunc(con *Console, fun interface{}, callback ImplantPluginCallback) *intermediate.InternalFunc
func WrapServerFunc ¶
func WrapServerFunc(con *Console, fun interface{}) *intermediate.InternalFunc
Types ¶
type Console ¶
type Console struct { //*core.ActiveTarget *core.ServerStatus *Plugins Log *core.Logger App *console.Console Settings *assets.Settings }
func (*Console) ImplantMenu ¶
func (*Console) NewConsole ¶
func (c *Console) NewConsole()
func (*Console) RefreshActiveSession ¶
func (c *Console) RefreshActiveSession()
func (*Console) RegisterImplantFunc ¶
func (c *Console) RegisterImplantFunc(name string, fn interface{}, bname string, bfn interface{}, pluginCallback ImplantPluginCallback, implantCallback intermediate.ImplantCallback)
func (*Console) RegisterServerFunc ¶
func (*Console) SwitchImplant ¶
type ImplantPluginCallback ¶
type ImplantPluginCallback func(content *clientpb.TaskContext) (interface{}, error)
type Plugins ¶
func NewPlugins ¶
func NewPlugins() *Plugins
func (*Plugins) LoadLuaScript ¶
func (*Plugins) LoadPlugin ¶
Click to show internal directories.
Click to hide internal directories.