Anti-VM Techniques with MSAcpi_ThermalZoneTemperature
function Get-AntiVMwithTemperature { | |
$t = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi" | |
$valorTempKelvin = $t.CurrentTemperature / 10 | |
$valorTempCelsius = $valorTempKelvin - 273.15 | |
$valorTempFahrenheit = (9/5) * $valorTempCelsius + 32 | |
return $valorTempCelsius.ToString() + " C : " + $valorTempFahrenheit.ToString() + " F : " + $valorTempKelvin + "K" | |
} | |
#resource https://medium.com/@DebugActiveProcess |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Blog post: https://medium.com/@DebugActiveProcess/anti-vm-techniques-with-msacpi-thermalzonetemperature-32cfeecda802