ipstealer

package
v0.0.0-...-9bd6815 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tailnet        string `mapstructure:"tailnet"`
	ClientID       string `mapstructure:"client_id"`
	ClientSecret   string `mapstructure:"client_secret"`
	TargetHostname string `mapstructure:"target_hostname"`
	DesiredIP      string `mapstructure:"desired_ip"`
	PeriodSeconds  int    `mapstructure:"period_seconds"`
}

type PeriodicThief

type PeriodicThief struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, logger *zap.Logger, config *Config) *PeriodicThief

func (*PeriodicThief) Start

func (p *PeriodicThief) Start(ctx context.Context) *time.Ticker

func (*PeriodicThief) Steal

func (p *PeriodicThief) Steal(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL