vpn

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAll

func DownloadAll() error

DownloadAll downloads VPN configurations from HackTheBox for different server types.

func List added in v1.5.1

func List() error

func Start

func Start(configPath string) (string, error)

Start starts the VPN connection using an OpenVPN configuration file.

func Status

func Status() (bool, error)

Status checks the current status of the VPN connection.

func Stop

func Stop() (string, error)

Stop terminates any active HackTheBox OpenVPN connections.

Types

type Assigned

type Assigned struct {
	ID               int    `json:"id"`
	FriendlyName     string `json:"friendly_name"`
	CurrentClients   int    `json:"current_clients"`
	Location         string `json:"location"`
	LocationFriendly string `json:"location_type_friendly"`
}

type Data

type Data struct {
	Disabled bool     `json:"disabled"`
	Assigned Assigned `json:"assigned"`
}

type Response

type Response struct {
	Status bool `json:"status"`
	Data   Data `json:"data"`
}

Jump to

Keyboard shortcuts

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