Skip to content

Commit

Permalink
fixed overload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Aug 15, 2024
1 parent ab2143c commit 89c6a6f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8884,23 +8884,6 @@ struct VM {
}


/**
* @brief Check for /proc/device-tree directory
* @note idea from https://github.com/ShellCode33/VM-Detection/blob/master/vmdetect/linux.go
* @category Linux
*/
[[nodiscard]] static bool device_tree() try {
#if (!LINUX)
return false;
#else
return (util::exists("/proc/device-tree/hypervisor/compatible"));
#endif
} catch (...) {
debug("DEVICE_TREE: caught error, returned false");
return false;
}



// https://medium.com/@matterpreter/hypervisor-detection-with-systemhypervisordetailinformation-26e44a57f80e

Expand Down

0 comments on commit 89c6a6f

Please sign in to comment.