Skip to content

Commit 9a736f2

Browse files
authored
Update AntiVirtualization.cs
Added Triage Detection
1 parent 1d3fbb2 commit 9a736f2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

AntiCrack-DotNet/AntiVirtualization.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,22 @@ public static bool CheckForParallels()
282282
return false;
283283
}
284284

285+
public static bool TriageCheck()
286+
{
287+
using (var searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive"))
288+
{
289+
foreach (var item in searcher.Get())
290+
{
291+
string model = item["Model"].ToString();
292+
if (model.Contains("DADY HARDDISK") || model.Contains("QEMU HARDDISK"))
293+
{
294+
return true;
295+
}
296+
}
297+
}
298+
return false;
299+
}
300+
285301
public static bool CheckForQemu()
286302
{
287303
string[] BadDriversList = { "qemu-ga", "qemuwmi" };

0 commit comments

Comments
 (0)