Skip to content

Commit

Permalink
add VM::SPOOFABLE to VM::ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
D00Movenok committed Aug 21, 2024
1 parent 4eb773c commit a14f28b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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 spoofable 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()`. |
Expand Down
4 changes: 2 additions & 2 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/vmaware_MIT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a14f28b

Please sign in to comment.