Documentation
¶
Index ¶
- func CalculateNextCallbackTime(callbackFrequency string, callbackJitter string) time.Time
- func CalculateSleepInterval(CallbackFrequency string, CallbackJitter string) float64
- func CreateConfigurationRequest(...) types.ConfigurationRequest
- func EstablishConnection(config *tls.Config, ServerIP string, ServerPort string) (*tls.Conn, *gob.Encoder, *gob.Decoder, error)
- func GenerateAgentMetadata() (string, string, string)
- func GetLocalIP(beacon *tls.Conn) string
- func GetOSInfo() (string, string, string, string, string)
- func HandleConfigurationRequest(beacon *tls.Conn, encoder *gob.Encoder, decoder *gob.Decoder, ...) error
- func HandleError(beacon *tls.Conn, reqType string, err error)
- func HandleFileRequest(beacon *tls.Conn, encoder *gob.Encoder, decoder *gob.Decoder, agentID string) error
- func HandleSocksCommand(beacon *tls.Conn, encoder *gob.Encoder, commandResponse types.CommandResponse, ...) error
- func Initialize(logging_enabled string)
- func LoadCertificate(RootCert string) (*tls.Config, error)
- func RunShellCommand(command string) string
- func SendRequest(encoder *gob.Encoder, reqType types.RequestType, payload interface{}) error
- func UpdateClientConfig(config types.ConfigurationResponse, ...)
- func UpdateConfigField(current *string, new, fieldName string)
- type ProxyServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateNextCallbackTime ¶ added in v1.3.1
func CalculateSleepInterval ¶
func CreateConfigurationRequest ¶ added in v1.3.1
func CreateConfigurationRequest(agentID, hostname, osType, osArch, osVersion, cpus, memory, username, ip, ServerIP, ServerPort, CallbackFrequency, CallbackJitter string, nextCallback time.Time) types.ConfigurationRequest
func EstablishConnection ¶
func GenerateAgentMetadata ¶
func GetLocalIP ¶
func HandleConfigurationRequest ¶ added in v1.3.1
func HandleFileRequest ¶
func HandleSocksCommand ¶
func HandleSocksCommand(beacon *tls.Conn, encoder *gob.Encoder, commandResponse types.CommandResponse, activeProxy **ProxyServer) error
func Initialize ¶
func Initialize(logging_enabled string)
func RunShellCommand ¶
func SendRequest ¶
func SendRequest(encoder *gob.Encoder, reqType types.RequestType, payload interface{}) error
func UpdateClientConfig ¶ added in v1.3.1
func UpdateClientConfig(config types.ConfigurationResponse, ServerIP, ServerPort, CallbackFrequency, CallbackJitter string)
func UpdateConfigField ¶ added in v1.3.1
Types ¶
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func (*ProxyServer) StopProxy ¶
func (p *ProxyServer) StopProxy()
Click to show internal directories.
Click to hide internal directories.