Skip to content

Added boot_flags technique #248

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

Merged
merged 1 commit into from
Feb 9, 2025
Merged
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
12 changes: 12 additions & 0 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": ""
},
{
"name": "x86-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x86" ],
"variables": []
}
]
}
1 change: 1 addition & 0 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| `VM::AUDIO` | Check if audio device is present | Windows | 25% | | | | |
| `VM::UNKNOWN_MANUFACTURER` | Check if the CPU manufacturer is not known | | 50% | | | | |
| `VM::SENSORS` | Check if the system reports any information from hardware sensors | Windows | 35% | | | | |
| `VM::BOOT_FLAGS_` | Detects the presence of a hypervisor by querying system boot flags | Windows | 45% | | | | |


<br>
Expand Down
2 changes: 2 additions & 0 deletions src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ bool is_unsupported(VM::enum_flags flag) {
case VM::NX_BIT:
case VM::UNKNOWN_MANUFACTURER:
case VM::SENSORS:
case VM::BOOT_FLAGS:
// ADD WINDOWS FLAG
return false;
default: return true;
Expand Down Expand Up @@ -1021,6 +1022,7 @@ void general() {
checker(VM::FILE_ACCESS_HISTORY, "low file access count");
checker(VM::UNKNOWN_MANUFACTURER, "unknown manufacturer ids");
checker(VM::SENSORS, "sensors");
checker(VM::BOOT_FLAGS, "boot flags");

// ADD NEW TECHNIQUE CHECKER HERE

Expand Down
Loading