Documentation ¶
Index ¶
- Constants
- func Start(rpc rpcpb.SliverRPCClient, bindCmds BindCmds, extraCmds BindCmds, ...) error
- type ActiveSession
- func (s *ActiveSession) AddObserver(observer Observer) int
- func (s *ActiveSession) Background()
- func (s *ActiveSession) Get() *clientpb.Session
- func (s *ActiveSession) GetInteractive() *clientpb.Session
- func (s *ActiveSession) RemoveObserver(observerID int)
- func (s *ActiveSession) Request(ctx *grumble.Context) *commonpb.Request
- func (s *ActiveSession) Set(session *clientpb.Session)
- type BindCmds
- type Observer
- type SliverConsoleClient
- func (con *SliverConsoleClient) CheckLastUpdate()
- func (con *SliverConsoleClient) EventLoop()
- func (con *SliverConsoleClient) GetActiveSessionConfig() *clientpb.ImplantConfig
- func (con *SliverConsoleClient) GetPrompt() string
- func (con *SliverConsoleClient) GetSession(arg string) *clientpb.Session
- func (con *SliverConsoleClient) GetSessionsByName(name string) []*clientpb.Session
- func (con *SliverConsoleClient) IsUserAnAdult() bool
- func (con *SliverConsoleClient) PrintErrorf(format string, args ...interface{}) (n int, err error)
- func (con *SliverConsoleClient) PrintInfof(format string, args ...interface{}) (n int, err error)
- func (con *SliverConsoleClient) PrintLogo()
- func (con *SliverConsoleClient) PrintWarnf(format string, args ...interface{}) (n int, err error)
- func (con *SliverConsoleClient) Printf(format string, args ...interface{}) (n int, err error)
- func (con *SliverConsoleClient) Println(args ...interface{}) (n int, err error)
- func (con *SliverConsoleClient) SpinUntil(message string, ctrl chan bool)
Constants ¶
View Source
const ( // ANSI Colors Normal = "\033[0m" Black = "\033[30m" Red = "\033[31m" Green = "\033[32m" Orange = "\033[33m" Blue = "\033[34m" Purple = "\033[35m" Cyan = "\033[36m" Gray = "\033[37m" Bold = "\033[1m" Clearln = "\r\x1b[2K" UpN = "\033[%dA" DownN = "\033[%dB" Underline = "\033[4m" // Info - Display colorful information Info = Bold + Cyan + "[*] " + Normal // Warn - Warn a user Warn = Bold + Red + "[!] " + Normal // Debug - Display debug information Debug = Bold + Purple + "[-] " + Normal // Woot - Display success Woot = Bold + Green + "[$] " + Normal )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActiveSession ¶ added in v1.4.18
func (*ActiveSession) AddObserver ¶ added in v1.4.18
func (s *ActiveSession) AddObserver(observer Observer) int
AddObserver - Observers to notify when the active session changes
func (*ActiveSession) Background ¶ added in v1.4.18
func (s *ActiveSession) Background()
Background - Background the active session
func (*ActiveSession) Get ¶ added in v1.4.18
func (s *ActiveSession) Get() *clientpb.Session
Get - Same as Get() but doesn't print a warning
func (*ActiveSession) GetInteractive ¶ added in v1.4.18
func (s *ActiveSession) GetInteractive() *clientpb.Session
GetInteractive - GetInteractive the active session
func (*ActiveSession) RemoveObserver ¶ added in v1.4.18
func (s *ActiveSession) RemoveObserver(observerID int)
func (*ActiveSession) Request ¶ added in v1.4.18
func (s *ActiveSession) Request(ctx *grumble.Context) *commonpb.Request
func (*ActiveSession) Set ¶ added in v1.4.18
func (s *ActiveSession) Set(session *clientpb.Session)
Set - Change the active session
type BindCmds ¶ added in v1.4.18
type BindCmds func(console *SliverConsoleClient)
BindCmds - Bind extra commands to the app object
type SliverConsoleClient ¶ added in v1.4.18
type SliverConsoleClient struct { App *grumble.App Rpc rpcpb.SliverRPCClient ActiveSession *ActiveSession IsServer bool }
func (*SliverConsoleClient) CheckLastUpdate ¶ added in v1.4.18
func (con *SliverConsoleClient) CheckLastUpdate()
func (*SliverConsoleClient) EventLoop ¶ added in v1.4.18
func (con *SliverConsoleClient) EventLoop()
func (*SliverConsoleClient) GetActiveSessionConfig ¶ added in v1.4.19
func (con *SliverConsoleClient) GetActiveSessionConfig() *clientpb.ImplantConfig
GetActiveSessionConfig - Get the active sessions's config
func (*SliverConsoleClient) GetPrompt ¶ added in v1.4.18
func (con *SliverConsoleClient) GetPrompt() string
func (*SliverConsoleClient) GetSession ¶ added in v1.4.18
func (con *SliverConsoleClient) GetSession(arg string) *clientpb.Session
GetSession - Get session by session ID or name
func (*SliverConsoleClient) GetSessionsByName ¶ added in v1.4.18
func (con *SliverConsoleClient) GetSessionsByName(name string) []*clientpb.Session
GetSessionsByName - Return all sessions for an Implant by name
func (*SliverConsoleClient) IsUserAnAdult ¶ added in v1.4.18
func (con *SliverConsoleClient) IsUserAnAdult() bool
This should be called for any dangerous (OPSEC-wise) functions
func (*SliverConsoleClient) PrintErrorf ¶ added in v1.4.18
func (con *SliverConsoleClient) PrintErrorf(format string, args ...interface{}) (n int, err error)
func (*SliverConsoleClient) PrintInfof ¶ added in v1.4.18
func (con *SliverConsoleClient) PrintInfof(format string, args ...interface{}) (n int, err error)
func (*SliverConsoleClient) PrintLogo ¶ added in v1.4.18
func (con *SliverConsoleClient) PrintLogo()
func (*SliverConsoleClient) PrintWarnf ¶ added in v1.4.18
func (con *SliverConsoleClient) PrintWarnf(format string, args ...interface{}) (n int, err error)
func (*SliverConsoleClient) Printf ¶ added in v1.4.18
func (con *SliverConsoleClient) Printf(format string, args ...interface{}) (n int, err error)
func (*SliverConsoleClient) Println ¶ added in v1.4.18
func (con *SliverConsoleClient) Println(args ...interface{}) (n int, err error)
func (*SliverConsoleClient) SpinUntil ¶ added in v1.4.18
func (con *SliverConsoleClient) SpinUntil(message string, ctrl chan bool)
Click to show internal directories.
Click to hide internal directories.