vmwpatch

package
v0.0.0-...-2877db8 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const COPYRIGHT = "© 2014-2023 David Parsons"
View Source
const VERSION = "4.2.5"

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

func DelFile

func DelFile(src, dst string) error

func DumpSMC

func DumpSMC(filename string)

func IsAdmin

func IsAdmin() bool

func IsGOSPatched

func IsGOSPatched(filename string) (int, string, string)

func IsRunning

func IsRunning(v *VMwareInfo) bool

func IsSMCPatched

func IsSMCPatched(filename string) (int, string, string)

func PatchGOS

func PatchGOS(filename string) (string, string)

func PatchSMC

func PatchSMC(filename string) (string, string)

func PatchVMKCTL

func PatchVMKCTL(filename string)

func TaskRunning

func TaskRunning(name string) int

func VMWStart

func VMWStart(v *VMwareInfo)

func VMWStop

func VMWStop(v *VMwareInfo)

func WriteHashes

func WriteHashes(filename string, unpatched string, patched string)

Types

type PatchOperation

type PatchOperation struct {
	FileToPatch    string
	BackupLocation string
}

func (*PatchOperation) Backup

func (p *PatchOperation) Backup() bool

type VMwareInfo

type VMwareInfo struct {
	BasePath       string
	BuildNumber    string
	ProductVersion string
	InstallDir     string
	InstallDir64   string
	Workstation    string
	Player         string
	KVM            string
	REST           string
	Tray           string
	AuthD          string
	HostD          string
	USBD           string
	StartD         string
	ShellExt       string
	VMXDefault     string
	VMXDebug       string
	VMXStats       string
	VMwareBase     string
	PathVMXDefault string
	PathVMXDebug   string
	PathVMXStats   string
	PathVMwareBase string
	SrcISOmacOS    string
	SrcISOMacOSX   string
	DstISOmacOS    string
	DstISOMacOSX   string
	BackDir        string
	BackVMXDefault string
	BackVMXDebug   string
	BackVMXStats   string
	BackVMwareBase string
}

func VMWInfo

func VMWInfo() *VMwareInfo

func (*VMwareInfo) BackupExists

func (v *VMwareInfo) BackupExists() bool

func (*VMwareInfo) PatchFiles

func (v *VMwareInfo) PatchFiles(gos chan *PatchOperation, smc chan *PatchOperation, done chan int)

func (*VMwareInfo) Restore

func (v *VMwareInfo) Restore()

Jump to

Keyboard shortcuts

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