-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.cs
More file actions
28 lines (23 loc) · 952 Bytes
/
Example.cs
File metadata and controls
28 lines (23 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* VMAware C# - Example Usage
*/
using System;
using VMDetection;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("╔═══════════════════════════════════════╗");
Console.WriteLine("║ VMAware C# VM Detection ║");
Console.WriteLine("╚═══════════════════════════════════════╝\n");
// Simple detection
bool isVM = VMAware.Detect();
int confidence = VMAware.Percentage();
string brand = VMAware.Brand();
Console.WriteLine($"VM Detected: {(isVM ? "YES" : "NO")}");
Console.WriteLine($"Confidence: {confidence}%");
Console.WriteLine($"VM Brand: {brand}");
Console.WriteLine("\n[Press any key to exit]");
Console.ReadKey();
}
}