Skip to content

Commit e991400

Browse files
committed
Fix HypervisorPresent false possitive
1 parent d5af8ca commit e991400

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Protest/Protocols/Wmi.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,6 @@ public static Dictionary<string, string> WmiFetch(string host) {
212212
ContentBuilderAddValue(moc, "Manufacturer", "manufacturer", data);
213213
ContentBuilderAddValue(moc, "UserName", "owner", data);
214214
ContentBuilderAddValue(moc, "Model", "model", data);
215-
216-
foreach (ManagementObject o in moc.Cast<ManagementObject>()) {
217-
bool isHypervisorPresent = (bool)o.GetPropertyValue("HypervisorPresent");
218-
if (isHypervisorPresent) {
219-
type = "Hypervisor";
220-
break;
221-
}
222-
}
223215
}
224216
catch { }
225217

0 commit comments

Comments
 (0)