Documentation
¶
Index ¶
- func Run() error
- func RunWith(mod sdk.Exploit) error
- type ClearOutputMsg
- type Console
- func (c *Console) ApplyFuzzyResult(context, selected string)
- func (c *Console) BuildPrompt() string
- func (c *Console) Exec(line string) bool
- func (c *Console) Mod() sdk.Exploit
- func (c *Console) OptionNames() []string
- func (c *Console) Options() []Option
- func (c *Console) Program() MsgSender
- func (c *Console) SendClear()
- func (c *Console) SessionHandler() c2.SessionHandler
- func (c *Console) SetMod(mod sdk.Exploit)
- func (c *Console) SetOpt(name, value string) bool
- func (c *Console) SetProgram(p MsgSender)
- func (c *Console) ShutdownBackend()
- func (c *Console) UseByName(name string)
- type FuzzyItem
- type FuzzySelectMsg
- type MsgSender
- type Option
- type SessionInteractMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClearOutputMsg ¶ added in v0.3.0
type ClearOutputMsg = types.ClearOutputMsg
Shared message type aliases (from pkg/types to break import cycles).
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console holds the state for the interactive REPL.
func (*Console) ApplyFuzzyResult ¶ added in v0.3.0
ApplyFuzzyResult handles the result of a fuzzy selection.
func (*Console) BuildPrompt ¶ added in v0.3.0
BuildPrompt returns the styled prompt string.
func (*Console) Exec ¶ added in v0.3.0
Exec runs a console command line. Returns true if the console should exit.
func (*Console) OptionNames ¶ added in v0.3.0
OptionNames returns option names for completion.
func (*Console) SendClear ¶ added in v0.3.0
func (c *Console) SendClear()
SendClear sends a clear message to the TUI.
func (*Console) SessionHandler ¶ added in v0.3.0
func (c *Console) SessionHandler() c2.SessionHandler
SessionHandler returns the C2 session handler, or nil.
func (*Console) SetProgram ¶ added in v0.3.0
SetProgram sets the message sender (TUI program) for async communication.
func (*Console) ShutdownBackend ¶ added in v0.3.0
func (c *Console) ShutdownBackend()
ShutdownBackend shuts down the C2 backend.
type FuzzySelectMsg ¶ added in v0.3.0
type FuzzySelectMsg = types.FuzzySelectMsg
type MsgSender ¶ added in v0.3.0
type MsgSender interface {
Send(msg any)
}
MsgSender is an interface for sending messages to the TUI program. Avoids importing bubbletea in console package.
type SessionInteractMsg ¶ added in v0.3.0
type SessionInteractMsg = types.SessionInteractMsg