vpn

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 13 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 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"`
}

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