Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFactory ¶
RegisterFactory registers a named C2 backend factory. Called from init() in each backend package.
Types ¶
type Backend ¶
type Backend interface {
Name() string
Setup(lhost string, lport int) error
GeneratePayload(targetOS, payloadType string) (string, error)
WaitForSession(timeout time.Duration) error
Shutdown() error
}
Backend is the interface for C2 integrations (built-in shell, Sliver, etc.).
type ImplantGenerator ¶
ImplantGenerator is an optional interface for backends that can produce raw implant binaries. The runner uses this to feed CmdStager delivery instead of single-shot payload commands.
type PayloadMap ¶ added in v0.1.4
PayloadMap is a map of payload names to generator functions.
type SessionHandler ¶
type SessionHandler interface {
Sessions() []*session.Session
Interact(id int) error
Kill(id int) error
}
SessionHandler is an optional interface for backends that support multiple concurrent sessions.
type Stager ¶
Stager is an optional interface for backends that stage implants over HTTP. Returns the staging URL; the runner builds the fetch command via pkg/payload.