Documentation ¶
Index ¶
- Constants
- func MakeRequest(session *clientpb.Session) *commonpb.Request
- func RunCommand(message string, executor string, payload []byte, agentSession *AgentSession) (string, int, int)
- type AgentConfig
- type AgentSession
- type Beacon
- type Configuration
- type Instruction
- type OperatorConfig
- type PreludeSessionMapper
Constants ¶
View Source
const ( ErrorExitStatus = -1 SuccessExitStatus = 0 )
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
func RunCommand(message string, executor string, payload []byte, agentSession *AgentSession) (string, int, int)
RunCommand executes a given command
Types ¶
type AgentConfig ¶
type AgentConfig struct { Name string AESKey string Range string Contact string Address string Useragent string Sleep int KillSleep int CommandJitter int CommandTimeout int Pid int Proxy string Debug bool Executing map[string]Instruction }
func (*AgentConfig) BuildExecutingHash ¶
func (c *AgentConfig) BuildExecutingHash() string
func (*AgentConfig) EndInstruction ¶
func (c *AgentConfig) EndInstruction(instruction Instruction)
func (*AgentConfig) StartInstruction ¶
func (c *AgentConfig) StartInstruction(instruction Instruction) bool
func (*AgentConfig) StartInstructions ¶
func (c *AgentConfig) StartInstructions(instructions []Instruction) (ret []Instruction)
type AgentSession ¶
type AgentSession struct { Conn *net.Conn Session *clientpb.Session RPC rpcpb.SliverRPCClient Beacon Beacon Config AgentConfig }
func NewAgentSession ¶
func NewAgentSession(c *net.Conn, s *clientpb.Session, rpc rpcpb.SliverRPCClient, b Beacon, conf AgentConfig) *AgentSession
func (*AgentSession) ReceiveLoop ¶
func (a *AgentSession) ReceiveLoop()
type Configuration ¶
type Instruction ¶
type OperatorConfig ¶
type OperatorConfig struct { Range string OperatorURL string RPC rpcpb.SliverRPCClient AESKey string }
type PreludeSessionMapper ¶
var SessionMapper *PreludeSessionMapper
func InitSessionMapper ¶
func InitSessionMapper(conf *OperatorConfig) *PreludeSessionMapper
func (*PreludeSessionMapper) AddSession ¶
func (p *PreludeSessionMapper) AddSession(s *clientpb.Session) error
func (*PreludeSessionMapper) GetConfig ¶
func (p *PreludeSessionMapper) GetConfig() *OperatorConfig
func (*PreludeSessionMapper) RemoveSession ¶
func (p *PreludeSessionMapper) RemoveSession(s *clientpb.Session) (err error)
Click to show internal directories.
Click to hide internal directories.