Documentation
¶
Index ¶
- func CalculateSleepInterval(CallbackFrequency string, CallbackJitter string) float64
- 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 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
- type ProxyServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSleepInterval ¶
func EstablishConnection ¶
func GenerateAgentMetadata ¶
func GetLocalIP ¶
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
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.