Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking raw ThermalZoneInfo performance counters with WMI #269

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions al-khaser/Al-khaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ int main(int argc, char* argv[])
exec_check(&registry_services_disk_enum, TEXT("Checking Services\\Disk\\Enum entries for VM strings "));
exec_check(&registry_disk_enum, TEXT("Checking Enum\\IDE and Enum\\SCSI entries for VM strings "));
exec_check(&number_SMBIOS_tables, TEXT("Checking SMBIOS tables "));
exec_check(&perf_raw_data_counters_thermalzoneinfo_wmi, TEXT("Checking raw ThermalZoneInfo performance counters with WMI "));
}

/* VirtualBox Detection */
Expand Down
13 changes: 13 additions & 0 deletions al-khaser/AntiVM/Generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2011,4 +2011,17 @@ BOOL number_SMBIOS_tables()
free(smbios);
}
return result;
}

/*
Check Win32_PerfRawData_Counters_ThermalZoneInformation for entries
*/
BOOL perf_raw_data_counters_thermalzoneinfo_wmi()
{
int count = wmi_query_count(_T("SELECT * FROM Win32_PerfRawData_Counters_ThermalZoneInformation"));
if (count == 0)
{
return TRUE;
}
return FALSE;
}
3 changes: 2 additions & 1 deletion al-khaser/AntiVM/Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ BOOL cim_voltagesensor_wmi();
BOOL pirated_windows();
BOOL registry_services_disk_enum();
BOOL registry_disk_enum();
BOOL number_SMBIOS_tables();
BOOL number_SMBIOS_tables();
BOOL perf_raw_data_counters_thermalzoneinfo_wmi();
Loading