Skip to content

Commit

Permalink
forgot to add previous modifications, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Sep 15, 2023
1 parent a9b84b1 commit 7802d97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ int main() {
/**
* Essentially means only the brand, MAC, and hypervisor
* bit techniques should be performed. Note that the less
* flags you provide, the more likely the result will NOT
* be accurate.
* flags you provide, the more likely the result whether
* it's running in a VM will not be accurate.
*/
bool is_vm2 = VM::detect(VM::BRAND | VM::MAC | VM::HYPERV_BIT);

Expand All @@ -26,7 +26,7 @@ int main() {
* 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
* want to include it, add VM::ALL which is [NOT RECOMMENDED]
* want to include it, add VM::ALL which is NOT RECOMMENDED
*/
bool is_vm3 = VM::detect(VM::ALL);

Expand Down Expand Up @@ -108,4 +108,10 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| Check usernames | Match the username for any defaulted ones | `VM::USER` | Windows |
| Check DLLs | Match for VM-specific DLLs | `VM::DLL` | Windows |
| Check registry | Look throughout the registry for all sorts of VMs | `VM::REGISTRY` | Windows |
| Check Sunbelt | Detect for Sunbelt technology | `VM::SUNBELT` | Windows |
| Check Sunbelt | Detect for Sunbelt technology | `VM::SUNBELT` | Windows |

# Non-technique flags
| Flag | Description |
|------|-------------|
| `VM::ALL` | This will enable all the flags technique flags, including the cursor check. |
| `VM::NO_MEMO` | This will disable memoization, meaning the result will not be fetched through a previous computation of the VM::detect function. Not sure why you'd need this, but it will take a performance hit if enabled. |
2 changes: 1 addition & 1 deletion src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ struct VM {
// settings
NO_MEMO = 1ULL << 63,

ALL = std::numeric_limits<u64>::max();//(CURSOR | ((1 << 17) - 1));
ALL = ~(NO_MEMO & std::numeric_limits<u64>::max());

private:
static constexpr u64 DEFAULT = (~(CURSOR | NO_MEMO) & ALL);
Expand Down

0 comments on commit 7802d97

Please sign in to comment.