Documentation ¶
Index ¶
- Variables
- func AdaptSessionColor(prePrompt, sId string) string
- func CmdExist(cmd *cobra.Command, name string) bool
- func Connect(con *Console, config *mtls.ClientConfig) (*grpc.ClientConn, error)
- func GetCmd(cmd *cobra.Command, name string) *cobra.Command
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func Login(con *Console, config *mtls.ClientConfig) error
- func NewConfigLogin(con *Console, yamlFile string) error
- func NewSessionColor(prePrompt, sId string) string
- func WrapClientCallback(callback ImplantFuncCallback) intermediate.ImplantCallback
- func WrapImplantFunc(con *Console, fun interface{}, callback ImplantFuncCallback) *intermediate.InternalFunc
- func WrapServerFunc(con *Console, fun interface{}) *intermediate.InternalFunc
- type BindCmds
- type Console
- func (c *Console) AddInternalFuncHelper(cmdName string, funcName string, example string, input, output []string) error
- 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) RegisterBuiltinFunc(pkg, name string, fn interface{}, callback ImplantFuncCallback) error
- func (c *Console) RegisterImplantFunc(name string, fn interface{}, bname string, bfn interface{}, ...)
- func (c *Console) RegisterServerFunc(name string, fn interface{}, helper *intermediate.Helper) error
- func (c *Console) Start(bindCmds ...BindCmds) error
- func (c *Console) SwitchImplant(sess *core.Session)
- type ImplantFuncCallback
- 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 AdaptSessionColor ¶ added in v0.0.3
func Connect ¶ added in v0.0.3
func Connect(con *Console, config *mtls.ClientConfig) (*grpc.ClientConn, error)
func Keys ¶ added in v0.0.3
func Keys[M ~map[K]V, K comparable, V any](m M) []K
From the x/exp source code - gets a slice of keys for a map
func NewConfigLogin ¶
func NewSessionColor ¶ added in v0.0.3
func WrapClientCallback ¶ added in v0.0.3
func WrapClientCallback(callback ImplantFuncCallback) intermediate.ImplantCallback
func WrapImplantFunc ¶
func WrapImplantFunc(con *Console, fun interface{}, callback ImplantFuncCallback) *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 Profile *assets.Profile CMDs map[string]*cobra.Command }
func (*Console) AddInternalFuncHelper ¶ added in v0.0.3
func (*Console) ImplantMenu ¶
func (*Console) NewConsole ¶
func (c *Console) NewConsole()
func (*Console) RefreshActiveSession ¶
func (c *Console) RefreshActiveSession()
func (*Console) RegisterBuiltinFunc ¶ added in v0.0.3
func (c *Console) RegisterBuiltinFunc(pkg, name string, fn interface{}, callback ImplantFuncCallback) error
func (*Console) RegisterImplantFunc ¶
func (c *Console) RegisterImplantFunc(name string, fn interface{}, bname string, bfn interface{}, internalCallback ImplantFuncCallback, callback intermediate.ImplantCallback)
func (*Console) RegisterServerFunc ¶
func (c *Console) RegisterServerFunc(name string, fn interface{}, helper *intermediate.Helper) error
func (*Console) SwitchImplant ¶
type ImplantFuncCallback ¶ added in v0.0.3
type ImplantFuncCallback func(content *clientpb.TaskContext) (interface{}, error)
ImplantFuncCallback, function internal callback func, retrun golang struct
Click to show internal directories.
Click to hide internal directories.