You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -463,7 +463,6 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
463
463
| -p | --percent | Prints the VM likeliness percentage between 0 and 100 |
464
464
| -n | --number | Prints the number of VM detection techniques it can performs |
465
465
| -t | --type | Returns the VM type (if a VM was found) |
466
-
| | --disable-hyperv-host | Disable the possibility of Hyper-V default virtualisation result on host OS (this can be used as a combination with the above commands) |
467
466
| | --disable-notes | No notes will be provided |
468
467
| | --spoofable | Allow spoofable techniques to be ran (not included by default)
if ((hyperv_setting == VM::ENABLE_HYPERV_HOST) && (brand == "Hyper-V artifact (not an actual VM)") && notes_enabled) {
649
-
std::cout << note << " If you know you are running on host, Hyper-V leaves VM artifacts in CPUIDs which makes the system look like it's running in a Hyper-V VM when it's not. If you want to disable this mechanism, uninstall Hyper-V in your system.\n\n";
639
+
if ((brand == "Hyper-V artifact (not an actual VM)") && notes_enabled) {
640
+
std::cout << note << "The result means that the CLI has found Hyper-V, but as an artifact instead of an actual VM. This means that although the hardware values in fact match with Hyper-V due to how it's designed by Microsoft, the CLI has determined you are NOT in a Hyper-V VM.\n\n";
650
641
} elseif (notes_enabled) {
651
642
if (!arg_bitset.test(SPOOFABLE)) {
652
643
std::cout << tip << "To enable spoofable techniques, run with the \"--spoofable\" argument\n\n";
@@ -696,7 +687,7 @@ int main(int argc, char* argv[]) {
Copy file name to clipboardExpand all lines: src/vmaware.hpp
+32-14Lines changed: 32 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -416,8 +416,8 @@ struct VM {
416
416
// start of non-technique flags (THE ORDERING IS VERY SPECIFIC HERE AND MIGHT BREAK SOMETHING IF RE-ORDERED)
417
417
NO_MEMO,
418
418
HIGH_THRESHOLD,
419
-
ENABLE_HYPERV_HOST,
420
-
NULL_ARG, // does nothing as a placeholder
419
+
ENABLE_HYPERV_HOST [[deprecated("This mechanism is done by default as of 1.8 release")]],
420
+
NULL_ARG, // does nothing, just a placeholder flag mainly for the CLI
421
421
SPOOFABLE,
422
422
MULTIPLE
423
423
};
@@ -430,13 +430,15 @@ struct VM {
430
430
staticconstexpru16 high_threshold_score = 300; // new threshold score from 100 to 350 if VM::HIGH_THRESHOLD flag is enabled
431
431
staticconstexprbool SHORTCUT = true; // macro for whether VM::core::run_all() should take a shortcut by skipping the rest of the techniques if the threshold score is already met
0 commit comments