Skip to content

fixed C++ 14 compatibility #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ You can view the full docs [here](docs/documentation.md). All the details such a

> I would've made it strictly MIT so proprietary software can make use of the library, but some of the techniques employed are from GPL projects, and I have no choice but to use the same license for legal reasons.
>
> This gave me an idea to make an MIT version without all of the GPL code so it can also be used without forcing your code to be open source. It should be noted that the MIT version removes <b>7</b> techniques out of 118 (as of 2.0 version), and the lesser the number of techniques, the less accurate the overall result might be.
> This gave me an idea to make an MIT version without all of the GPL code so it can also be used without forcing your code to be open source. It should be noted that the MIT version removes <b>7</b> techniques out of 117 (as of 2.0 version), and the lesser the number of techniques, the less accurate the overall result might be.

</details>

Expand Down
3 changes: 1 addition & 2 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| `VM::NUMBER_OF_CORES` | Check for number of cores | Windows | 50% | | | | |
| `VM::ACPI_TEMPERATURE` | Check for device's temperature | Windows | 25% | | | | |
| `VM::PROCESSOR_ID` | Check if any processor has an empty Processor ID using SMBIOS data | Windows | 25% | | | | |
| `VM::VMWARE_HARDENER` | Checks for VMwareHardenerLoader's method of patching firmware detection by setting its signatures with "7" | Windows | 60% | | | | |
| `VM::SYS_QEMU` | Check for existence of "qemu_fw_cfg" directories within /sys/module and /sys/firmware | Linux | 70% | | | | |
| `VM::LSHW_QEMU` | Check for QEMU string instances with lshw command | Linux | 80% | | | | |
| `VM::VIRTUAL_PROCESSORS` | Check if the number of maximum virtual processors matches the maximum number of logical processors | Windows | 50% | | | | |
Expand All @@ -445,7 +444,7 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| `VM::NATIVE_VHD` | Checks if the OS was booted from a VHD container | | 100% | | | | |
| `VM::NATIVE_VHD` | Check for OS being booted from a VHD container | Windows | 100% | | | | |
| `VM::VIRTUAL_REGISTRY` | Check for particular object directory which is present in Sandboxie virtual environment but not in usual host systems | Windows | 65% | | | | |
| `VM::FIRMWARE` | Check for VM signatures in firmware, while ensuring the BIOS serial is valid | Windows | 90% | | | | |
| `VM::FIRMWARE` | Check for VM signatures and patched strings by hardeners in firmware, while ensuring the BIOS serial is valid | Windows | 90% | | | | |
| `VM::FILE_ACCESS_HISTORY` | Check if the number of accessed files are too low for a human-managed environment | Linux | 15% | | | | |
| `VM::AUDIO` | Check if audio device is present | Windows | 25% | | | | |
| `VM::UNKNOWN_MANUFACTURER` | Check if the CPU manufacturer is not known | | 50% | | | | |
Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
|------|---------|
| `cli.cpp` | Entire CLI tool code |
| `vmaware.hpp` | Official and original library header in GPL-3.0, most likely what you're looking for. |
| `vmaware_MIT.hpp` | Same as above but in MIT. But this removes 7 techniques out of 118 |
| `vmaware_MIT.hpp` | Same as above but in MIT. But this removes 7 techniques out of 117 |


> [!IMPORTANT]
Expand Down
2 changes: 0 additions & 2 deletions src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ bool is_unsupported(VM::enum_flags flag) {
case VM::PROCESSOR_ID:
case VM::POWER_CAPABILITIES:
case VM::SETUPAPI_DISK:
case VM::VMWARE_HARDENER:
case VM::VIRTUAL_PROCESSORS:
case VM::HYPERV_QUERY:
case VM::BAD_POOLS:
Expand Down Expand Up @@ -985,7 +984,6 @@ void general() {
checker(VM::PROCESSOR_ID, "processor ID");
checker(VM::POWER_CAPABILITIES, "Power capabilities");
checker(VM::SETUPAPI_DISK, "SETUPDI diskdrive");
checker(VM::VMWARE_HARDENER, "VMware hardener");
checker(VM::SYS_QEMU, "QEMU in /sys");
checker(VM::LSHW_QEMU, "QEMU in lshw output");
checker(VM::VIRTUAL_PROCESSORS, "virtual processors");
Expand Down
Loading
Loading