Documentation
¶
Index ¶
- func Connect(cfg *OperatorConfig) (rpcpb.SliverRPCClient, *grpc.ClientConn, error)
- type Backend
- func (b *Backend) GenerateImplant(targetOS, arch string) ([]byte, error)
- func (b *Backend) GeneratePayload(targetOS, arch string) (string, error)
- func (b *Backend) Name() string
- func (b *Backend) Setup(lhost string, lport int) error
- func (b *Backend) Shutdown() error
- func (b *Backend) StageImplant(targetOS, arch string) (string, error)
- func (b *Backend) TCPStageImplant(targetOS, arch string) ([]byte, error)
- func (b *Backend) WaitForSession(timeout time.Duration) error
- type OperatorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(cfg *OperatorConfig) (rpcpb.SliverRPCClient, *grpc.ClientConn, error)
Connect establishes a gRPC connection to a Sliver teamserver using mTLS.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements c2.Backend for Sliver C2 integration.
func (*Backend) GenerateImplant ¶
GenerateImplant generates a raw Sliver implant binary. Used by the runner for CmdStager delivery (chunked printf/bourne).
func (*Backend) GeneratePayload ¶
GeneratePayload generates a Sliver implant, stages it, and returns a curl download-and-execute command. Use StageImplant + pkg/payload for finer control over the fetch method.
func (*Backend) Shutdown ¶
Shutdown tears down staging servers, kills the Sliver listener, and closes the gRPC connection.
func (*Backend) StageImplant ¶
StageImplant generates a Sliver implant, serves it over an in-memory HTTP server, and returns the staging URL.
func (*Backend) TCPStageImplant ¶
TCPStageImplant generates a Sliver implant, starts a one-shot TCP staging server, and compiles a fresh stager binary with the host:port baked in. The payload stream is XOR-encrypted with a per-stager random key.
type OperatorConfig ¶
type OperatorConfig struct {
Operator string `json:"operator"`
LHost string `json:"lhost"`
LPort int `json:"lport"`
Token string `json:"token"`
CACertificate string `json:"ca_certificate"`
PrivateKey string `json:"private_key"`
Certificate string `json:"certificate"`
}
OperatorConfig represents a Sliver operator .cfg file (JSON with mTLS certs).
func ParseConfig ¶
func ParseConfig(path string) (*OperatorConfig, error)
ParseConfig reads and parses a Sliver operator config file.