vmdetect

package
v0.0.0-...-51ba899 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonChecks

func CommonChecks() (bool, string)

Tries to detect VMs using cross-platform techniques.

func DoesFileContain

func DoesFileContain(file *os.File, stringsToBeFound ...string) bool

func DoesFileExist

func DoesFileExist(path string) bool

func IsRunningInVirtualMachine

func IsRunningInVirtualMachine() (bool, string)

Public function returning true if a VM is detected. If so, a non-empty string is also returned to tell how it was detected.

func PrintError

func PrintError(loggee interface{})

func PrintWarning

func PrintWarning(loggee interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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