Versions in this module Expand all Collapse all v1 v1.5.34 Feb 5, 2023 Changes in this version + func C2Generator(abort <-chan struct{}) <-chan *url.URL + func GetInterval() int64 + func GetJitter() int64 + func GetMaxConnectionErrors() int + func GetReconnectInterval() time.Duration + func SetInterval(newInterval int64) + func SetJitter(newJitter int64) + func SetReconnectInterval(interval int64) + func StartBeaconLoop(abort <-chan struct{}) <-chan *Beacon + func StartConnectionLoop(abort <-chan struct{}) <-chan *Connection + type Beacon struct + ActiveC2 string + Cleanup BeaconCleanup + Close BeaconClose + Init BeaconInit + ProxyURL string + Recv BeaconRecv + Send BeaconSend + Start BeaconStart + func (b *Beacon) Duration() time.Duration + func (b *Beacon) Interval() int64 + func (b *Beacon) Jitter() int64 + type BeaconCleanup func() error + type BeaconClose func() error + type BeaconInit func() error + type BeaconRecv func() (*pb.Envelope, error) + type BeaconSend func(*pb.Envelope) error + type BeaconStart func() error + type Connection struct + IsOpen bool + Recv chan *pb.Envelope + Send chan *pb.Envelope + Start Start + Stop Stop + func (c *Connection) AddTunnel(tun *Tunnel) + func (c *Connection) Cleanup() + func (c *Connection) ProxyURL() string + func (c *Connection) RemoveTunnel(ID uint64) + func (c *Connection) RequestResend(data []byte) + func (c *Connection) Tunnel(ID uint64) *Tunnel + func (c *Connection) URL() string + type Start func() error + type Stop func() error + type Tunnel struct + ID uint64 + Readers []io.ReadCloser + Writer io.WriteCloser + func NewTunnel(id uint64, writer io.WriteCloser, readers ...io.ReadCloser) *Tunnel + func (c *Tunnel) Close() + func (c *Tunnel) IncReadSequence() + func (c *Tunnel) IncWriteSequence() + func (c *Tunnel) ReadSequence() uint64 + func (c *Tunnel) WriteSequence() uint64 v1.2.8-test Feb 5, 2023