From f8c60b2de21fdf15b5d61838b8120392afce83c6 Mon Sep 17 00:00:00 2001 From: D00Movenok Date: Thu, 22 Aug 2024 01:30:35 +0300 Subject: [PATCH] add VM::SPOOFABLE to VM::ALL --- docs/documentation.md | 11 +++++------ src/vmaware.hpp | 4 ++-- src/vmaware_MIT.hpp | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/documentation.md b/docs/documentation.md index 4e3d7cb..bfdd04d 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -56,11 +56,10 @@ int main() { /** - * All checks are performed including the cursor check, - * which waits 5 seconds for any human mouse interaction - * to detect automated virtual environments. This is the - * only technique that's disabled by default but if you're - * fine with having a 5 second delay, add VM::ALL + * All checks are performed including SPOOFABLE techniques + * and the cursor check, which waits 5 seconds for any human + * mouse interaction to detect automated virtual environments. + * If you're fine with having a 5 second delay, add VM::ALL */ bool is_vm5 = VM::detect(VM::ALL); @@ -456,7 +455,7 @@ VMAware provides a convenient way to not only check for VMs, but also have the f # Non-technique flags | Flag | Description | |------|-------------| -| `VM::ALL` | This will enable all the technique flags, including the cursor check that's disabled by default. | +| `VM::ALL` | This will enable all the technique flags, including spoofa techniques and cursor check that are disabled by default. | | `VM::NO_MEMO` | This will disable memoization, meaning the result will not be fetched through a previous computation of the `VM::detect()` function. Use this if you're only using a single function from the `VM` struct for a performance boost. | | `VM::DEFAULT` | This represents a range of flags which are enabled if no default argument is provided. | | `VM::MULTIPLE` | This is specific to `VM::brand()`. This will basically return a `std::string` message of what brands could be involved. For example, it could return "`VMware or VirtualBox`" instead of having a single brand string output. This has no effect if applied to any other functions than `VM::brand()`. | diff --git a/src/vmaware.hpp b/src/vmaware.hpp index 035abdd..ee1a516 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -10092,11 +10092,11 @@ VM::flagset VM::ALL = []() -> flagset { // set all bits to 1 tmp.set(); - // disable all the non-technique flags + // disable all the non-technique flags (except SPOOFABLE) tmp.flip(NO_MEMO); tmp.flip(HIGH_THRESHOLD); tmp.flip(ENABLE_HYPERV_HOST_REPLACEMENT); - tmp.flip(SPOOFABLE); + // tmp.flip(SPOOFABLE); tmp.flip(MULTIPLE); return tmp; diff --git a/src/vmaware_MIT.hpp b/src/vmaware_MIT.hpp index 9c74aac..aba3600 100644 --- a/src/vmaware_MIT.hpp +++ b/src/vmaware_MIT.hpp @@ -9623,11 +9623,11 @@ VM::flagset VM::ALL = []() -> flagset { // set all bits to 1 tmp.set(); - // disable all the non-technique flags + // disable all the non-technique flags (except SPOOFABLE) tmp.flip(NO_MEMO); tmp.flip(HIGH_THRESHOLD); tmp.flip(ENABLE_HYPERV_HOST_REPLACEMENT); - tmp.flip(SPOOFABLE); + // tmp.flip(SPOOFABLE); tmp.flip(MULTIPLE); return tmp;