vm

module
v0.0.0-...-d4b2c28 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: BSD-3-Clause

README

VM Detect

Simple Go library to detect virtual machines.

Usage

go get github.com/Inspect-Element-Ltd/vm
import (
    "fmt"
    "github.com/Inspect-Element-Ltd/vm/vmdetect"
)

vm, vendor, reason := vmdetect.Check()
if vm {
    fmt.Printf("Detected VM (Vendor: %s, Reason: %s)", vendor, reason)
}
TODO
  • Linux support
  • Clean up the horrible code in mac_reg.go
Credits

Heavily inspired by VM-Detection by ShellCode33. Most, if not all, of the Windows code is from VM-Detection but with some detections removed, our use-case doesn't want to flag a system with Sandbox tools installed as a VM.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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